summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Backport 2.34. SF #621948, update docstring for md5 by David M. CookeNeal Norwitz2002-10-111-0/+1
|
* This is Armin Rigo's patch:Michael W. Hudson2002-10-071-1/+1
| | | | | | [ 617309 ] getframe hook (Psyco #1) Forward port candidate.
* Backport 2.49:Raymond Hettinger2002-10-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | SF #558432: Prevent Annoying ' ' from readline (Holker Krekel). readline in all python versions is configured to append a 'space' character for a successful completion. But for almost all python expressions 'space' is not wanted (see coding conventions PEP 8). For example if you have a function 'longfunction' and you type 'longf<TAB>' you get 'longfunction ' as a completion. note the unwanted space at the end. The patch fixes this behaviour by setting readline's append_character to '\0' which means don't append anything. This doesn't work with readline < 2.1 (AFAIK nowadays readline2.2 is in good use). An alternative approach would be to make the append_character accessable from python so that modules like the rlcompleter.py can set it to '\0'. [Ed.: I think expecting readline >= 2.2 is fine. If a completer wants another character they can append that to the keyword in the list.]
* Patch #615069: Fix build problems on SCO Open Server 5.Martin v. Löwis2002-09-302-1/+3
|
* Backport all changes from trunk (all cosmetic).Guido van Rossum2002-09-301-7/+4
|
* Backport Jack's fix for Jaguar.Michael W. Hudson2002-09-271-0/+5
|
* Backport of 2.18:Guido van Rossum2002-09-261-0/+8
| | | | Patch for the DEC Alpha under Linux, by Lee Busby.
* The Python 2.2.x version of pyexpat needs more changes to avoid typeFred Drake2002-09-251-8/+8
| | | | | issues with varying versions of Expat; this completes the previous fix for this version. (Not relevant for the trunk.)
* backport tim_one's checkin ofMichael W. Hudson2002-09-251-100/+106
| | | | | | | | | | | | | | | revision 2.36 of binascii.c Another stab at SF 576327: zipfile when sizeof(long) == 8 binascii_crc32(): The previous patch forced this to return the same result across platforms. This patch deals with that, on a 64-bit box, the *entry* value may have "unexpected" bits in the high four bytes. Bugfix candidate. -------- More whitespace cleanup related conflict removal... sigh.
* backport tim_one's checkin ofMichael W. Hudson2002-09-251-1/+11
| | | | | | | | | | | | | revision 2.35 of binascii.c Fix for SF bug #576327: zipfile when sizeof(long) == 8 binascii_crc32(): Make this return a signed 4-byte result across platforms. The other way to make this platform-independent would be to make it return an unsigned unbounded int, but the evidence suggests other code out there treats it like a signed 4-byte int (e.g., existing code writing the result with struct.pack "l" format). Bugfix candidate.
* backport of the checkin of revision 2.69 of selectmodule.cThomas Heller2002-09-241-0/+7
| | | | | | On Windows, call WSAGetLastError() to retrieve the error number. Bugfix candidate, will backport to release22-maint myself.
* Be more careful with the type of the xmlhandlersetter; it takes anFred Drake2002-09-241-1/+1
| | | | | | XML_Parser, which happens to be a pointer type, not an XML_Parser*. This generated warnings when compiled with Expat 1.95.5, which no longer defines XML_Parser to be void*.
* backport jhylton's checkin ofMichael W. Hudson2002-09-241-3/+4
| | | | | | | | | | | | | | | | | | | | revision 2.87 of cPickle.c Do more robust test of whether global objects are accessible. PyImport_ImportModule() is not guaranteed to return a module object. When another type of object was returned, the PyModule_GetDict() call return NULL and the subsequent GetItem() seg faulted. Bug fix candidate. ---------- Once again, whitespace chances scuppered automatic backporting, so I did this by hand. Review probably wise -- but I have run make test! Also incorporates revision 2.88 which was just removing a now unused declaration.
* Backport 2.48 from trunk:Guido van Rossum2002-09-241-1/+1
| | | | #544265, Remove warnings for passing const to free()
* Backport 2.57 from trunk:Guido van Rossum2002-09-231-27/+54
| | | | | | | | (Most of) SF patch 601369 (Christos Georgiou): obmalloc,structmodule: 64bit, big endian (issue 2 only). This adds a bunch of memcpy calls via a temporary variable to avoid alignment errors. That's needed for some platforms.
* Add recursion limit to pickling. Fixes #576084.Martin v. Löwis2002-09-221-0/+9
|
* SF # 602108 ensure string is null terminated after strncpyNeal Norwitz2002-09-131-0/+1
|
* Backport of SF bug # 585792, Invalid mmap crashes Python interpreterNeal Norwitz2002-09-051-1/+11
| | | | | | | | Raise ValueError if user passes a size to mmap which is larger than the file. Also need Tim's fix in test_mmap.py, 1.22 which flushes the file before mmap'ing it.
* backport gvanrossum's checkin ofMichael W. Hudson2002-08-231-1/+1
| | | | | | | | | | | revision 2.234 of posixmodule.c SF bug 563750 (Alex Martelli): posix_tmpfile(): The file returned by tmpfile() has mode w+b, so use that in the call to PyFile_FromFile(). Bugfix candidate.
* SF bug 595919: popenN return only text mode pipesTim Peters2002-08-191-2/+2
| | | | | popen2() and popen3() created text-mode pipes even when binary mode was asked for. This was specific to Windows.
* Backport of fix for SF bug #595671 from Python 2.3cvs:Barry Warsaw2002-08-151-5/+2
| | | | | | | | | base64.decodestring('') should return '' instead of raising an exception. The bug fix for SF #430849 wasn't quite right. This closes SF bug #595671. I'll backport this to Python 2.2. One addition here is that there was no test of the base64 module in Python 2.2 cvs yet, so I added that too.
* SF bug #592645 fix memory leak in socket.getaddrinfoNeal Norwitz2002-08-091-0/+2
|
* The errno module needs to be statically linked, since it is now needed duringFred Drake2002-08-081-1/+1
| | | | the extension building phase.
* Add trace_frame. Fixes #534864.Martin v. Löwis2002-08-041-0/+38
|
* Fix ref(), proxy() docstrings, based on comments from David Abrahams.Fred Drake2002-08-021-3/+4
|
* Put Cray fixes on the branch, too.Michael W. Hudson2002-07-312-9/+7
|
* Fix docstring to be consistent with parameter name (prefix)Neal Norwitz2002-07-301-1/+1
|
* Pass length of result structure into setipaddr. Fixes bug #565747.Martin v. Löwis2002-07-281-8/+12
|
* Given the persistent id code a shot at a class before calling save_global().Jeremy Hylton2002-07-161-5/+5
| | | | Backported from the trunk.
* Update the comments on building the pyexpat extension.Fred Drake2002-07-101-16/+11
| | | | Closes SF bug #577774.
* Backport for SF bug #574132: Major GC related performance regression.Tim Peters2002-06-301-13/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2.2.1 has another bug that prevents the regression (which isn't a regression at all) from showing up. "The regression" is actually a glitch in cyclic gc that's been there forever. As the generation being collected is analyzed, objects that can't be collected (because, e.g., we find they're externally referenced, or are in an unreachable cycle but have a __del__ method) are moved out of the list of candidates. A tricksy scheme uses negative values of gc_refs to mark such objects as being moved. However, the exact negative value set at the start may become "more negative" over time for objects not in the generation being collected, and the scheme was checking for an exact match on the negative value originally assigned. As a result, objects in generations older than the one being collected could get scanned too, and yanked back into a younger generation. Doing so doesn't lead to an error, but doesn't do any good, and can burn an unbounded amount of time doing useless work. A test case is simple (thanks to Kevin Jacobs for finding it!): x = [] for i in xrange(200000): x.append((1,)) Without the patch, this ends up scanning all of x on every gen0 collection, scans all of x twice on every gen1 collection, and x gets yanked back into gen1 on every gen0 collection. With the patch, once x gets to gen2, it's never scanned again until another gen2 collection, and stays in gen2. Opened another bug about that 2.2.1 isn't actually tracking (at least) iterators, generators, and bound method objects, due to using the 2.1 gc API internally in those places (which #defines itself out of existence in 2.2.x).
* Corect speling and add \n\ to line ends in new docstring for access().Guido van Rossum2002-06-181-5/+5
|
* Clarified documentation for os.access().Fred Drake2002-06-181-1/+5
| | | | | Based on patch contributed by Sean Reifschneider. Closes SF patch #570618.
* SF # 533070 Silence AIX C Compiler WarningsNeal Norwitz2002-06-131-1/+1
| | | | Warning caused by using &func. & is not necessary.
* Oops. That wasn't supposed to be backported. :-(Guido van Rossum2002-06-061-3/+1
|
* Backport:Guido van Rossum2002-06-061-1/+3
| | | | | | | | | The tp_new implementation should initialize the errorhandler field, otherwise this code could segfault: from socket import socket s = socket.__new__(socket) s.recv(100)
* The logreader object did not always refill the input buffer correctlyNeil Schemenauer2002-05-291-105/+56
| | | | | and got confused by certain log files. Remove logreader_refill and the associated logic and replace with fgetc.
* backport tim_one's patch:Anthony Baxter2002-04-301-2/+6
| | | | | | | | | | | | | (some tweaking for different _PyObject_GC_Malloc() call in 2.2. checked, still returns the same thing on failure...) _PyObject_GC_New: Could call PyObject_INIT with a NULL 1st argument. _PyObject_GC_NewVar: Could call PyObject_INIT_VAR likewise. Bugfix candidate. Original patch(es): python/dist/src/Modules/gcmodule.c:2.40
* Patch #500311: Work around for buggy https servers. Fixes #494762.Martin v. Löwis2002-04-201-24/+72
|
* Patch #546194: Check constants individually. Fixes 534143 on OpenBSD.Martin v. Löwis2002-04-191-2/+19
|
* [backport bug fix from the trunk]Jeremy Hylton2002-04-191-0/+1
| | | | | | | Fix SF #544995 (zlib crash on second flush call) Bug fix by mhammond. Bug fix candidate for 2.2, not present in 2.1.
* backport loewis' checkin ofMichael W. Hudson2002-04-051-1/+4
| | | | | | | revision 2.28 of _localemodule.c Don't imply XPG4 constants from CODESET presence. Fixes #534153. 2.2.2 candiate.
* The body of_PyObject_GC_UnTrack() should only be compiled #ifdefGuido van Rossum2002-04-031-0/+2
| | | | | WITH_CYCLE_GC. (Neil pointed this out before the weekend, and I fixed it right away, but forgot to check it in.)
* Backport to 2.2.1:Guido van Rossum2002-03-281-1/+3
| | | | | | | | | | This is Neil's fix for SF bug 535905 (Evil Trashcan and GC interaction). 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!
* backport jackjansen's checkin ofMichael W. Hudson2002-03-251-0/+5
| | | | | | | | | | revision 1.211 of socketmodule.c Due to interaction between the MSL C library and the GUSI I/O library I can 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.
* Remove extraneous #define as per effbot's instructions in:Michael W. Hudson2002-03-181-2/+0
| | | | | | [ 530285 ] redefining SRE_CODE in Modules/sre.h Another one for the trunk, later.
* Backport a checkin of lemburg's:Michael W. Hudson2002-03-171-1/+0
| | | | Remove mentioning of -U option in "python -h" output.
* Backport my fix from a whiles back:Michael W. Hudson2002-03-171-9/+9
| | | | | | | | | Fix for [ #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.
* backport loewis' checkin ofMichael W. Hudson2002-03-161-1/+1
| | | | | | revision 2.23 of pypcre.c Include Python.h first. Fixes #530159.
* backport loewis' checkin ofMichael W. Hudson2002-03-161-84/+106
| | | | | | revision 2.26 of _localemodule.c Verify arguments for nl_langinfo. Fixes #528879.