summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused variable and call to PyModule_GetDict().Fred Drake2002-04-011-2/+1
|
* Switch to using METH_NOARGS where possible.Fred Drake2002-04-011-38/+18
| | | | Convert to use PyModule_*() instead of manipulating the module dict directly.
* Remove UNLESS.Martin v. Löwis2002-04-011-152/+152
|
* Use the PyModule_*() API instead of manipulating the module dictionaryFred Drake2002-04-012-11/+11
| | | | directly.
* Get rid of all METH_OLDARGS & PyArg_Parse.Neal Norwitz2002-04-011-43/+35
| | | | | Fix floating point exception if mpz.powm(10, 1, 0) (modulus == 0). Add a test.
* mpz_float() only takes one parameter nowNeal Norwitz2002-03-311-5/+0
|
* Get rid of warnings due to changing to METH_NOARGSNeal Norwitz2002-03-311-5/+5
|
* Convert METH_OLDARGS -> METH_NOARGS: remove args parameterNeal Norwitz2002-03-311-243/+247
| | | | Use METH_OLDARGS explicitly rather than implicitly.
* Revert use of METH_OLDARGS (use 0) to support 1.5.2Neal Norwitz2002-03-311-2/+4
|
* Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTupleNeal Norwitz2002-03-313-47/+34
| | | | Please review for correctness.
* Remove METH_OLDARGS:Neal Norwitz2002-03-3111-164/+85
| | | | | | | Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple Convert METH_OLDARGS -> METH_NOARGS: remove args parameter Please review. All tests pass, but some modules don't have tests. I spot checked various functions to try to make sure nothing broke.
* Convert from using METH_OLDARGS to METH_NOARGS.Neal Norwitz2002-03-313-85/+44
| | | | These should be safe.
* Fix whitespaceNeal Norwitz2002-03-311-2/+1
|
* Use symbolic METH_VARARGS/METH_OLDARGS instead of 1/0 for ml_flagsNeal Norwitz2002-03-313-17/+17
|
* Add missing typecast.Neil Schemenauer2002-03-291-1/+2
|
* [Patch #536769] Add -Xcompiler flag for adding arguments and switches forAndrew M. Kuchling2002-03-291-0/+1
| | | | the compiler
* Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined.Neil Schemenauer2002-03-291-0/+2
|
* Add type cast.Neil Schemenauer2002-03-281-1/+2
|
* This is Neil's fix for SF bug 535905 (Evil Trashcan and GC interaction).Guido van Rossum2002-03-281-1/+3
| | | | | | | | The fix makes it possible to call PyObject_GC_UnTrack() more than once on the same object, and then move the PyObject_GC_UnTrack() call to *before* the trashcan code is invoked. BUGFIX CANDIDATE!
* Add a simple test of the METH_CLASS and METH_STATIC flags for type methods.Fred Drake2002-03-281-0/+28
|
* Expose C library's gettext. Fixes #516412.Martin v. Löwis2002-03-271-2/+96
|
* Don't imply XPG4 constants from CODESET presence. Fixes #534153.Martin v. Löwis2002-03-271-1/+4
| | | | 2.2.2 candiate.
* Missed change METH_OLDARGS to METH_NOARGS for two aliased functionsNeal Norwitz2002-03-261-2/+2
|
* Remove last occurrance of PyArg_GetInt. It is deprecated,Neal Norwitz2002-03-251-1/+1
|
* Missed change METH_OLDARGS to METH_NOARGS for two aliased functionsNeal Norwitz2002-03-251-2/+2
|
* Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.Neal Norwitz2002-03-258-122/+62
|
* Due to interaction between the MSL C library and the GUSI I/O library I can ↵Jack Jansen2002-03-251-0/+5
| | | | | | | | get reads from sockets to work consistently either for unbuffered binary files or for buffered binary files, but not for both:-( The workaround is to force socket.makefile() to disable buffering for binary files. Fixes bug 534625. 2.2.1 candidate.
* Expose RLIM_INFINITY constant. Closes SF patch 489066.Neil Schemenauer2002-03-241-1/+13
|
* Add get_history_item, get_current_history_length, and redisplay functions.Neil Schemenauer2002-03-241-2/+61
| | | | Clarify the docstring for get_history_length. Closes SF patch 494066.
* Match behavior of the pickle.py module more closely.Neil Schemenauer2002-03-221-0/+5
|
* Handle os.listdir("") case correctly on Windows. Closes bug 500705.Neil Schemenauer2002-03-221-4/+5
|
* Use pymalloc for realloc() as well.Neil Schemenauer2002-03-221-2/+2
|
* Use pymalloc if it's enabled.Neil Schemenauer2002-03-221-4/+4
|
* Remove compiler warnings on Solaris 8.Neal Norwitz2002-03-203-3/+3
| | | | Can go into 2.2.x, but not necessary.
* Remove extraneous #define as per effbot's instructions in:Neal Norwitz2002-03-181-2/+0
| | | | [ 530285 ] redefining SRE_CODE in Modules/sre.h
* 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
|