Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | First draft for itertools.product(). Docs and other updates forthcoming. | Raymond Hettinger | 2008-02-22 | 2 | -1/+240 |
| | |||||
* | Part of #2154: minimal syntax fixes in doc example snippets. | Georg Brandl | 2008-02-21 | 2 | -6/+6 |
| | |||||
* | #2079: typo in userdict docs. | Georg Brandl | 2008-02-21 | 1 | -1/+1 |
| | |||||
* | Moved test_format into the correct TestCase. | Eric Smith | 2008-02-21 | 1 | -39/+39 |
| | |||||
* | Fix a few typos and layout glitches (more work is needed). | Guido van Rossum | 2008-02-21 | 2 | -2141/+2144 |
| | | | | Move 2.5 news to Misc/HISTORY. | ||||
* | 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)'. | ||||
* | configure.ac: Remove the configure check for _Bool, it is already done in the | Thomas Heller | 2008-02-21 | 3 | -3162/+3023 |
| | | | | | top-level Python configure script. configure, fficonfig.h.in: regenerated. | ||||
* | Removed uses of dict.has_key() from distutils, and uses of | Guido van Rossum | 2008-02-21 | 17 | -39/+44 |
| | | | | | | 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. | ||||
* | Remove news about float repr() -- issue 1580 is still in limbo. | Guido van Rossum | 2008-02-21 | 1 | -4/+0 |
| | |||||
* | 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. | ||||
* | Now that PyOS_ascii_formatd supports the 'n' format, simplify the float ↵ | Eric Smith | 2008-02-20 | 1 | -40/+15 |
| | | | | formatting code to just call it. | ||||
* | Trim leading zeros from a floating point exponent, per C99. See issue 1600. ↵ | Eric Smith | 2008-02-20 | 3 | -34/+165 |
| | | | | As far as I know, this only affects Windows. Add float type 'n' to PyOS_ascii_formatd (see PEP 3101 for 'n' description). | ||||
* | Fixes contributed by Ori Avtalion. | Georg Brandl | 2008-02-20 | 1 | -3/+6 |
| | |||||
* | Added PEP 3101. | Eric Smith | 2008-02-19 | 1 | -0/+6 |
| | |||||
* | Added dependencies for stringobject.o. This should fix failing tests in ↵ | Eric Smith | 2008-02-19 | 1 | -0/+8 |
| | | | | test_unicode.py. | ||||
* | Added code to correct combining str and unicode in ''.format(). Added test ↵ | Eric Smith | 2008-02-18 | 2 | -0/+25 |
| | | | | case. | ||||
* | Perform correct handling of stack overflow for windows: Catch the correct ↵ | Kristján Valur Jónsson | 2008-02-18 | 1 | -2/+8 |
| | | | | exception code and reset the overflow condition when handled. | ||||
* | 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 | 3 | -1/+45 |
| | | | | Thanks Anthony Lenton. | ||||
* | Issue #1916. Added isgenerator() and isgeneratorfunction() to | Facundo Batista | 2008-02-18 | 4 | -15/+104 |
| | | | | | inspect.py. Thanks Javi Mansilla for patch review and corrections. | ||||
* | #2133: fix HTML color spec. | Georg Brandl | 2008-02-17 | 1 | -1/+1 |
| | |||||
* | Compilation was broken on Windows since the introduction of Advanced String ↵ | Amaury Forgeot d'Arc | 2008-02-17 | 4 | -8/+34 |
| | | | | | | | Formatting. Only PCBuild (vs9) was really tested. Changes for older compilers were done manually. | ||||
* | Backport of PEP 3101, Advanced String Formatting, from py3k. | Eric Smith | 2008-02-17 | 27 | -23/+3873 |
| | | | | | | | | | | | | | | | 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 | 3 | -1/+12 |
| | | | | a subclass of it. Thanks John Lenton. | ||||
* | Now we handle different the backup copy, because of security | Facundo Batista | 2008-02-17 | 2 | -16/+29 |
| | | | | issues regarding user/group and permissions. Fixes 1050828. | ||||
* | Fix function name. | Georg Brandl | 2008-02-17 | 1 | -1/+1 |
| | |||||
* | #2131: note that codecs.open() always opens files in binary mode. | Georg Brandl | 2008-02-17 | 1 | -1/+9 |
| | |||||
* | 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. |