summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* First draft for itertools.product(). Docs and other updates forthcoming.Raymond Hettinger2008-02-221-0/+28
|
* Moved test_format into the correct TestCase.Eric Smith2008-02-211-39/+39
|
* Update more instances of has_key().Raymond Hettinger2008-02-212-5/+5
|
* Replace 'has_key()' with 'in'.Thomas Heller2008-02-215-13/+11
| | | | Replace 'raise Error, stuff' with 'raise Error(stuff)'.
* Removed uses of dict.has_key() from distutils, and uses ofGuido van Rossum2008-02-2116-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. Kuchling2008-02-211-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 Smith2008-02-201-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 Smith2008-02-181-0/+9
| | | | case.
* Temporarily removed float tests. See issue 1600.Eric Smith2008-02-181-6/+7
|
* Issue 1224. Now we support again the double slash in the URL.Facundo Batista2008-02-182-1/+43
| | | | Thanks Anthony Lenton.
* Issue #1916. Added isgenerator() and isgeneratorfunction() toFacundo Batista2008-02-182-14/+65
| | | | | inspect.py. Thanks Javi Mansilla for patch review and corrections.
* #2133: fix HTML color spec.Georg Brandl2008-02-171-1/+1
|
* Backport of PEP 3101, Advanced String Formatting, from py3k.Eric Smith2008-02-178-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, butFacundo Batista2008-02-171-0/+5
| | | | a subclass of it. Thanks John Lenton.
* Move test_logging over to doctest.Brett Cannon2008-02-172-971/+2005
| | | | Thanks to Christopher White from GHOP.
* Prevent a crash with nested scopes, again caused by calling Py_DECREF when ↵Amaury Forgeot d'Arc2008-02-161-0/+18
| | | | | | the pointer is still present in the containing structure.
* Add __all__ to logging module.Raymond Hettinger2008-02-161-0/+5
|
* mmap.PROT_READ does not exists on win32;Amaury Forgeot d'Arc2008-02-161-0/+2
| | | | Skip this test created by r60830.
* Re-enable tests, they were failing since gc.collect() clears the various ↵Amaury Forgeot d'Arc2008-02-151-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 highlightingKurt B. Kaiser2008-02-153-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. Kaiser2008-02-152-6/+9
|
* Temporarily let these tests passAmaury Forgeot d'Arc2008-02-151-0/+2
|
* Issue #2115: __slot__ attributes setting was 10x slower.Amaury Forgeot d'Arc2008-02-151-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_READChristian Heimes2008-02-151-0/+7
| | | | Thanks to Thomas Herve for the fix.
* Fixed repr() and str() of complex numbers. Complex suffered from the same ↵Christian Heimes2008-02-151-0/+14
| | | | problem as floats but I forgot to test and fix them.
* No need to register subclass of ABCs.Raymond Hettinger2008-02-141-2/+0
|
* Add diagnostic message to help figure-out why SocketServer tests ↵Raymond Hettinger2008-02-141-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 toJeffrey Yasskin2008-02-141-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 Yasskin2008-02-142-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 Hettinger2008-02-142-243/+243
|
* Update notes on Decimal.Raymond Hettinger2008-02-141-4/+5
|
* Bring NEWS.txt up to date from check-in msgs.Kurt B. Kaiser2008-02-141-0/+7
|
* Make the test somewhat clearer (I hope).Thomas Heller2008-02-131-4/+4
|
* Add pickle support to ctypes types.Thomas Heller2008-02-131-0/+78
|
* Working on issue #1762: BroughtJeffrey Yasskin2008-02-132-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 inMark Dickinson2008-02-121-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 intoMark Dickinson2008-02-121-13/+13
| | | | classmethods instead of staticmethods.
* Implementation of Fraction.limit_denominator.Mark Dickinson2008-02-122-56/+61
| | | | | Remove Fraction.to_continued_fraction and Fraction.from_continued_fraction
* Patch #1966: Break infinite loop in httplib when the serversMartin v. Löwis2008-02-121-0/+4
| | | | | implements the chunked encoding incorrectly. Will backport to 2.5.
* what??! Correct r60225.Kurt B. Kaiser2008-02-121-1/+1
|
* Bring decimal a bit closer to the spec for Reals.Raymond Hettinger2008-02-122-4/+15
|
* Fix typo in commentsRaymond Hettinger2008-02-121-2/+2
|
* Add notes on how decimal fits into the model.Raymond Hettinger2008-02-111-0/+29
|
* Add tests for pickletools.optimize().Raymond Hettinger2008-02-111-1/+22
|
* Make sure that xstar headers are read correctly.Lars Gustäbel2008-02-112-0/+9
|
* No need to register classes that already inherit from ABCs.Raymond Hettinger2008-02-112-4/+0
|
* Put an extra space into the repr of a Fraction:Mark Dickinson2008-02-112-2/+2
| | | | Fraction(1, 2) instead of Fraction(1,2).
* The test requires the network resourceChristian Heimes2008-02-111-0/+2
|
* Rename rational.Rational to fractions.Fraction, to avoid name clashMark Dickinson2008-02-103-97/+97
| | | | with numbers.Rational. See issue #1682 for related discussion.
* Complete an open todo on pickletools -- add a pickle optimizer.Raymond Hettinger2008-02-101-3/+28
|