summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* First draft for itertools.product(). Docs and other updates forthcoming.Raymond Hettinger2008-02-222-1/+240
|
* Part of #2154: minimal syntax fixes in doc example snippets.Georg Brandl2008-02-212-6/+6
|
* #2079: typo in userdict docs.Georg Brandl2008-02-211-1/+1
|
* Moved test_format into the correct TestCase.Eric Smith2008-02-211-39/+39
|
* Fix a few typos and layout glitches (more work is needed).Guido van Rossum2008-02-212-2141/+2144
| | | | Move 2.5 news to Misc/HISTORY.
* 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)'.
* configure.ac: Remove the configure check for _Bool, it is already done in theThomas Heller2008-02-213-3162/+3023
| | | | | top-level Python configure script. configure, fficonfig.h.in: regenerated.
* Removed uses of dict.has_key() from distutils, and uses ofGuido van Rossum2008-02-2117-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 Rossum2008-02-211-4/+0
|
* 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.
* Now that PyOS_ascii_formatd supports the 'n' format, simplify the float ↵Eric Smith2008-02-201-40/+15
| | | | formatting code to just call it.
* Trim leading zeros from a floating point exponent, per C99. See issue 1600. ↵Eric Smith2008-02-203-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 Brandl2008-02-201-3/+6
|
* Added PEP 3101.Eric Smith2008-02-191-0/+6
|
* Added dependencies for stringobject.o. This should fix failing tests in ↵Eric Smith2008-02-191-0/+8
| | | | test_unicode.py.
* Added code to correct combining str and unicode in ''.format(). Added test ↵Eric Smith2008-02-182-0/+25
| | | | case.
* Perform correct handling of stack overflow for windows: Catch the correct ↵Kristján Valur Jónsson2008-02-181-2/+8
| | | | exception code and reset the overflow condition when handled.
* 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-183-1/+45
| | | | Thanks Anthony Lenton.
* Issue #1916. Added isgenerator() and isgeneratorfunction() toFacundo Batista2008-02-184-15/+104
| | | | | inspect.py. Thanks Javi Mansilla for patch review and corrections.
* #2133: fix HTML color spec.Georg Brandl2008-02-171-1/+1
|
* Compilation was broken on Windows since the introduction of Advanced String ↵Amaury Forgeot d'Arc2008-02-174-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 Smith2008-02-1727-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, butFacundo Batista2008-02-173-1/+12
| | | | a subclass of it. Thanks John Lenton.
* Now we handle different the backup copy, because of securityFacundo Batista2008-02-172-16/+29
| | | | issues regarding user/group and permissions. Fixes 1050828.
* Fix function name.Georg Brandl2008-02-171-1/+1
|
* #2131: note that codecs.open() always opens files in binary mode.Georg Brandl2008-02-171-1/+9
|
* Move test_logging over to doctest.Brett Cannon2008-02-174-971/+2008
| | | | Thanks to Christopher White from GHOP.
* Prevent a crash with nested scopes, again caused by calling Py_DECREF when ↵Amaury Forgeot d'Arc2008-02-163-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 theAmaury Forgeot d'Arc2008-02-162-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 Brandl2008-02-161-5/+5
|
* 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-153-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 Hettinger2008-02-151-1/+1
|
* Two new functions:Skip Montanaro2008-02-151-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 Smith2008-02-151-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_READChristian Heimes2008-02-153-0/+13
| | | | Thanks to Thomas Herve for the fix.
* Fixed repr() and str() of complex numbers. Complex suffered from the same ↵Christian Heimes2008-02-153-7/+57
| | | | problem as floats but I forgot to test and fix them.
* Use a static and interned string for __subclasscheck__ and __instancecheck__ ↵Christian Heimes2008-02-141-2/+16
| | | | as suggested by Thomas Heller in #2115
* Try to correct a markup error that does hide the following paragraph.Thomas Heller2008-02-141-1/+0
|
* No need to register subclass of ABCs.Raymond Hettinger2008-02-141-2/+0
|
* Fix markupRaymond Hettinger2008-02-141-1/+1
|
* Simplify moneyfmt() recipe.Raymond Hettinger2008-02-141-13/+5
|
* Implemented Martin's suggestion to clear the free lists during the garbage ↵Christian Heimes2008-02-1415-25/+131
| | | | collection of the highest generation.