summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Implement names for CJK unified ideographs. Add name to KeyError output.Martin v. Löwis2002-11-231-1/+39
| | | | Verify that the lookup for an existing name succeeds.
* Fix off-by-one error.Martin v. Löwis2002-11-231-1/+1
|
* Patch #626548: Support Hangul syllable names.Martin v. Löwis2002-11-231-2/+109
|
* Merge with bsddb3 2002.11.23.10.42.36Martin v. Löwis2002-11-231-8/+16
|
* Include Python.h first.Martin v. Löwis2002-11-231-1/+1
|
* Fix SF # 640557, '64-bit' systems and the dbm moduleNeal Norwitz2002-11-221-6/+17
| | | | | | | datum.dsize can apparently be long on some systems. Ensure we pass an int* to PyArg_Parse("s#"), not &datum.dsize Will backport.
* fix for SF #635398 (don't "downcast" return strings from unicode to ascii)Fredrik Lundh2002-11-221-21/+4
|
* Fix --disable-unicode compilation problems.Martin v. Löwis2002-11-211-0/+5
|
* Comment out the getcwdu implementation for --disable-unicode buildsWalter Dörwald2002-11-211-0/+4
|
* Always call tparm with 10 arguments. It seems it's not varargs iMichael W. Hudson2002-11-211-43/+3
| | | | | | | | more often than it is. In response to bug: [ 641808 ] Portability of Modules/_cursesmodule.c submitted by Nick Mclaren.
* Don't try to use unsupported DB versions.Martin v. Löwis2002-11-191-1/+6
|
* Import PyBSDDB 3.4.0. Rename historical wrapper to bsddb185.Martin v. Löwis2002-11-193-15/+4266
|
* Don't use PyNumber_Float() since it's is nearly useless. Instead, rely onNeil Schemenauer2002-11-181-4/+2
| | | | PyFloat_AsDouble to generate a good error message.
* Use PyInt_AsLong instead of PyInt_AS_LONG after the call toWalter Dörwald2002-11-121-1/+1
| | | | | | | PyNumber_Int, because now PyNumber_Int might return a long, and PyInt_AsLong can handle that, whereas PyInt_AS_LONG can't. This closes SF bug #629989.
* Make private functions static so we don't pollute the namespaceNeal Norwitz2002-11-101-1/+2
|
* Fix typo.Martin v. Löwis2002-11-091-1/+1
|
* bz2_compress/bz2_decompress: more casting away LONG_LONG forTim Peters2002-11-091-2/+2
| | | | _PyString_Resize calls.
* BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.Tim Peters2002-11-091-2/+2
|
* BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.Tim Peters2002-11-091-2/+2
|
* BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument toTim Peters2002-11-091-1/+1
| | | | _PyString_Resize to int.
* BZ2Comp_compress(): changed decl of totalout to LONG_LONG, since it'sTim Peters2002-11-091-1/+1
| | | | | solely used to hold LONG_LONG values, and the compiler rightfully warns about potential data loss otherwise.
* Repaired signed-vs-unsigned mismatch.Tim Peters2002-11-091-1/+1
|
* This couldn't compile on WIndows, due to hardcoded "long long". Repaired.Tim Peters2002-11-091-23/+23
|
* * Modules/bz2module.cGustavo Niemeyer2002-11-081-12/+21
| | | | | (BZ2File_dealloc): Call Util_DropReadAhead(). (*): Included aesthetic changes by Neal Norwitz.
* Assorted patches from Armin Rigo:Michael W. Hudson2002-11-081-1/+1
| | | | | | | | [ 617309 ] getframe hook (Psyco #1) [ 617311 ] Tiny profiling info (Psyco #2) [ 617312 ] debugger-controlled jumps (Psyco #3) These are forward ports from 2.2.2.
* Enforce valid filemode. Fixes SF Bug #623464.Thomas Heller2002-11-071-0/+6
|
* Fixed sre bug "[#581080] Provoking infinite scanner loops".Gustavo Niemeyer2002-11-071-4/+6
| | | | | | | | | | | | | | | | This bug happened because: 1) the scanner_search and scanner_match methods were not checking the buffer limits before increasing the current pointer; and 2) SRE_SEARCH was using "if (ptr == end)" as a loop break, instead of "if (ptr >= end)". * Modules/_sre.c (SRE_SEARCH): Check for "ptr >= end" to break loops, so that we don't hang forever if a pointer passing the buffer limit is used. (scanner_search,scanner_match): Don't increment the current pointer if we're going to pass the buffer limit. * Misc/NEWS Mention the fix.
* [Patch #633635 from David M. Cooke]Andrew M. Kuchling2002-11-061-6/+14
| | | | | | Make keyname raise ValueError if passed -1, avoiding a segfault Make getkey() match the docs and raise an exception in nodelay mode The return type of getch() is int, not chtype
* Fixed bug #470582, using a modified version of patch #527371,Gustavo Niemeyer2002-11-061-18/+19
| | | | | | | | | | | | | | | | | | | from Greg Chapman. * Modules/_sre.c (lastmark_restore): New function, implementing algorithm to restore a state to a given lastmark. In addition to the similar algorithm used in a few places of SRE_MATCH, restore lastindex when restoring lastmark. (SRE_MATCH): Replace lastmark inline restoring by lastmark_restore(), function. Also include it where missing. In SRE_OP_MARK, set lastindex only if i > lastmark. * Lib/test/re_tests.py * Lib/test/test_sre.py Included regression tests for the fixed bugs. * Misc/NEWS Mention fixes.
* * bzmodule.cGustavo Niemeyer2002-11-051-3/+3
| | | | More fixes of XDECREF'd values not initialized.
* Fix SF #633935, test_bz2 failsNeal Norwitz2002-11-051-1/+1
| | | | | Needed to init ret since it was Py_XDECREF()d on error. All regressions pass in debug build for me.
* Patch implementing bz2 module.Gustavo Niemeyer2002-11-051-0/+2099
| | | | | | | | | | | | | | | | | * setup.py (PyBuildExt.detect_modules): Included bz2 module detection. * Modules/bz2module.c * Lib/test/test_bz2.py * Doc/lib/libbz2.tex Included files implementing, testing, and documenting bz2 module. * Doc/Makefile.deps * Doc/lib/lib.tex Include references to libbz2.tex. * Misc/NEWS (Library): Mention distutils' c++ linkage patch, and new bz2 module.
* SF #633013, Fix NIS causing interpreter core dumpNeal Norwitz2002-11-041-2/+4
| | | | | Prevent the lengths passed to PyString_FromStringAndSize() from being negative in some cases.
* Use O_NONBLOCK rather than O_NDELAY, so we get POSIX non-blocking I/O.Neal Norwitz2002-11-021-4/+4
| | | | | | | | | | | | | On HPUX, Solaris, Tru64 (Dec UNIX), and IRIX (I think), O_NONBLOCK is the POSIX version of non-blocking I/O which is what we want. On Linux and FreeBSD (at least), O_NONBLOCK and O_NDELAY are the same. So this change should have no negative effect on those platforms. Tested on Linux, Solaris, HPUX. Thanks to Anders Qvist for diagnosing this problem.
* Fix SF #632624, test_resource failure on alpha/64bitNeal Norwitz2002-11-021-1/+1
| | | | | Return PyLongs instead ot PyInts. On alphas, 9223372036854775807 became -1.
* Remove extra argument in mknod. Fixes #632628.Martin v. Löwis2002-11-021-1/+1
|
* Add docstrings to register, lookup, register_errorWalter Dörwald2002-10-311-4/+36
| | | | and lookup_error. This closes SF patch #630622.
* Use personal e-mail addressAndrew M. Kuchling2002-10-302-3/+2
|
* Patch #512981: Update readline input stream on sys.stdin/out change.Martin v. Löwis2002-10-261-7/+13
|
* Remove duplicate definitions of _XOPEN_SOURCE_EXTENDED.Martin v. Löwis2002-10-261-2/+0
|
* Update to Unicode 3.2 database.Martin v. Löwis2002-10-183-8989/+13012
|
* Fix minor whitespace nit, for consistency with Python's C style rules.Fred Drake2002-10-171-1/+1
|
* Patch #623780: Replace obsolete struct macros.Martin v. Löwis2002-10-162-11/+11
|
* Add PyStructSequence_UnnamedField. Add stat_float_times.Martin v. Löwis2002-10-161-5/+75
| | | | Use integers in stat tuple, optionally floats in named fields.
* posix_execve(): add missing argument for "et" format in PyArg_Parse()Guido van Rossum2002-10-161-0/+1
| | | | | call. This caused mysterious crashes (hard to debug because it was happening in a child process).
* Fix a few docstrings, remove extra commasNeal Norwitz2002-10-111-3/+3
|
* SF #621948, update docstring for md5 by David M. Cooke. Will backport.Neal Norwitz2002-10-111-0/+1
|
* Patch #569139: Implementation of major, minor and makedev.Martin v. Löwis2002-10-101-8/+59
|
* GNU readline() mistakenly sets the LC_CTYPE locale.Guido van Rossum2002-10-091-0/+17
| | | | | This is evil. Only the user or the app's main() should do this! We must save and restore the locale around the rl_initialize() call.
* Apply file system default encoding to exec and spawn path and arguments.Martin v. Löwis2002-10-071-23/+68
|