summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1537 from Chad AustinChristian Heimes2007-12-032-5/+18
| | | | | Change GeneratorExit's base class from Exception to BaseException (This time I'm applying the patch to the correct sandbox.)
* Issue #1727780: Support loading pickles of random.Random objects createdMartin v. Löwis2007-12-035-2/+1925
| | | | | | on 32-bit systems on 64-bit systems, and vice versa. As a consequence of the change, Random pickles created by Python 2.6 cannot be loaded in Python 2.5.
* Faster _fix function, and some reordering for a more elegantFacundo Batista2007-12-031-52/+47
| | | | coding. Thanks Mark Dickinson.
* Speedup and cleaning of __str__. Thanks Mark Dickinson.Facundo Batista2007-12-031-71/+41
|
* Applied my patch #1455 with some extra fixes for VS 2005Christian Heimes2007-12-034-22/+706
| | | | | The new msvc9compiler module supports VS 2005 and VS 2008. I've also fixed build_ext to support PCbuild8 and PCbuild9 and backported my fix for xxmodule.c from py3k. The old code msvccompiler is still in place in case somebody likes to build an extension with VS 2003 or earlier. I've also updated the cygwin compiler module for VS 2005 and VS 2008. It works with VS 2005 but I'm unable to test it with VS 2008. We have to wait for a new version of cygwin.
* Implement PEP 366Nick Coghlan2007-12-034-53/+118
|
* Add test suite for cmd module.Georg Brandl2007-12-011-0/+186
| | | | Written by Michael Schneider for GHOP.
* Issue #1531: Read fileobj from the current offset, do not seek toLars Gustäbel2007-12-012-1/+34
| | | | | | the start. (will backport to 2.5)
* Feature #1534Christian Heimes2007-12-011-0/+2
| | | | | Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API. Added a dictionary sys.float_info with information about the internal floating point type to the sys module.
* Backport of -r59242:59246 from py3kChristian Heimes2007-11-301-2/+6
| | | | Fixed problem with regrtest caused by the additional of objects to _abcoll.
* Issue #1521: on 64bit platforms, str.decode fails on very long strings.Amaury Forgeot d'Arc2007-11-301-4/+6
| | | | | | The t# and w# formats were not correctly handled. Will backport.
* Reordering of __new__ to minimize isinstance() calls to mostFacundo Batista2007-11-301-55/+56
| | | | used types. Thanks Mark Dickinson.
* Issue #1402: PyInterpreterState_Clear() may still invoke user codeAmaury Forgeot d'Arc2007-11-291-0/+34
| | | | | | | | (in deallocation of running threads, for example), so the PyGILState_Release() function must still be functional. On the other hand, _PyGILState_Fini() only frees memory, and can be called later. Backport candidate, but only after some experts comment on it.
* I forgot to fix one occurence of new in test_descrChristian Heimes2007-11-271-1/+1
|
* Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504Christian Heimes2007-11-272-3/+13
| | | | Also added a warning.warnpy3k() as convenient method for Python 3.x related deprecation warnings.
* Patch # 1507 by Mark Dickinson. Make complex(x, -0) retain the sign ofGuido van Rossum2007-11-271-0/+13
| | | | | the imaginary part (as long as it's not complex). Backport candidate?
* Added a deprecation warning to the 'new' module.Christian Heimes2007-11-271-0/+3
|
* Replaced import of the 'new' module with 'types' module and added a ↵Christian Heimes2007-11-279-80/+51
| | | | deprecation warning to the 'new' module.
* Moved the errno import from inside the functions to theFacundo Batista2007-11-271-6/+3
| | | | module level. Fixes issue 1755179.
* back in these go - thanks to Titus Brown for the fixSkip Montanaro2007-11-242-0/+15
|
* Issue #1445: Fix a SystemError when accessing the ``cell_contents``Amaury Forgeot d'Arc2007-11-241-0/+12
| | | | attribute of an empty cell object. Now a ValueError is raised.
* revert change that breaks test_doctest (which I forgot to run - sorry)Skip Montanaro2007-11-242-13/+0
|
* Test cases from Cowlishaw, v2.57. All are pased cleanly.Facundo Batista2007-11-23142-160/+510
|
* Major change in the internal structure of the DecimalFacundo Batista2007-11-232-302/+220
| | | | | | | | | | number: now it does not store the mantissa as a tuple of numbers, but as a string. This avoids a lot of conversions, and achieves a speedup of 40%. The API remains intact. Thanks Mark Dickinson.
* Make trace and doctest play nice together (issue 1429818). Will backport.Skip Montanaro2007-11-232-0/+13
|
* Fix a bug in the test for using __loader__.get_data().Brett Cannon2007-11-231-0/+1
|
* Backport of _abccoll.py by Benjamin Arangueren, issue 1383.Guido van Rossum2007-11-228-7/+776
| | | | With some changes of my own thrown in (e.g. backport of r58107).
* Add a missing check before deleting a package's __loader__.Brett Cannon2007-11-211-1/+2
|
* doctest assumed that a package's __loader__.get_data() method used universalBrett Cannon2007-11-212-1/+21
| | | | | | | newlines; it doesn't. To rectify this the string returned replaces all instances of os.linesep with '\n' to fake universal newline support. Backport candidate.
* Remove a unneeded line that had typos.Brett Cannon2007-11-211-2/+0
|
* The incremental decoder for utf-7 must preserve its state between calls.Amaury Forgeot d'Arc2007-11-202-15/+22
| | | | | | | Solves issue1460. Might not be a backport candidate: a new API function was added, and some code may rely on details in utf-7.py.
* Another fix for test_shutil. Martin pointed out that it breaks some build botsChristian Heimes2007-11-201-1/+3
|
* Fixed bug #1470Christian Heimes2007-11-201-5/+2
|
* Fix the OSX failures in this test -- they were due to /tmp being a symlinkGuido van Rossum2007-11-191-0/+1
| | | | to /private/tmp. Adding a call to os.path.realpath() to temp_dir() fixed it.
* Make this work stand-alone, too.Guido van Rossum2007-11-191-1/+1
|
* Enable some test_cmd_line_script debugging output to investigate failure on ↵Nick Coghlan2007-11-191-3/+3
| | | | Mac OSX buildbot
* Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode())Walter Dörwald2007-11-192-5/+55
| | | | | calling codecs.utf_8_decode() with final==True, which falled with incomplete byte sequences. Fix and test by James G. Sack.
* Fix typo in comment.Walter Dörwald2007-11-191-1/+1
|
* Patch #1739468: Directories and zipfiles containing __main__.py are now ↵Nick Coghlan2007-11-182-0/+148
| | | | executable
* Now in find, rfind, index, and rindex, you can use None as defaults,Facundo Batista2007-11-161-0/+28
| | | | | | | | | | | | as usual with slicing (both with str and unicode strings). This fixes issue 1259. For str only the stringobject.c file was modified. But for unicode, I needed to repeat in the four functions a lot of code, so created a new function that does part of the job for them (and placed it in find.h, following a suggestion of Barry). Also added tests for this behaviour.
* add the certificate for the Python SVN repository for testing SSLBill Janssen2007-11-151-0/+31
|
* Small improvement to the implementation of __replace__().Raymond Hettinger2007-11-151-1/+1
|
* Accept Issac Morland's suggestion for __replace__ to allow multiple replacementsRaymond Hettinger2007-11-152-5/+9
| | | | | | (suprisingly, this simplifies the signature, improves clarity, and is comparably fast). Update the docs to reflect a previous change to the function name. Add an example to the docs showing how to override the default __repr__ method.
* Add test for __fields__ being read-onlyRaymond Hettinger2007-11-141-0/+8
|
* Make __fields__ read-only. Suggested by Issac MorlandRaymond Hettinger2007-11-141-1/+1
|
* Merge from py3k branch:Amaury Forgeot d'Arc2007-11-131-2/+47
| | | | | | | | | | | | | | | | | | | | | | Correction for issue1265 (pdb bug with "with" statement). When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx is called with a GeneratorExit exception set. This leads to funny results if the sys.settrace function itself makes use of generators. A visible effect is that the settrace function is reset to None. Another is that the eventual "finally" block of the generator is not called. It is necessary to save/restore the exception around the call to the trace function. This happens a lot with py3k: isinstance() of an ABCMeta instance runs def __instancecheck__(cls, instance): """Override for isinstance(instance, cls).""" return any(cls.__subclasscheck__(c) for c in {instance.__class__, type(instance)}) which lets an opened generator expression each time it returns True. Backport candidate, even if the case is less frequent in 2.5.
* Add the test from issue 1704621 (the issue itself is already fixed here).Guido van Rossum2007-11-121-0/+7
|
* Fix TextCalendar.prweek(). This closes issue #1427.Walter Dörwald2007-11-121-1/+1
|
* Fix for #1427: Error in standard module calendarChristian Heimes2007-11-121-8/+12
| | | | the prweek() method is still broken and I can't figure out how it suppose to work.
* Fixed a bug reported (in private email, by Robert Crida) in logging ↵Vinay Sajip2007-11-111-3/+27
| | | | configuration whereby child loggers of a logger named in a configuration file, which are not themselves named in the configuration, are disabled when the configuration is applied.