summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Preparing for 2.5 final.v2.5Anthony Baxter2006-09-182-1/+6
| | | | | | (damn, it's nice to see the line #define PY_VERSION "2.5" in patchlevel.h)
* preparing for 2.5c2Anthony Baxter2006-09-112-1/+6
|
* As mentioned on python-dev, reverting patch #1504333 because it introducedNeal Norwitz2006-09-113-25/+234
| | | | | | | | an infinite loop in rev 47154. This patch also adds a test to prevent the regression. Will backport to 2.4 and head later.
* Backport rev 51820 from Thomas HellerNeal Norwitz2006-09-111-0/+16
| | | | | | The cast function did not accept c_char_p or c_wchar_p instances as first argument, and failed with a 'bad argument to internal function' error message.
* Backport rev 51819 from Thomas HellerNeal Norwitz2006-09-111-0/+9
| | | | | | Anonymous structure fields that have a bit-width specified did not work, and they gave a strange error message from PyArg_ParseTuple: function takes exactly 2 arguments (3 given).
* Remove __unicode__ method so that ``unicode(BaseException)`` succeeds.Brett Cannon2006-09-092-2/+10
| | | | Fixes bug #1551432.
* Backport inspect.py fix from rev 51803Nick Coghlan2006-09-082-2/+28
|
* Backport from trunk r51737:Hye-Shik Chang2006-09-072-0/+8
| | | | | | | | | Fixed a few bugs on cjkcodecs: - gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly. - iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312 codepoints to conform the standard. - iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 0213:2 codepoints now.
* No, the problem was actually because buildbot uses a StringIO inGustavo Niemeyer2006-09-061-6/+0
| | | | | place of sys.stdout while running tests. Removing one more test to make buildbot happy.
* Fixed bug #1531862: Do not close standard file descriptors in subprocess.Gustavo Niemeyer2006-09-062-8/+16
| | | | | | | | | Let's try that once more. Buildbots were broken last time, but probably because tests were sending data to stderr for testing it (sending to a file doesn't touch the problem). The fix is still the same, but tests were reduced (removing tests to be able to fix something is weird, but oh well).
* Fix missing import of the types module in logging.config.Georg Brandl2006-09-061-1/+1
| | | | (backport from rev. 51785)
* Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack.Georg Brandl2006-09-061-26/+13
| | | | | | Also make sure that every exception class has __module__ set to 'exceptions'. (backport)
* Revert 51759 because it broke all the buildbotsNeal Norwitz2006-09-062-46/+8
|
* Backporting fix for bug #1531862, committed in 51758, into 2.5,Gustavo Niemeyer2006-09-062-8/+46
| | | | making subprocess not close standard file descriptors.
* Bug #1520864 (again): unpacking singleton tuples in list comprehensions andNeal Norwitz2006-09-051-0/+4
| | | | | | | generator expressions (x for x, in ... ) works again. Sigh, I only fixed for loops the first time, not list comps and genexprs too. I couldn't find any more unpacking cases where there is a similar bug lurking.
* Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34].Neal Norwitz2006-09-052-2/+2
|
* Backport fix for SF bug #1550714, itertools.tee raises SystemErrorNeal Norwitz2006-09-051-0/+1
|
* Fix str.rpartition(sep) when sep is not found in str.Neal Norwitz2006-09-051-1/+1
| | | | Partially from SF patch #1551339, but also taken from head.
* This was found by Guido AFAIK on p3yk (sic) branch.Neal Norwitz2006-09-051-1/+1
|
* Fix SF bug #1546288, crash in dict_equalNeal Norwitz2006-09-051-1/+9
|
* Backport docosNeal Norwitz2006-09-031-2/+2
|
* Backport docoNeal Norwitz2006-09-031-1/+1
|
* Backport of decimal module context management updates from rev 51694 to 2.5 ↵Nick Coghlan2006-09-033-44/+77
| | | | release branch
* - Patch #1541585: fix buffer overrun when performing repr() onNeal Norwitz2006-08-211-0/+4
| | | | | | a unicode string in a build with wide unicode (UCS-4) support. I will forward port to 2.6. Can someone backport to 2.4?
* Backport 51432:Neal Norwitz2006-08-212-3/+21
| | | | | Fix bug #1543303, tarfile adds padding that breaks gunzip. Patch # 1543897. (remove the padding)
* Patch #1542948: fix urllib2 header casing issue. With new test.Georg Brandl2006-08-202-20/+85
| | | | (backport from rev. 51416)
* Bug #1541863: uuid.uuid1 failed to generate unique identifiersMartin v. Löwis2006-08-182-3/+3
| | | | on systems with low clock resolution.
* Fix a bug in the ``compiler`` package that caused invalid code to beNeil Schemenauer2006-08-164-9/+23
| | | | generated for generator expressions.
* File menu hotkeys: there were three 'p' assignments. Reassign theKurt B. Kaiser2006-08-163-3/+7
| | | | | | | | | 'Save Copy As' and 'Print' hotkeys to 'y' and 't'. Change the Shell menu hotkey from 's' to 'l'. M Bindings.py M PyShell.py M NEWS.txt
* SF#1534630Fredrik Lundh2006-08-161-0/+11
| | | | ignore data that arrives before the opening start tag
* Remove the special casing of Py_None when converting the return valueThomas Heller2006-08-162-0/+2
| | | | | | | | | | of the Python part of a callback function to C. If it cannot be converted, call PyErr_WriteUnraisable with the exception we got. Before, arbitrary data has been passed to the calling C code in this case. (I'm not really sure the NEWS entry is understandable, but I cannot find better words)
* The __repr__ method of a NULL py_object does no longer raise anThomas Heller2006-08-162-0/+10
| | | | | | | exception. Remove a stray '?' character from the exception text when the value is retrieved of such an object. Includes tests.
* Revert to having static version numbers again.Marc-André Lemburg2006-08-161-3/+9
|
* Get quit() and exit() to work cleanly when not using subprocess.Kurt B. Kaiser2006-08-161-7/+10
|
* Update code and tests to support the 'bytes_le' attribute (forKa-Ping Yee2006-08-162-53/+104
| | | | | | | little-endian byte order on Windows), and to work around clocks with low resolution yielding duplicate UUIDs. Anthony Baxter has approved this change.
* Patch #1540892: site.py Quitter() class attempts to close sys.stdinKurt B. Kaiser2006-08-164-11/+21
| | | | | | | | | | before raising SystemExit, allowing IDLE to honor quit() and exit(). M Lib/site.py M Lib/idlelib/PyShell.py M Lib/idlelib/CREDITS.txt M Lib/idlelib/NEWS.txt M Misc/NEWS
* preparing for 2.5c1Anthony Baxter2006-08-162-2/+2
|
* The 'with' statement is now a Code Context block openerKurt B. Kaiser2006-08-162-1/+3
|
* Subclasses of int/long are allowed to define an __index__.Neal Norwitz2006-08-151-8/+9
|
* Update the docstring to use a version a little newer than 1999. This wasNeal Norwitz2006-08-151-3/+3
| | | | taken from a Debian patch. Should we update the version for each release?
* Fix the test for SocketServer so it should pass on cygwin and not failNeal Norwitz2006-08-151-0/+9
| | | | | | | | sporadically on other platforms. This is really a band-aid that doesn't fix the underlying issue in SocketServer. It's not clear if it's worth it to fix SocketServer, however, I opened a bug to track it: http://python.org/sf/1540386
* Whitespace normalization.Tim Peters2006-08-152-3/+3
|
* Cookie.py shouldn't "bogusly" use string._idmap.Georg Brandl2006-08-142-3/+4
|
* Patch #1536071: trace.py should now find the full module name of aGeorg Brandl2006-08-141-1/+3
| | | | file correctly even on Windows.
* Add an additional test: BZ2File write methods should raise IOErrorGeorg Brandl2006-08-141-0/+9
| | | | when file is read-only.
* Patch #1535500: fix segfault in BZ2File.writelines and make sure itGeorg Brandl2006-08-141-0/+2
| | | | raises the correct exceptions.
* Make tabnanny recognize IndentationErrors raised by tokenize.Georg Brandl2006-08-144-1/+18
| | | | | Add a test to test_inspect to make sure indented source is recognized correctly. (fixes #1224621)
* Apply the patch #1532975 plus ideas from the patch #1533481.Thomas Heller2006-08-144-20/+226
| | | | | | | | | | | | | | ctypes instances no longer have the internal and undocumented '_as_parameter_' attribute which was used to adapt them to foreign function calls; this mechanism is replaced by a function pointer in the type's stgdict. In the 'from_param' class methods, try the _as_parameter_ attribute if other conversions are not possible. This makes the documented _as_parameter_ mechanism work as intended. Change the ctypes version number to 1.0.1.
* Slightly revised version of patch #1538956:Marc-André Lemburg2006-08-141-0/+1
| | | | | | | | | | Replace UnicodeDecodeErrors raised during == and != compares of Unicode and other objects with a new UnicodeWarning. All other comparisons continue to raise exceptions. Exceptions other than UnicodeDecodeErrors are also left untouched.
* Fix segfault when doing string formatting on subclasses of long ifNeal Norwitz2006-08-131-0/+8
| | | | | | __oct__, __hex__ don't return a string. Klocwork 308