summaryrefslogtreecommitdiff
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Guido said include these in the Great ANSI-fication, so here they are!Fred Drake2000-07-102-259/+216
|
* - changed the nt.popen2 return values back toFredrik Lundh2000-07-091-30/+30
| | | | | | | | (write, read, ...), based on feedback from GvR. - added tuple-swapping code to popen2.py - fixed some runaway indentation in posixmodule.c
* - changed 1.5 to 2.0 in the help textFredrik Lundh2000-07-091-7/+3
| | | | | | | (the PYTHONHOMEHELP define) - ANSI-fication (patch #100794 by Peter Schneider-Kamp)
* - ANSI-ficationFredrik Lundh2000-07-091-3/+1
| | | | (patch #100805 by Peter Schneider-Kamp)
* - added popen.popen2/popen3/popen4 support forFredrik Lundh2000-07-091-7/+7
| | | | | | | | | | | | windows. - added optional mode argument to popen2/popen3 for unix; if the second argument is an integer, it's assumed to be the buffer size. - changed nt.popen2/popen3/popen4 return values to match the popen2 module (stdout first, not stdin).
* - added optional bufsize argument to new popen methods.Fredrik Lundh2000-07-091-7/+30
| | | | | for the moment, this argument must be left out or set to -1 (only the default bufsize is supported, that is)
* - ANSI-ficationFredrik Lundh2000-07-091-5/+1
| | | | (patch #100784 by Peter Schneider-Kamp)
* - ANSI-ificationFredrik Lundh2000-07-091-94/+47
| | | | (patch #100770 by Peter Schneider-Kamp)
* - improved os.popen support for windows, based on win32pipeFredrik Lundh2000-07-091-6/+462
| | | | | | | by Bill Tutt. note: to run this on Windows 95/98, you need to have the w9xpopen.exe helper in the same directory as the python DLL.
* Remove use of HAVE_OLD_CPP to support non-ANSI preprocessors.Fred Drake2000-07-091-4/+0
|
* Patch from Peter Schneider-Kamp: convert curses module to ANSI prototypes,Andrew M. Kuchling2000-07-091-377/+221
| | | | and substitute the conventional "args" instead of "arg".
* - added (long) casts to a couple of Py_BuildValue calls,Fredrik Lundh2000-07-091-7/+7
| | | | | | | | | | just for the sake of it. note that this only covers the unlikely case that size_t is smaller than a long; it's probably more likely that there are platforms out there where size_t is *larger* than a long, and mmapmodule cannot really deal with that today.
* - fixed pointer size test in spawn functions. also addedFredrik Lundh2000-07-091-6/+6
| | | | | | | cast to make sure Py_BuildValue gets the right thing. this change eliminates bogus return codes from successful spawn calls (e.g. 2167387144924954624 instead of 0).
* Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters2000-07-0914-64/+63
|
* this one's a bit risky, but I've spent some considerable timeFredrik Lundh2000-07-081-340/+132
| | | | | | | | | | staring at the diffs before checking this one in. let me know asap if it breaks things on your platform. -- ANSI-fying (patch #100763 by Peter Schneider-Kamp, minus the indentation changes and minus the changes the broke the windows build)
* -- ANSI-fying, namesFredrik Lundh2000-07-081-82/+61
| | | | | | | (patch #100762 by Peter Schneider-Kamp, minus the indentation changes) -- added INT_PTR workaround to make it build under VC 5.0
* - _getdefaultlocale shouldn't accept argumentsFredrik Lundh2000-07-081-8/+11
| | | | - some more spacification...
* - added _getdefaultlocale implementation for WIN32Fredrik Lundh2000-07-081-269/+351
| | | | - ansified, reindentified, spacified, nullified
* ANSI-fication of the sources, convert to 4-space indents.Fred Drake2000-07-081-70/+97
| | | | | Use PyArg_ParseTuple() to get better error messages. Add docstrings all around.
* ANSI-fied sources, converted to four-space indentation.Fred Drake2000-07-081-182/+151
| | | | | Converted to PyArg_ParseTuple() with method names to get better error messages.
* ANSI-fied sources, converted to four-space indentation.Fred Drake2000-07-081-372/+363
|
* Add method names to PyArg_ParseTuple() calls for better error messages.Fred Drake2000-07-081-313/+298
| | | | Convert to four-space indents.
* ANSI-fy the sources.Fred Drake2000-07-081-313/+287
| | | | | | Convert to using PyArg_ParseTuple() as appropriate to allow method names in error messages. Re-indent to four-space indentation.
* Pretensions of the 20th century... remove old-style preprocessorFred Drake2000-07-081-6/+0
| | | | hackery (/**/), leaving only new-style preprocessor hackery (##).
* ANSI-fy the sources.Fred Drake2000-07-081-19/+16
|
* Removed Py_PROTO, ANSI-fied sources.Fred Drake2000-07-081-187/+68
|
* Thomas Wouters <thomas@xs4all.net>:Fred Drake2000-07-071-1/+1
| | | | Allow -f* parameters to be passed to the compiler from Setup files.
* Removed a prototype which is not used in socketmodule.cMarc-André Lemburg2000-07-071-1/+0
| | | | Patch by T. Wouters.
* Fix bug #392, reported by Jonathan Giddy <jon@dstc.edu.au>:Fred Drake2000-07-061-2/+4
| | | | | | | | | | | | In posixmodule.c:posix_fork, the function PyOS_AfterFork is called for both the parent and the child, despite the docs stating that it should be called in the new (child) process. This causes problems in the parent since the forking thread becomes the main thread according to the signal module. Calling PyOS_AfterFork() only in the child fixes this. Changed for both fork() and forkpty().
* Python 2.0 is not supposed to use string exceptions in the standard libraryFred Drake2000-07-063-3/+3
| | | | | & extensions, so create exceptions in extension modules using the PyErr_NewException() API.
* added read_history_file and write_history_fileSkip Montanaro2000-07-061-0/+50
| | | | XXX should perhaps support history truncation as well
* Removed unused variables.Andrew M. Kuchling2000-07-061-3/+4
| | | | Added two functions that were left out of the method definition table.
* don't prepend "$(srcdir)/" to paths beginning with "$" since they are likelySkip Montanaro2000-07-061-0/+1
| | | | to be absolute.
* Add more "volatile" decls to stop gcc -Wall warnings.Tim Peters2000-07-051-2/+2
| | | | | | | | Somebody w/ gcc please check that the wngs are gone! There are cheaper (at runtime) ways to prevent the wngs, but they're obscure and delicate. I'm going for the easy Big Hammer here under the theory that PCRE will be replaced by SRE anyway.
* maintenance release:Fredrik Lundh2000-07-051-32/+31
| | | | | | | | - reorganized some code to get rid of -Wall and -W4 warnings - fixed default argument handling for sub/subn/split methods (reported by Peter Schneider-Kamp).
* Remove definition of _GNU_SOURCE, since Python.h now does it for usAndrew M. Kuchling2000-07-051-5/+0
|
* Modified the encode interfaces of all builtin codecs to acceptMarc-André Lemburg2000-07-051-50/+105
| | | | | any object which can be converted to Unicode by means of PyUnicode_FromObject().
* pyexpat.errors is a *strange* module!Fred Drake2000-07-041-14/+15
| | | | | | | | | It gets initialized when pyexpat is imported, and is only accessible as an attribute of pyexpat; it cannot be imported itself. This allows it to at least be importable after pyexpat itself has been imported by adding it to sys.modules, so it is not quite as strange. This arrangement needs to be better thought out.
* Remove warning about local variable possibly being using uninitialized;Fred Drake2000-07-041-1/+1
| | | | noted by Marc-Andre Lemburg <mal@lemburg.com>.
* Fixes for compilation problems on Tru64 reported by Mark FavasAndrew M. Kuchling2000-07-041-16/+16
|
* Fixed symbol search for defining NSIG. It now also checks _NSIGMarc-André Lemburg2000-07-041-5/+9
| | | | | | | which some C libs define (e.g. glibc). Added a fallback default value for NSIG which hopefully provides enough room for signal slots.
* Typo repair in docstring -- my fault.Tim Peters2000-07-031-1/+1
|
* Mac only: two epoch problem workarounds are no longer needed for GUSIJack Jansen2000-07-031-2/+2
| | | | >= 2.0.5. One still is:-(
* - fixed grouping error bugFredrik Lundh2000-07-032-16/+36
| | | | - changed "group" operator to "groupref"
* - added lookbehind support (?<=pattern), (?<!pattern).Fredrik Lundh2000-07-032-63/+86
| | | | | | | | | | | | | | | | | the pattern must have a fixed width. - got rid of array-module dependencies; the match pro- gram is now stored inside the pattern object, rather than in an extra string buffer. - cleaned up a various of potential leaks, api abuses, and other minors in the engine module. - use mal's new isalnum macro, rather than my own work- around. - untabified test_sre.py. seems like I removed a couple of trailing spaces in the process...
* ANSI-fication, remove Py_PROTO, etc.Fred Drake2000-07-031-84/+74
| | | | | | | Revise math_1(), math_2(), stub-generating macros, and function tables to use PyArg_ParseTuple() and properly provide the function name for error message generation. Fix pow() docstring for MPW 3.1; had said "power" instead of "pow".
* Andrew Kuchling <akuchlin@mems-exchange.org>:Fred Drake2000-07-031-1/+1
| | | | Typo in string literal: execpt --> except
* - experimental: added two new attributes to the match object:Fredrik Lundh2000-07-022-12/+29
| | | | | | | | "lastgroup" is the name of the last matched capturing group, "lastindex" is the index of the same group. if no group was matched, both attributes are set to None. the (?P#) feature will be removed in the next relase.
* Repair docs for math.frexp (they were wrong).Tim Peters2000-07-021-1/+3
| | | | Reported on c.l.py by Kirill Simonov.
* - actually enabled charset anchors in the engine (still notFredrik Lundh2000-07-023-19/+44
| | | | | | | | | | used by the code generator) - changed max repeat value in engine (to match earlier array fix) - added experimental "which part matched?" mechanism to sre; see http://hem.passagen.se/eff/2000_07_01_bot-archive.htm#416954 or python-dev for details.