summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Include Python.h first. Fixes #530159.Martin v. Löwis2002-03-151-1/+1
|
* Verify arguments for nl_langinfo. Fixes #528879.Martin v. Löwis2002-03-121-84/+106
|
* Change the example code to prefer PyModule_Add*() instead of using theFred Drake2002-03-122-12/+12
| | | | | module dictionary directly. Also, be more careful about not re-initializing globals in the event of re-initialization of a C extension.
* Update docstrings to use te attribute names of the new structures returnedFred Drake2002-03-122-4/+7
| | | | | by stat and time functions. This closes SF patch #523271.
* Changed C++ comment into standard comment.Sjoerd Mullender2002-03-111-1/+1
|
* SF bug 525705: [2.2] underflow raise OverflowException.Tim Peters2002-03-091-2/+1
| | | | | | | | | | | | | | | | | | | | Another year in the quest to out-guess random C behavior. Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y). The latter is useful for functions with complex results. Two corrections to errno- after-libm-call are attempted: 1. If the platform set errno to ERANGE due to underflow, clear errno. Some unknown subset of libm versions and link options do this. It's allowed by C89, but I never figured anyone would do it. 2. If the platform did not set errno but overflow occurred, force errno to ERANGE. C89 required setting errno to ERANGE, but C99 doesn't. Some unknown subset of libm versions and link options do it the C99 way now. Bugfix candidate, but hold off until some Linux people actually try it, with and without -lieee. I'll send a help plea to Python-Dev.
* Fix SF bug #526518Jeremy Hylton2002-03-081-1/+1
| | | | | | | | The doc string for cStringIO suggested that str() of a StringIO object was equivalent to getvalue(). This was never true, so repair the doc string. (doctest would have helped here.) Bug fix candidate for any past versions.
* SF bug 515943: searching for data with \0 in mmap.Tim Peters2002-03-081-9/+5
| | | | | | | | | mmap_find_method(): this obtained the string to find via s#, but it ignored its length, acting as if it were \0-terminated instead. Someone please run on Linux too (the extended test_mmap works on Windows). Bugfix candidate.
* Remove tp_print.Martin v. Löwis2002-03-041-34/+1
|
* Python no longer compiled on Windows, due to #include file confusionTim Peters2002-03-031-4/+5
| | | | | | over SEP, ALTSEP and MAXPATHLEN. Patched up posixmodule.c for MSVC, but unsure what the story is now on other non-Unixish platforms -- the preprocessor maze has no exit <wink>.
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-031-17/+702
| | | | | | | | | | Modules/ posixmodule.c - use SEP,ALTSEP #defines instead of hard coded path separator chars - use EMX specific variants of chdir2(),getcwd() that support drive letters - OS/2+EMX spawnv(),spawnve() support - EMX specific popen[234]() derived from Win32 popen[234]() code
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-031-6/+11
| | | | | | | Modules/ socketmodule.c EMX handles sockets like Posix, rather than use native APIs
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-0311-11/+47
| | | | | | | | | | | | | | | Modules/ _hotshot.c dbmmodule.c fcntlmodule.c main.c pwdmodule.c readline.c selectmodule.c signalmodule.c termios.c timemodule.c unicodedata.c
* SF patch 517245 by Marc Recht.Guido van Rossum2002-03-011-1/+1
| | | | | | Support GMP version >= 2. Bugfix candidate.
* Patch #523268, #522027: return enhanced tuples.Martin v. Löwis2002-03-012-20/+110
|
* Patch 520694: arraymodule.c improvements:Martin v. Löwis2002-03-011-107/+316
| | | | | | - make array.array a type - add Py_UNICODE arrays - support +=, *=
* Patch #520062: Support IPv6 with VC.NET.Martin v. Löwis2002-03-012-0/+13
|
* Add documentation about how the inter-module linking works.Marc-André Lemburg2002-02-251-1/+54
|
* Moved the declaration of PySocketSock_Type from socketmodule.h toTim Peters2002-02-172-7/+5
| | | | | | | | | | | | socketmodule.c. No code outside of the .c file references it, so it doesn't belong the .h file (at least not yet ...), and declaring it an imported symbol in the .h file can't be made to work on Windows (it's a cross-DLL symbol then) without substantial code rewriting. Also repaired the comment that goes along with the decl, to stop referring to names and functions that haven't existed for 7 years <wink>. socketmodule.c compiles cleanly on Windows again. The test_socket dies at once, though (later).
* For readability, switch to tab indents; was using a mix of tab indents,Tim Peters2002-02-171-35/+35
| | | | | 4-space indents, and ambiguous space+tab indents. Added an XXX comment about a confusing part. Still doesn't build on Windows.
* Patch #511193: Implement killpg in posixmodule.Martin v. Löwis2002-02-161-0/+21
|
* Remove extraneous variable 'total', as reported by James Rucker.Martin v. Löwis2002-02-161-2/+1
|
* Also fix the comment.Marc-André Lemburg2002-02-161-1/+1
|
* Fix the name of the header file.Marc-André Lemburg2002-02-161-1/+1
|
* Break SSL support out of _socket module and place it into a newMarc-André Lemburg2002-02-164-557/+716
| | | | | | | | | | | | | | | | | | helper module _ssl. The support for the RAND_* APIs in _ssl is now only enabled for OpenSSL 0.9.5 and up since they were added in that release. Note that socketmodule.* should really be renamed to _socket.* -- unfortunately, this seems to lose the CVS history of the file. Please review and test... I was only able to test the header file chaos in socketmodule.c/h on Linux. The test run through fine and compiles don't give errors or warnings. WARNING: This patch does *not* include changes to the various non-Unix build process files.
* Fix typo.Fred Drake2002-02-141-1/+1
|
* Use PyModule_AddObject() instead of accessing the module dict directly.Fred Drake2002-02-142-10/+14
|
* Use PyModule_AddIntConstant() instead of creating a private helper function.Fred Drake2002-02-141-30/+22
| | | | This also avoids directly accessing the module'd __dict__.
* Simon Budig's patch (posted by me):Michael W. Hudson2002-02-131-0/+3
| | | | [ #513235 ] prevent readline filename completion
* Define VERSION in expat.h.Martin v. Löwis2002-02-131-0/+4
|
* Windows time_clock(): rewrite to get rid of horrid casting tricks.Tim Peters2002-02-131-12/+10
| | | | | Don't blame Mark! The horrid casting tricks were my idea to begin with. The rewrite works fine under VC6, and I *expect* will work fine under VC7.
* "Generate" from expat.h.in, for 1.95.2.Martin v. Löwis2002-02-121-0/+735
|
* Ensure we also build on VC7. Involves replacing largeint.h helper functions ↵Mark Hammond2002-02-122-22/+17
| | | | with msvc's native 64 bit integers.
* Use included Expat library. Drop support for older expat versions.Martin v. Löwis2002-02-111-171/+0
|
* Disable usage of Expat's config.h.Martin v. Löwis2002-02-113-0/+6
|
* Initial revisionMartin v. Löwis2002-02-1117-0/+11093
|
* Remove mentioning of -U option in "python -h" output.Marc-André Lemburg2002-02-111-1/+0
|
* start() and stop() methods: return None where there is no exception;Fred Drake2002-02-081-2/+8
| | | | | returning NULL causes the interpreter to raise a SystemError. Noted by Anthony Baxter at Python 10.
* Got rid of a few more NeXT ifdefs. The last, I think.Jack Jansen2002-02-014-111/+0
|
* Implement os.waitpid() for Windows, in a way that's compatible with LinuxTim Peters2002-02-011-2/+28
| | | | | | where their capabilities intersect. Would be nice if people using non- MSVC compilers (Borland etc) took a whack at doing something similar for them (this code relies on the MS _cwait function).
* Oh look, another one.Michael W. Hudson2002-01-301-1/+1
| | | | 2.2.1 candiate (he says, largely talking to himself :)
* I think this fixesMichael W. Hudson2002-01-301-1/+1
| | | | | | | | | | | | | [ #510644 ] test_curses segfaults If we use the *object* *allocator*, we should use the *object* *deallocator*, not the *raw memory* deallocator (confused yet?). I think this was what caused segfaults when pymalloc was enabled. Even if it wasn't the cause, it's still wrong. 2.2.1 candidate.
* Expose more MS WIndows constants usable w/ low-level os.open().Tim Peters2002-01-301-102/+125
|
* Fix spelling mistakes. Bugfix candidates.Neal Norwitz2002-01-291-1/+1
|
* Encode Unicode arguments to split/splitlist as UTF-8. Fixes #507962.Martin v. Löwis2002-01-261-2/+2
| | | | 2.2.1 bugfix candidate.
* Removed an XXX question (the answer is "yes" <wink>).Tim Peters2002-01-261-1/+1
|
* Patch #477750: Use METH_ constants in Modules.Martin v. Löwis2002-01-1727-449/+449
|
* Patch #477752: Drop old-style getargs from curses.Martin v. Löwis2002-01-172-372/+309
|
* Change some spaces to tabs. I don't *think* that was me, but itMichael W. Hudson2002-01-161-2/+2
| | | | might have been...
* Fix forMichael W. Hudson2002-01-161-8/+8
| | | | | | | [ #504284 ] Last build problems on AIX I'm ignoring the suggestion that this should be an autoconf test in the interests of having a fix today. Feel free to quibble.