Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | 3 | -334/+334 | |
| | ||||||
* | 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 | 7 | -1/+177 | |
| | ||||||
* | Fix --enable-universalsdk and its comment line so that zsh's flag completion | Brett Cannon | 2008-02-13 | 2 | -3/+3 | |
| | | | | | | works. Thanks to Jeroen Ruigrok van der Werven for the fix. | |||||
* | 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__. | |||||
* | #2063: correct order of utime and stime in os.times() | Georg Brandl | 2008-02-13 | 3 | -3/+5 | |
| | | | | result on Windows. | |||||
* | 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 | 3 | -56/+79 | |
| | | | | | Remove Fraction.to_continued_fraction and Fraction.from_continued_fraction | |||||
* | dict.copy() rises from the ashes. Revert r60687. | Raymond Hettinger | 2008-02-12 | 3 | -31/+3 | |
| | ||||||
* | Patch #1966: Break infinite loop in httplib when the servers | Martin v. Löwis | 2008-02-12 | 2 | -0/+7 | |
| | | | | | implements the chunked encoding incorrectly. Will backport to 2.5. | |||||
* | what??! Correct r60225. | Kurt B. Kaiser | 2008-02-12 | 1 | -1/+1 | |
| | ||||||
* | Patch #1736: Fix file name handling of _msi.FCICreate. | Martin v. Löwis | 2008-02-12 | 2 | -9/+11 | |
| | ||||||
* | 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 | |
| | ||||||
* | Restore fractions.rst to the document tree. | Raymond Hettinger | 2008-02-12 | 1 | -1/+1 | |
| | ||||||
* | Backport ABC docs | Raymond Hettinger | 2008-02-11 | 1 | -8/+120 | |
| | ||||||
* | Fix markup | Raymond Hettinger | 2008-02-11 | 1 | -1/+1 | |
| | ||||||
* | 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 | 3 | -4/+4 | |
| | | | | 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 | 7 | -133/+137 | |
| | | | | with numbers.Rational. See issue #1682 for related discussion. | |||||
* | Complete an open todo on pickletools -- add a pickle optimizer. | Raymond Hettinger | 2008-02-10 | 3 | -3/+38 | |
| | ||||||
* | Remove reference to Rational | Mark Dickinson | 2008-02-10 | 1 | -1/+0 | |
| | ||||||
* | whoops - revert | Skip Montanaro | 2008-02-10 | 1 | -1/+1 | |
| | ||||||
* | Get the saying right. ;-) | Skip Montanaro | 2008-02-10 | 1 | -1/+1 | |
| | ||||||
* | Typos in decimal comment and documentation | Mark Dickinson | 2008-02-10 | 2 | -3/+3 | |
| | ||||||
* | Forgot to modify header file in r60707. | Eric Smith | 2008-02-10 | 1 | -0/+9 | |
| | ||||||
* | Turn classmethods into staticmethods, and avoid calling the constructor | Mark Dickinson | 2008-02-10 | 1 | -16/+16 | |
| | | | | of subclasses of Rational. (See discussion in issue #1682.) | |||||
* | Add missing NEWS entry for r60695 | Nick Coghlan | 2008-02-10 | 1 | -0/+4 | |
| | ||||||
* | Clarify that decimal also supports fixed-point arithmetic. | Raymond Hettinger | 2008-02-10 | 1 | -3/+15 | |
| | ||||||
* | Added PyNumber_ToBase and supporting routines _PyInt_Format and | Eric Smith | 2008-02-10 | 5 | -33/+126 | |
| | | | | | | | | | | | | | | | | | _PyLong_Format. In longobject.c, changed long_format to _PyLong_Format. In intobject.c, changed uses of PyOS_snprintf to _PyInt_Format instead. _PyLong_Format is similar to py3k's routine of the same name, except it has 2 additional parameters: addL and newstyle. addL was existing in long_format, and controls adding the trailing "L". This is unneeded in py3k. newstyle is used to control whether octal prepends "0" (the pre-2.6 style), or "0o" (the 3.0 sytle). PyNumber_ToBase is needed for PEP 3127 (Integer Literal Support and Syntax) and PEP 3101 (Advanced String Formatting). This changeset does not need merging into py3k. | |||||
* | Fix for newest doctools. | Georg Brandl | 2008-02-09 | 2 | -11/+11 | |
| | ||||||
* | Fix link. | Georg Brandl | 2008-02-09 | 1 | -1/+1 | |
| | ||||||
* | Docs are rst now. | Georg Brandl | 2008-02-09 | 1 | -1/+1 | |
| | ||||||
* | Needs only 2.4 now. | Georg Brandl | 2008-02-09 | 1 | -1/+1 | |
| | ||||||
* | Issue #1706: Require Windows 2000+ | Christian Heimes | 2008-02-09 | 7 | -20/+35 | |
| | | | | | | Added Py_BUILD_CORE_MODULES macro to set WINVER and NTDDI_VERSION to Windows 2000 for core modules, too Added -d option to build.bat (same as -c Debug) and fixed warning about /build option Updated Windows related readme.txt files | |||||
* | Issue 2021: Allow NamedTemporaryFile and SpooledTemporaryFile to be used as ↵ | Nick Coghlan | 2008-02-09 | 3 | -8/+104 | |
| | | | | context managers. (The NamedTemporaryFile fix should be considered for backporting to 2.5) | |||||
* | Temporarily disable this test. It's been broken for a week. | Raymond Hettinger | 2008-02-09 | 1 | -15/+15 | |
| | ||||||
* | Metaclass declaration is inherited | Raymond Hettinger | 2008-02-09 | 1 | -7/+0 | |
| | ||||||
* | Add -3 warnings that set.copy(), dict.copy(), and defaultdict.copy() will go ↵ | Raymond Hettinger | 2008-02-09 | 3 | -3/+31 | |
| | | | | away in Py3.x | |||||
* | Merge with r60683. | Raymond Hettinger | 2008-02-09 | 1 | -2/+2 | |
| | ||||||
* | Make ABC containers inherit as documented. | Raymond Hettinger | 2008-02-09 | 1 | -31/+5 | |
| | ||||||
* | Add advice on choosing between DictMixin and MutableMapping | Raymond Hettinger | 2008-02-08 | 1 | -0/+2 | |
| |