Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | First draft for itertools.product(). Docs and other updates forthcoming. | Raymond Hettinger | 2008-02-22 | 1 | -0/+28 |
| | |||||
* | Moved test_format into the correct TestCase. | Eric Smith | 2008-02-21 | 1 | -39/+39 |
| | |||||
* | Update more instances of has_key(). | Raymond Hettinger | 2008-02-21 | 2 | -5/+5 |
| | |||||
* | Replace 'has_key()' with 'in'. | Thomas Heller | 2008-02-21 | 5 | -13/+11 |
| | | | | Replace 'raise Error, stuff' with 'raise Error(stuff)'. | ||||
* | Removed uses of dict.has_key() from distutils, and uses of | Guido van Rossum | 2008-02-21 | 16 | -39/+39 |
| | | | | | | callable() from copy_reg.py, so the interpreter now starts up without warnings when '-3' is given. More work like this needs to be done in the rest of the stdlib. | ||||
* | Close manifest file. | Andrew M. Kuchling | 2008-02-21 | 1 | -0/+1 |
| | | | | This change doesn't make any difference to CPython, but is a necessary fix for Jython. | ||||
* | Trim leading zeros from a floating point exponent, per C99. See issue 1600. ↵ | Eric Smith | 2008-02-20 | 1 | -7/+31 |
| | | | | As far as I know, this only affects Windows. Add float type 'n' to PyOS_ascii_formatd (see PEP 3101 for 'n' description). | ||||
* | Added code to correct combining str and unicode in ''.format(). Added test ↵ | Eric Smith | 2008-02-18 | 1 | -0/+9 |
| | | | | case. | ||||
* | Temporarily removed float tests. See issue 1600. | Eric Smith | 2008-02-18 | 1 | -6/+7 |
| | |||||
* | Issue 1224. Now we support again the double slash in the URL. | Facundo Batista | 2008-02-18 | 2 | -1/+43 |
| | | | | Thanks Anthony Lenton. | ||||
* | Issue #1916. Added isgenerator() and isgeneratorfunction() to | Facundo Batista | 2008-02-18 | 2 | -14/+65 |
| | | | | | inspect.py. Thanks Javi Mansilla for patch review and corrections. | ||||
* | #2133: fix HTML color spec. | Georg Brandl | 2008-02-17 | 1 | -1/+1 |
| | |||||
* | Backport of PEP 3101, Advanced String Formatting, from py3k. | Eric Smith | 2008-02-17 | 8 | -0/+1141 |
| | | | | | | | | | | | | | | | Highlights: - Adding PyObject_Format. - Adding string.Format class. - Adding __format__ for str, unicode, int, long, float, datetime. - Adding builtin format. - Adding ''.format and u''.format. - str/unicode fixups for formatters. The files in Objects/stringlib that implement PEP 3101 (stringdefs.h, unicodedefs.h, formatter.h, string_format.h) are identical in trunk and py3k. Any changes from here on should be made to trunk, and changes will propogate to py3k). | ||||
* | Issue 2112. mmap does not raises EnvironmentError no more, but | Facundo Batista | 2008-02-17 | 1 | -0/+5 |
| | | | | a subclass of it. Thanks John Lenton. | ||||
* | Move test_logging over to doctest. | Brett Cannon | 2008-02-17 | 2 | -971/+2005 |
| | | | | Thanks to Christopher White from GHOP. | ||||
* | Prevent a crash with nested scopes, again caused by calling Py_DECREF when ↵ | Amaury Forgeot d'Arc | 2008-02-16 | 1 | -0/+18 |
| | | | | | | the pointer is still present in the containing structure. | ||||
* | Add __all__ to logging module. | Raymond Hettinger | 2008-02-16 | 1 | -0/+5 |
| | |||||
* | mmap.PROT_READ does not exists on win32; | Amaury Forgeot d'Arc | 2008-02-16 | 1 | -0/+2 |
| | | | | Skip this test created by r60830. | ||||
* | Re-enable tests, they were failing since gc.collect() clears the various ↵ | Amaury Forgeot d'Arc | 2008-02-15 | 1 | -7/+17 |
| | | | | | | | | | | | freelists. They still remain fragile. For example, a call to assertEqual currently does not make any allocation (which surprised me at first). But this can change when gc.collect also deletes the numerous "zombie frames" attached to each function. | ||||
* | Configured selection highlighting colors were ignored; updating highlighting | Kurt B. Kaiser | 2008-02-15 | 3 | -36/+30 |
| | | | | | in the config dialog would cause non-Python files to be colored as if they were Python source; improve use of ColorDelagator. Patch 1334. Tal Einat. | ||||
* | ScriptBinding event handlers weren't returning 'break'. Patch 2050, Tal Einat. | Kurt B. Kaiser | 2008-02-15 | 2 | -6/+9 |
| | |||||
* | Temporarily let these tests pass | Amaury Forgeot d'Arc | 2008-02-15 | 1 | -0/+2 |
| | |||||
* | Issue #2115: __slot__ attributes setting was 10x slower. | Amaury Forgeot d'Arc | 2008-02-15 | 1 | -0/+18 |
| | | | | | | | | Also correct a possible crash using ABCs. This change is exactly the same as an optimisation done 5 years ago, but on slot *access*: http://svn.python.org/view?view=rev&rev=28297 | ||||
* | Bug #2111: mmap segfaults when trying to write a block opened with PROT_READ | Christian Heimes | 2008-02-15 | 1 | -0/+7 |
| | | | | Thanks to Thomas Herve for the fix. | ||||
* | Fixed repr() and str() of complex numbers. Complex suffered from the same ↵ | Christian Heimes | 2008-02-15 | 1 | -0/+14 |
| | | | | problem as floats but I forgot to test and fix them. | ||||
* | No need to register subclass of ABCs. | Raymond Hettinger | 2008-02-14 | 1 | -2/+0 |
| | |||||
* | Add diagnostic message to help figure-out why SocketServer tests ↵ | Raymond Hettinger | 2008-02-14 | 1 | -1/+5 |
| | | | | | | occasionally crash when trying to remove a pid that in not in the activechildren list. | ||||
* | Change simple instances (in Fraction) of self.numerator and self.denominator to | Jeffrey Yasskin | 2008-02-14 | 1 | -28/+28 |
| | | | | | | self._numerator and self._denominator. This speeds abs() up from 12.2us to 10.8us and trunc() from 2.07us to 1.11us. This doesn't change _add and friends because they're more complicated. | ||||
* | Performance optimizations on Fraction's constructor. | Jeffrey Yasskin | 2008-02-14 | 2 | -15/+13 |
| | | | | | | | | | | | ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3)` 31.7 usec/loop -> 9.2 usec/loop ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3, 2)'` 27.7 usec/loop -> 9.32 usec/loop ./python.exe -m timeit -s 'from fractions import Fraction; f = Fraction(3, 2)' 'Fraction(f)' 31.9 usec/loop -> 14.3 usec/loop | ||||
* | Fix decimal repr which should have used single quotes like other reprs. | Raymond Hettinger | 2008-02-14 | 2 | -243/+243 |
| | |||||
* | Update notes on Decimal. | Raymond Hettinger | 2008-02-14 | 1 | -4/+5 |
| | |||||
* | Bring NEWS.txt up to date from check-in msgs. | Kurt B. Kaiser | 2008-02-14 | 1 | -0/+7 |
| | |||||
* | Make the test somewhat clearer (I hope). | Thomas Heller | 2008-02-13 | 1 | -4/+4 |
| | |||||
* | Add pickle support to ctypes types. | Thomas Heller | 2008-02-13 | 1 | -0/+78 |
| | |||||
* | Working on issue #1762: Brought | Jeffrey Yasskin | 2008-02-13 | 2 | -2/+24 |
| | | | | | | | | ./python.exe -m timeit -s 'from fractions import Fraction; f = Fraction(3, 2)' 'isinstance(3, Fraction); isinstance(f, Fraction)' from 12.3 usec/loop to 3.44 usec/loop and ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3, 2)' from 48.8 usec to 23.6 usec by avoiding genexps and sets in __instancecheck__ and inlining the common case from __subclasscheck__. | ||||
* | Replace R=fractions.Fraction with F=fractions.Fraction in | Mark Dickinson | 2008-02-12 | 1 | -189/+189 |
| | | | | | test_fractions.py. This should have been part of the name change from Rational to Fraction. | ||||
* | Revert change in r60712: turn alternate constructors back into | Mark Dickinson | 2008-02-12 | 1 | -13/+13 |
| | | | | classmethods instead of staticmethods. | ||||
* | Implementation of Fraction.limit_denominator. | Mark Dickinson | 2008-02-12 | 2 | -56/+61 |
| | | | | | Remove Fraction.to_continued_fraction and Fraction.from_continued_fraction | ||||
* | Patch #1966: Break infinite loop in httplib when the servers | Martin v. Löwis | 2008-02-12 | 1 | -0/+4 |
| | | | | | implements the chunked encoding incorrectly. Will backport to 2.5. | ||||
* | what??! Correct r60225. | Kurt B. Kaiser | 2008-02-12 | 1 | -1/+1 |
| | |||||
* | Bring decimal a bit closer to the spec for Reals. | Raymond Hettinger | 2008-02-12 | 2 | -4/+15 |
| | |||||
* | Fix typo in comments | Raymond Hettinger | 2008-02-12 | 1 | -2/+2 |
| | |||||
* | Add notes on how decimal fits into the model. | Raymond Hettinger | 2008-02-11 | 1 | -0/+29 |
| | |||||
* | Add tests for pickletools.optimize(). | Raymond Hettinger | 2008-02-11 | 1 | -1/+22 |
| | |||||
* | Make sure that xstar headers are read correctly. | Lars Gustäbel | 2008-02-11 | 2 | -0/+9 |
| | |||||
* | No need to register classes that already inherit from ABCs. | Raymond Hettinger | 2008-02-11 | 2 | -4/+0 |
| | |||||
* | Put an extra space into the repr of a Fraction: | Mark Dickinson | 2008-02-11 | 2 | -2/+2 |
| | | | | Fraction(1, 2) instead of Fraction(1,2). | ||||
* | The test requires the network resource | Christian Heimes | 2008-02-11 | 1 | -0/+2 |
| | |||||
* | Rename rational.Rational to fractions.Fraction, to avoid name clash | Mark Dickinson | 2008-02-10 | 3 | -97/+97 |
| | | | | with numbers.Rational. See issue #1682 for related discussion. | ||||
* | Complete an open todo on pickletools -- add a pickle optimizer. | Raymond Hettinger | 2008-02-10 | 1 | -3/+28 |
| |