summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Handle a couple of use cases discussed in python-dev w.r.t. calculating theBarry Warsaw2005-12-181-8/+26
| | | | | | | | | | Subversion revision number. First, in an svn export, there will be no .svn directory, so use an in-file $Revision$ keyword string with the keyword chrome stripped off. Also, use $(srcdir) in the Makefile.pre.in to handle the case where Python is build outside the source tree.
* Fixed None reference leaks in TreeBuilder class (reported by NealFredrik Lundh2005-12-181-0/+4
| | | | Norwitz)
* SF Patch #1365916, mmap fails on AMD64Neal Norwitz2005-12-181-12/+12
| | | | Fix some 64-bit issues due to mismatch format characters w/actual data types
* Expose Subversion revision number (calculated via "svnversion .") to Python.Barry Warsaw2005-12-181-2/+8
| | | | | | | Add C API function Py_GetBuildNumber(), add it to the interactive prompt banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number attribute. The build number is a string instead of an int because it may contain a trailing 'M' if there are local modifications.
* Fixed reference counting error when using the entity dictionaryFredrik Lundh2005-12-171-1/+0
| | | | | (reported by Chris Olds). Backported from the 1.0.6 development branch.
* updating to cElementTree 1.0.5 (step 3 of 3)Fredrik Lundh2005-12-161-4/+7
|
* updating to cElementTree 1.0.5 (step 2 of 3)Fredrik Lundh2005-12-161-0/+2766
|
* updating to cElementTree 1.0.5Fredrik Lundh2005-12-161-2723/+0
|
* added PSG licensing blurbFredrik Lundh2005-12-141-0/+3
|
* renamed to _elementtree (for Python 2.5)Fredrik Lundh2005-12-141-4/+4
|
* copied cElementTree 1.0.4 to ModulesFredrik Lundh2005-12-141-0/+2720
|
* Added the 'ULL' prefix to the unsigned long long literal constants.Armin Rigo2005-12-141-99/+99
| | | | Supresses numerous pages of compiler warnings.
* moved magic into structure (mainly to simplify the client code)Fredrik Lundh2005-12-131-5/+5
| | | | added missing API hooks
* renamed dispatch -> capi to match other CAPI implementationsFredrik Lundh2005-12-131-24/+24
| | | | (e.g. cStringIO, ucnhash, etc)
* added cobject-based expat dispatch mechanism to pyexpatFredrik Lundh2005-12-131-0/+31
|
* Bug #1290333: Added a workaround for cjkcodecs' _codecs_cn moduleHye-Shik Chang2005-12-121-0/+8
| | | | build problem on AIX.
* Add const to several API functions that take char *.Jeremy Hylton2005-12-1020-113/+124
| | | | | | | | | | | | | | | | | | | In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *.
* Nobody on python-dev seemed particularly bothered that Hotshot generates half-Armin Rigo2005-12-061-34/+2
| | | | meaningless numbers, but I figured out I would fix that bug anyway.
* Bug #869197: setgroups rejects long integer argumentGeorg Brandl2005-11-221-6/+31
|
* [Patch #1350573] zlib.crc32 doesn't handle 0xffffffff seed. Add tests and ↵Andrew M. Kuchling2005-11-221-2/+2
| | | | bugfix. Bug reported by John Schmidt; bugfix by Danny Yoo.
* update busted commentFred Drake2005-11-111-1/+2
|
* similar to SF bug 847019: a quick check in the time() constructor, whichArmin Rigo2005-11-071-1/+2
| | | | | | accepts strings only for unpickling reasons. This check prevents the honest mistake of passing a string like '2:59.0' to time() and getting an insane object.
* Bug #1346533, select.poll() doesn't raise an error if timeout > sys.maxintNeal Norwitz2005-11-031-0/+2
| | | | | | Need to check return result of PyInt_AsLong() Will backport.
* Whitespace cleanup.Walter Dörwald2005-11-021-27/+27
|
* Cleanup the previous checkin.Neal Norwitz2005-11-021-1/+4
| | | | | Close the fd in the close method and invalidated it. Don't try to close a second time when deallocating.
* Bug #1344508, Fix UNIX mmap leaking file descriptors. Will backport.Neal Norwitz2005-11-021-0/+1
|
* Remove .cvsignore files, as they live in svn:ignoreMartin v. Löwis2005-10-301-9/+0
| | | | properties now.
* Fix a bunch of imports to use code.h instead of compile.h.Jeremy Hylton2005-10-214-4/+1
| | | | Remove duplicate declarations from compile.h
* Merge ast-branch to headJeremy Hylton2005-10-202-3/+6
| | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.
* Get bsddb module to compile with version 3.2 of BSD DB.Neal Norwitz2005-10-201-0/+8
|
* Change the internal "undefined codepoint" mark for CJKCodecs decodersHye-Shik Chang2005-10-061-1/+4
| | | | | from U+FFFD to U+FFFE which is considered more appropriate. (from MAL's comment)
* SF #1313496: bisect C replacement doesn't accept named argsRaymond Hettinger2005-10-051-22/+26
|
* SF Bug # 941346, AIX shared library fixNeal Norwitz2005-10-031-0/+4
| | | | | | | | Since I can't test this, I'm just adding a comment. If we get access to AIX boxes, we can test this and really resolve. Anyone from IBM want to offer help? Backport candidate I suppose.
* SF bug #887946, segfault if redirecting directoryNeal Norwitz2005-10-031-0/+8
| | | | | | | Also provide a warning if a directory is passed on the command line. Add minimal command line test. Will backport.
* Patch #1309009, Fix segfault in pyexpat when the XML document isNeal Norwitz2005-09-301-1/+6
| | | | | | in latin_1, but Python incorrectly assumes it is in UTF-8 format Will backport.
* Fix parse errors in readline module when compiling without threads.Georg Brandl2005-09-291-0/+2
|
* Commit memory leaking fix.Georg Brandl2005-09-251-2/+6
|
* Convert iterator __len__() methods to a private API.Raymond Hettinger2005-09-242-15/+23
|
* Patch #1288833: Removed thread lock from socket.getaddrinfo onHye-Shik Chang2005-09-241-1/+6
| | | | | FreeBSD 5.3 and later versions which got thread-safe getaddrinfo(3). (Reported by Maxim Sobolev)
* Patches #1298449 and #1298499: Add some missing checks for errorMichael W. Hudson2005-09-221-7/+15
| | | | | | returns in cStringIO.c. Thanks to Andrew Bennetts. This must be a backport candidate.
* SF Patch #1297028, cjkcodecs does not initialize type pointerNeal Norwitz2005-09-211-0/+4
| | | | | | | Fix segfault. I tried to write a test, but it wouldn't crash when running regrtest. This really should have some sort of test. Should definitely be backported.
* C89 compliance.Armin Rigo2005-09-201-2/+2
|
* Remove unnecessary/extra parens when returning a value.Neal Norwitz2005-09-191-6/+6
|
* Forward port fixes for problems reported by valgrindNeal Norwitz2005-09-191-1/+2
|
* Patch #1213831: Fix typo in unicodedata._getcode.Martin v. Löwis2005-09-181-1/+1
| | | | Will backport to Python 2.4.
* Change type on variable to silence gcc 4 warning. Call signature was found atBrett Cannon2005-09-161-1/+1
| | | | http://darwinsource.opendarwin.org/10.4.2/dyld-43.1/src/dyldAPIs.cpp .
* bug [ 1007046 ] os.startfile() doesn't accept Unicode filenamesGeorg Brandl2005-09-141-1/+2
|
* - Changes donated by Elemental Security to make it work on AIX 5.3Guido van Rossum2005-09-146-46/+52
| | | | | with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron).
* bug [ 1274069 ] bz2module.c compiler warningGeorg Brandl2005-09-031-5/+12
|
* SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complainWalter Dörwald2005-08-301-2/+2
| | | | | about illegal code points. The codec now supports PEP 293 style error handlers. (This is a variant of the Nik Haldimann's patch that detects truncated data)