Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move test_logging over to doctest. | Brett Cannon | 2008-02-17 | 4 | -971/+2008 |
| | | | | 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 | 3 | -1/+24 |
| | | | | | | the pointer is still present in the containing structure. | ||||
* | Crashers of the day: Py_CLEAR must be used when there is a chance that the | Amaury Forgeot d'Arc | 2008-02-16 | 2 | -3/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | function can be called recursively. This was discussed in issue1020188. In python codebase, all occurrences of Py_[X]DECREF(xxx->yyy) are suspect, except when they appear in tp_new or tp_dealloc functions, or when the member cannot be of a user-defined class. Note that tp_init is not safe. I do have a (crashing) example for every changed line. Is it worth adding them to the test suite? Example: class SpecialStr(str): def __del__(self): s.close() import cStringIO s = cStringIO.StringIO(SpecialStr("text")) s.close() # Segfault | ||||
* | #2120: broken links in advocacy document. | Georg Brandl | 2008-02-16 | 1 | -5/+5 |
| | |||||
* | 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 | 3 | -1/+23 |
| | | | | | | | | 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 | ||||
* | Update example to match the current syntax. | Raymond Hettinger | 2008-02-15 | 1 | -1/+1 |
| | |||||
* | Two new functions: | Skip Montanaro | 2008-02-15 | 1 | -3/+25 |
| | | | | | | | | * place_summary_first copies the regrtest summary to the front of the file making it easier to scan quickly for problems. * count_failures gets the actual count of the number of failing tests, not just a 1 (some failures) or 0 (no failures). | ||||
* | In PyNumber_ToBase, changed from an assert to returning an error when ↵ | Eric Smith | 2008-02-15 | 1 | -1/+5 |
| | | | | PyObject_Index() returns something other than an int or long. It should never be possible to trigger this, as PyObject_Index checks to make sure it returns an int or long. | ||||
* | Bug #2111: mmap segfaults when trying to write a block opened with PROT_READ | Christian Heimes | 2008-02-15 | 3 | -0/+13 |
| | | | | Thanks to Thomas Herve for the fix. | ||||
* | Fixed repr() and str() of complex numbers. Complex suffered from the same ↵ | Christian Heimes | 2008-02-15 | 3 | -7/+57 |
| | | | | problem as floats but I forgot to test and fix them. | ||||
* | Use a static and interned string for __subclasscheck__ and __instancecheck__ ↵ | Christian Heimes | 2008-02-14 | 1 | -2/+16 |
| | | | | as suggested by Thomas Heller in #2115 | ||||
* | Try to correct a markup error that does hide the following paragraph. | Thomas Heller | 2008-02-14 | 1 | -1/+0 |
| | |||||
* | No need to register subclass of ABCs. | Raymond Hettinger | 2008-02-14 | 1 | -2/+0 |
| | |||||
* | Fix markup | Raymond Hettinger | 2008-02-14 | 1 | -1/+1 |
| | |||||
* | Simplify moneyfmt() recipe. | Raymond Hettinger | 2008-02-14 | 1 | -13/+5 |
| | |||||
* | Implemented Martin's suggestion to clear the free lists during the garbage ↵ | Christian Heimes | 2008-02-14 | 15 | -25/+131 |
| | | | | collection of the highest generation. | ||||
* | Fix markup. | Raymond Hettinger | 2008-02-14 | 1 | -1/+1 |
| | |||||
* | Show how to remove exponents. | Raymond Hettinger | 2008-02-14 | 1 | -0/+11 |
| | |||||
* | Improve rst markup | Raymond Hettinger | 2008-02-14 | 1 | -6/+5 |
| | |||||
* | Add fixed-point examples to the decimal FAQ | Raymond Hettinger | 2008-02-14 | 1 | -3/+30 |
| | |||||
* | 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 | 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 |
| |