summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Clear errno before calling opendir() and readdir().Georg Brandl2006-04-111-0/+1
|
* Bug #1467952: os.listdir() now correctly raises an error if readdir()Georg Brandl2006-04-111-0/+6
| | | | fails with an error condition.
* SF Patch #1463867: Improved generator finalization to allow generatorsPhillip J. Eby2006-04-101-1/+5
| | | | | | | | that are suspended outside of any try/except/finally blocks to be garbage collected even if they are part of a cycle. Generators that suspend inside of an active try/except or try/finally block (including those created by a ``with`` statement) are still not GC-able if they are part of a cycle, however.
* Fix warning about ptsname not being a prototype on Solaris. Is this ↵Neal Norwitz2006-04-101-1/+1
| | | | prototype even necessary anymore?
* Get rid of warnings about using chars as subscriptsNeal Norwitz2006-04-102-3/+3
| | | | on Alpha (and possibly other platforms) by using Py_CHARMASK().
* Fix some warnings on HP-UX when using cc/aCCNeal Norwitz2006-04-103-6/+4
|
* Fix problem (not checking return result) reported by CoverityNeal Norwitz2006-04-091-1/+4
|
* Fix bsddb.db.DBError derived exceptions so they can be unpickled.Gregory P. Smith2006-04-081-6/+22
| | | | | Also adds some backwards compatibility when compiling _bsddb.c on earlier python versions (needed for pybsddb).
* Patch #1462080: Conditionalize some NETLINK defines.Martin v. Löwis2006-04-061-0/+11
|
* Expose RTLD_LOCAL and RTLD_GLOBAL always from the _ctypes extension module.Thomas Heller2006-04-061-2/+12
| | | | | | | If RTLD_LOCAL is not #defined in any header file (Windows), set it to 0. If RTLD_GLOBAL is not #defined, set it equal to RTLD_LOCAL. This should fix ctypes on cygwin.
* Replace a few more 'char' types with 'signed char', to fix test failuresThomas Heller2006-04-061-5/+5
| | | | on platforms (ppc debian) where 'char' is unsigned.
* This change shouldn't have any functional effect. Coverity wasNeal Norwitz2006-04-061-1/+1
| | | | complaining because it seemed like parameters_iter could be NULL.
* Fix unchecked return result from Coverity.Neal Norwitz2006-04-061-0/+2
|
* Handle ssize_tNeal Norwitz2006-04-061-2/+2
|
* Handle error conditions from PyString_ConcatAndDel().Neal Norwitz2006-04-061-1/+6
|
* Handle ssize_tNeal Norwitz2006-04-061-3/+4
| | | | | | No need to INCREF then let PyString_ConcatAndDel() DECREF. Just use PyString_Concat(). Handle error condition if we can't concat.
* Explicitely use 'signed char', to avoid problems on platforms with unsigned ↵Thomas Heller2006-04-051-26/+26
| | | | char type.
* Explicitely use 'signed char', to avoid problems on platforms with unsigned ↵Thomas Heller2006-04-051-2/+2
| | | | char type.
* upgrade to final version of pysqlite 2.2.0Anthony Baxter2006-04-059-30/+23
|
* docstring tweakFredrik Lundh2006-04-041-1/+1
|
* SF Bug #1448488 - make collectionsmodule build on Cygwin, using the sameAnthony Baxter2006-04-041-2/+6
| | | | techniques as in Modules/xxsubtype.c
* Fix a couple of memory issuesNeal Norwitz2006-04-041-3/+3
|
* Update to pysqlite 2.2.0Anthony Baxter2006-04-0412-129/+416
|
* Properly support empty woperation in win32_startfile;Martin v. Löwis2006-04-031-9/+12
| | | | correct arguments to ShellExecuteW.
* Try to fix the build on Mac OS X 10.3. The 'live_support' segmentThomas Heller2006-04-031-1/+1
| | | | attribute is not supported in this version.
* - add missing chunk for patch #1117961Matthias Klose2006-04-031-2/+2
|
* - Patch #360466: Replace the MD5 implementation from RSA Data Security IncMatthias Klose2006-04-034-344/+465
| | | | with the implementation from http://sourceforge.net/projects/libmd5-rfc/.
* Try to fix the tests on OpenBSD. Apparently OpenBSD passesThomas Heller2006-04-031-2/+2
| | | | structure parameters differently than other posix-like systems.
* Bug #1451503: allow unicode filenames in os.startfile().Georg Brandl2006-04-031-0/+35
|
* Whitespace: break long lineNeal Norwitz2006-04-031-1/+2
|
* Make ssize_t cleanNeal Norwitz2006-04-014-6/+6
|
* backport r243 from the pysqlite2 svn repository - lowers the required versionAnthony Baxter2006-04-013-126/+151
| | | | | | of SQLite3 from 3.2.2 to 3.0.8, by providing an alternative to sqlite3_transfer_bindings. setup.py also handles the common (in debian and ubuntu, at least) case of a buggy sqlite3.h SQLITE_VERSION_NUMBER.
* Patch #1459631: documnent zlib.Decompress.flush() length parameter.Georg Brandl2006-04-011-1/+3
|
* Bug #1460564: document that socket.fromfd() duplicates the givenGeorg Brandl2006-04-011-2/+3
| | | | file descriptor.
* merged the sqlite-integration branch.Anthony Baxter2006-04-0122-0/+4142
| | | | | | | This is based on pysqlite2.1.3, and provides a DB-API interface in the standard library. You'll need sqlite 3.2.2 or later to build this - if you have an earlier version, the C extension module will not be built.
* In the fdopen(fd, 'a') case on UNIX, don't try to set fd's flags to -1 ifThomas Wouters2006-03-311-1/+1
| | | | fcntl() and fdopen() both fail. Will backport.
* Add guards against fcntl() not being available on Windows.Georg Brandl2006-03-311-0/+4
|
* bug #1461855: make os.fdopen() add the O_APPEND flag if using "a" mode.Georg Brandl2006-03-311-2/+13
| | | | | | glibc, for example, does this already on its own, but it seems that the solaris libc doesn't. This leads to Python code being able to over- write file contents even though having specified "a" mode.
* Patch #1380952: fix SSL objects timing out on consecutive read()sGeorg Brandl2006-03-311-8/+15
|
* Remove unnecessary casts from type object initializers.Georg Brandl2006-03-303-35/+35
|
* Try to build _ctypes on x86 openbsd.Thomas Heller2006-03-302-0/+2
|
* In format strings slinging Py_ssize_t, unconditionallyTim Peters2006-03-281-22/+9
| | | | | interpolate PY_FORMAT_SIZE_T instead of #if'ing on MS_WIN64.
* Try to get rid of a Coverity warning by consistently using origpending.Neal Norwitz2006-03-281-1/+1
|
* Make itertools.tee and its internal teedataobject participate in GC. ThisThomas Wouters2006-03-271-19/+71
| | | | | alone does not solve the leak in test_generators, unfortunately, but it is part of test_generators' problem and it does solve other cycles.
* Fix reference leaks introduced by the recent incremental codecHye-Shik Chang2006-03-272-41/+52
| | | | changes.
* Years in the making.Tim Peters2006-03-261-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | objimpl.h, pymem.h: Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE} to PyObject_{Free, FREE} in a release build. They're aliases for the system free() now. _subprocess.c/sp_handle_dealloc(): Since the memory was originally obtained via PyObject_NEW, it must be released via PyObject_FREE (or _DEL). pythonrun.c, tokenizer.c, parsermodule.c: I lost count of the number of PyObject vs PyMem mismatches in these -- it's like the specific function called at each site was picked at random, sometimes even with memory obtained via PyMem getting released via PyObject. Changed most to use PyObject uniformly, since the blobs allocated are predictably small in most cases, and obmalloc is generally faster than system mallocs then. If extension modules in real life prove as sloppy as Python's front end, we'll have to revert the objimpl.h + pymem.h part of this patch. Note that no problems will show up in a debug build (all calls still go thru obmalloc then). Problems will show up only in a release build, most likely segfaults.
* Utilize %zd for Py_ssize_t formatting instead of casting to long.Hye-Shik Chang2006-03-261-4/+4
|
* Allow long objects as a position value of error callbacks returned.Hye-Shik Chang2006-03-261-8/+12
|
* Patch #1443155: Add the incremental codecs support for CJK codecs.Hye-Shik Chang2006-03-263-316/+826
| | | | (reviewed by Walter Dörwald)
* Try to fix broken compile on openbsd.Neal Norwitz2006-03-261-4/+4
|