Commit Graph

6647 Commits

Author SHA1 Message Date
Guido van Rossum
3e1e274d0b Don't use $math$ mode to typeset a simple '>' sign. Use \code, not \samp. 1997-11-25 00:43:34 +00:00
Guido van Rossum
9d62e80e46 Remove strange use of $math$ mode to produce a backslash. 1997-11-25 00:35:44 +00:00
Guido van Rossum
5b7220f7ee Oops, did the previous delete the wrong way. 1997-11-25 00:05:12 +00:00
Guido van Rossum
d5da7a63c1 Get rid of last traces of module 'audio' 1997-11-24 23:59:31 +00:00
Guido van Rossum
ca83f018e7 Added "-n file" option to only print files newer than the given file. 1997-11-24 23:49:35 +00:00
Guido van Rossum
e2d4dd194b Use fuzzy comparison from test_support to compare outcome of
pow(x,y,z) to pow(x,y)%z.
1997-11-24 22:24:22 +00:00
Guido van Rossum
275feea40f New names... 1997-11-24 17:50:47 +00:00
Guido van Rossum
00f1569983 Add fileinput. 1997-11-24 17:50:09 +00:00
Guido van Rossum
e300d6f0fe Replace plat-os2 with plat-win, per Jeff Rush' suggestion. 1997-11-24 17:49:45 +00:00
Guido van Rossum
37885c27c0 Trivial change in prompt label suggested by Case Roole. 1997-11-24 17:49:13 +00:00
Guido van Rossum
2d9feeddf3 Change the option used on Linux to export all symbols
from the main program to shared libraries.  On mklinux, the old
'-rdynamic' doesn't work; the new '-Xlinker -export-dynamic' works
both there and on Intel Linux platforms.
1997-11-24 17:36:21 +00:00
Guido van Rossum
465f71d052 Done a sort -u on the symbols (and replaced all tabs with spaces). 1997-11-24 15:54:24 +00:00
Guido van Rossum
e1cba7f577 Oops, the sort took some whitespace into account. 1997-11-24 15:50:27 +00:00
Guido van Rossum
060dffbc34 Done a sort -u on the symbols. 1997-11-24 15:48:23 +00:00
Guido van Rossum
345df170e6 os2 patch by Jeff Rush 1997-11-22 22:10:01 +00:00
Guido van Rossum
7db30cad1e ignore various VC++ turds 1997-11-22 22:05:00 +00:00
Guido van Rossum
50d4cc2f1d Files specific to Visual Age C for OS/2 -- by Jeff Rush 1997-11-22 21:59:45 +00:00
Guido van Rossum
0ba48ba172 Added Jeff Rush' comments 1997-11-22 21:58:14 +00:00
Guido van Rossum
d3af2f3815 win -> plat-win 1997-11-22 21:56:10 +00:00
Guido van Rossum
f5578e4449 Add PyImport_Inittab and PyOS_AfterFork 1997-11-22 21:55:18 +00:00
Guido van Rossum
8e9ebfd337 os2 patch by Jeff Rush 1997-11-22 21:53:48 +00:00
Guido van Rossum
c0b93191e6 bind_class should return a value 1997-11-22 21:49:56 +00:00
Guido van Rossum
be7c45eec4 New address parser by Ben Escoto replaces
Sjoerd Mullender's parseaddr()
1997-11-22 21:49:19 +00:00
Guido van Rossum
e6c128f428 Use fstat if we can; write MAGIC into file last. 1997-11-22 21:48:26 +00:00
Guido van Rossum
8700fe62f8 Redone the _tkinter configuration section with support for popular packages. 1997-11-22 17:35:19 +00:00
Guido van Rossum
7a206c8a05 New tkappinit supporting several popular packages. 1997-11-22 17:34:41 +00:00
Guido van Rossum
7d5b99d8bf A new standard module, as discussed on comp.lang.python, to simplify
the writing of filters.

Typical use is:

    import fileinput
    for line in fileinput.input():
        process(line)

This iterates over the lines of all files listed in sys.argv[1:],
defaulting to sys.stdin if the list is empty or when a filename is
'-'.

There is also an option to use this to direct the output back to the
input files.
1997-11-21 17:12:59 +00:00
Guido van Rossum
2aa78efab1 Add a pointer back to the wizard in the "compat" output. 1997-11-21 16:37:54 +00:00
Barry Warsaw
0d2d759d8c PySocketSock_methods: Added "connect_ex" so the method can actually be
called!
1997-11-20 21:39:02 +00:00
Guido van Rossum
4a9aff2eba A comparison with several other languages that also appears in the
Handbook of Object Technology.
1997-11-20 21:15:28 +00:00
Guido van Rossum
bc12f78bb3 Adding Martin von Loewis' documentation for his locale module. 1997-11-20 21:04:27 +00:00
Guido van Rossum
e084f0beea Add description for some modules that have been added since this intro
section was last revised...
1997-11-20 21:03:33 +00:00
Guido van Rossum
3472026347 Add description for Queue; fix typo (whichdbm should be whichdb). 1997-11-20 21:00:03 +00:00
Guido van Rossum
db847bd9ea Plug memory leak in Py_BuildValue when using {...} to construct dictionaries. 1997-11-20 20:35:45 +00:00
Barry Warsaw
3d96d522ec (Queue.Empty): When class based exceptions are in force, derive this
class from the standard base exception Exception.  Otherwise define
Queue.Empty as a string exception.

(Queue): 8-space to 4-space indentation conversion.  Also, basically
recast all method comments into docstrings.
1997-11-20 19:56:38 +00:00
Barry Warsaw
17c8e781c0 libqueue.tex: Documentation for the Queue.py module.
Makefile: Add dependency on libqueue.tex

lib.tex: Place the libqueue.tex documentation just after libthread.tex
since Queue depends on thread support in Python.
1997-11-20 19:54:16 +00:00
Guido van Rossum
51bb7b7940 Dang. Formatting glitch. 1997-11-20 15:42:46 +00:00
Guido van Rossum
f5831ae92e New blurb, derived from my Handbook of Object Technology abstract. 1997-11-20 15:42:18 +00:00
Barry Warsaw
4552f3d6de In the description of sub(), give a better explanation of the
interface when repl is a function.  Also give a simple example of
using a function repl.
1997-11-20 00:15:13 +00:00
Guido van Rossum
bd1169a93e Add Martin von Loewis as the author of this module. 1997-11-19 19:02:09 +00:00
Guido van Rossum
eef1d4e8b1 User-level locale module. A wrapper around _locale which adds
format(), str(), atof(), and atoi().  The last three are locale
sensitive versions of the corresponding standard functions (only for
numbers though); format() does general %[efg] formatting taking the
locale into account, optionally with thousands grouping.
1997-11-19 19:01:43 +00:00
Guido van Rossum
3df69bca0a Add support for _locale. 1997-11-19 18:57:48 +00:00
Guido van Rossum
fc4255db75 Add s.connect_ex() which returns errno instead of raising an exception. 1997-11-19 18:57:13 +00:00
Guido van Rossum
aec7497f6f Add optional support fort Tix and BLT. 1997-11-19 18:56:17 +00:00
Guido van Rossum
2e58ff3ef5 Fix importing of shared libraries from inside packages.
This is a bit of a hack: when the shared library is loaded, the module
name is "package.module", but the module calls Py_InitModule*() with just
"module" for the name.  The shared library loader squirrels away the true
name of the module in _Py_PackageContext, and Py_InitModule*() will
substitute this (if the name actually matches).
1997-11-19 18:53:33 +00:00
Guido van Rossum
ee6fd1c392 Add declaration for _Py_PackageContext -- needed to fix importing
of shared libraries from inside packages.
1997-11-19 18:51:35 +00:00
Guido van Rossum
858cb73bb2 Two changes (here we go again :-( ).
1) The __builtins__ variable in the __main__ module is set to the
__builtin__ module instead of its __dict__.

2) Get rid of the SIGHUP and SIGTERM handlers.  They can't be made to
work reliably when threads may be in use, they are Unix specific, and
Python programmers can now program this functionality is a safer way
using the signal module.
1997-11-19 16:15:37 +00:00
Guido van Rossum
df9db1ea18 Give more detailed error message when the argument count isn't right. 1997-11-19 16:05:40 +00:00
Guido van Rossum
127b8dd8d4 Add declaration for PyNumber_CoerceEx(). 1997-11-19 16:04:54 +00:00
Guido van Rossum
242c64256c Add a new function PyNumber_CoerceEx() which works just like
PyNumber_Coerce() except that when the coercion can't be done and no
other exceptions happen, it returns 1 instead of raising an
exception.

Use this function in PyObject_Compare() to avoid raising an exception
simply because two objects with numeric behavior can't be coerced to a
common type; instead, proceed with the non-numeric default comparison.

Note that this is a somewhat questionable practice -- comparisons for
numeric objects shouldn't default to random behavior like this, but it
is required for backward compatibility.  (Case in point, it broke
comparison of kjDict objects to integers in Aaron Watters' kjbuckets
extension.)  A correct fix (for python 2.0) should involve a different
definiton of comparison altogether.
1997-11-19 16:03:17 +00:00