Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Patch #1537 from Chad Austin | Christian Heimes | 2007-12-03 | 2 | -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 created | Martin v. Löwis | 2007-12-03 | 5 | -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 elegant | Facundo Batista | 2007-12-03 | 1 | -52/+47 |
| | | | | coding. Thanks Mark Dickinson. | ||||
* | Speedup and cleaning of __str__. Thanks Mark Dickinson. | Facundo Batista | 2007-12-03 | 1 | -71/+41 |
| | |||||
* | Applied my patch #1455 with some extra fixes for VS 2005 | Christian Heimes | 2007-12-03 | 4 | -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 366 | Nick Coghlan | 2007-12-03 | 4 | -53/+118 |
| | |||||
* | Add test suite for cmd module. | Georg Brandl | 2007-12-01 | 1 | -0/+186 |
| | | | | Written by Michael Schneider for GHOP. | ||||
* | Issue #1531: Read fileobj from the current offset, do not seek to | Lars Gustäbel | 2007-12-01 | 2 | -1/+34 |
| | | | | | | the start. (will backport to 2.5) | ||||
* | Feature #1534 | Christian Heimes | 2007-12-01 | 1 | -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 py3k | Christian Heimes | 2007-11-30 | 1 | -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'Arc | 2007-11-30 | 1 | -4/+6 |
| | | | | | | The t# and w# formats were not correctly handled. Will backport. | ||||
* | Reordering of __new__ to minimize isinstance() calls to most | Facundo Batista | 2007-11-30 | 1 | -55/+56 |
| | | | | used types. Thanks Mark Dickinson. | ||||
* | Issue #1402: PyInterpreterState_Clear() may still invoke user code | Amaury Forgeot d'Arc | 2007-11-29 | 1 | -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_descr | Christian Heimes | 2007-11-27 | 1 | -1/+1 |
| | |||||
* | Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504 | Christian Heimes | 2007-11-27 | 2 | -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 of | Guido van Rossum | 2007-11-27 | 1 | -0/+13 |
| | | | | | the imaginary part (as long as it's not complex). Backport candidate? | ||||
* | Added a deprecation warning to the 'new' module. | Christian Heimes | 2007-11-27 | 1 | -0/+3 |
| | |||||
* | Replaced import of the 'new' module with 'types' module and added a ↵ | Christian Heimes | 2007-11-27 | 9 | -80/+51 |
| | | | | deprecation warning to the 'new' module. | ||||
* | Moved the errno import from inside the functions to the | Facundo Batista | 2007-11-27 | 1 | -6/+3 |
| | | | | module level. Fixes issue 1755179. | ||||
* | back in these go - thanks to Titus Brown for the fix | Skip Montanaro | 2007-11-24 | 2 | -0/+15 |
| | |||||
* | Issue #1445: Fix a SystemError when accessing the ``cell_contents`` | Amaury Forgeot d'Arc | 2007-11-24 | 1 | -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 Montanaro | 2007-11-24 | 2 | -13/+0 |
| | |||||
* | Test cases from Cowlishaw, v2.57. All are pased cleanly. | Facundo Batista | 2007-11-23 | 142 | -160/+510 |
| | |||||
* | Major change in the internal structure of the Decimal | Facundo Batista | 2007-11-23 | 2 | -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 Montanaro | 2007-11-23 | 2 | -0/+13 |
| | |||||
* | Fix a bug in the test for using __loader__.get_data(). | Brett Cannon | 2007-11-23 | 1 | -0/+1 |
| | |||||
* | Backport of _abccoll.py by Benjamin Arangueren, issue 1383. | Guido van Rossum | 2007-11-22 | 8 | -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 Cannon | 2007-11-21 | 1 | -1/+2 |
| | |||||
* | doctest assumed that a package's __loader__.get_data() method used universal | Brett Cannon | 2007-11-21 | 2 | -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 Cannon | 2007-11-21 | 1 | -2/+0 |
| | |||||
* | The incremental decoder for utf-7 must preserve its state between calls. | Amaury Forgeot d'Arc | 2007-11-20 | 2 | -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 bots | Christian Heimes | 2007-11-20 | 1 | -1/+3 |
| | |||||
* | Fixed bug #1470 | Christian Heimes | 2007-11-20 | 1 | -5/+2 |
| | |||||
* | Fix the OSX failures in this test -- they were due to /tmp being a symlink | Guido van Rossum | 2007-11-19 | 1 | -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 Rossum | 2007-11-19 | 1 | -1/+1 |
| | |||||
* | Enable some test_cmd_line_script debugging output to investigate failure on ↵ | Nick Coghlan | 2007-11-19 | 1 | -3/+3 |
| | | | | Mac OSX buildbot | ||||
* | Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode()) | Walter Dörwald | 2007-11-19 | 2 | -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örwald | 2007-11-19 | 1 | -1/+1 |
| | |||||
* | Patch #1739468: Directories and zipfiles containing __main__.py are now ↵ | Nick Coghlan | 2007-11-18 | 2 | -0/+148 |
| | | | | executable | ||||
* | Now in find, rfind, index, and rindex, you can use None as defaults, | Facundo Batista | 2007-11-16 | 1 | -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 SSL | Bill Janssen | 2007-11-15 | 1 | -0/+31 |
| | |||||
* | Small improvement to the implementation of __replace__(). | Raymond Hettinger | 2007-11-15 | 1 | -1/+1 |
| | |||||
* | Accept Issac Morland's suggestion for __replace__ to allow multiple replacements | Raymond Hettinger | 2007-11-15 | 2 | -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-only | Raymond Hettinger | 2007-11-14 | 1 | -0/+8 |
| | |||||
* | Make __fields__ read-only. Suggested by Issac Morland | Raymond Hettinger | 2007-11-14 | 1 | -1/+1 |
| | |||||
* | Merge from py3k branch: | Amaury Forgeot d'Arc | 2007-11-13 | 1 | -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 Rossum | 2007-11-12 | 1 | -0/+7 |
| | |||||
* | Fix TextCalendar.prweek(). This closes issue #1427. | Walter Dörwald | 2007-11-12 | 1 | -1/+1 |
| | |||||
* | Fix for #1427: Error in standard module calendar | Christian Heimes | 2007-11-12 | 1 | -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 Sajip | 2007-11-11 | 1 | -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. |