summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Make trailing whitespace explicit (including when it is an all-whitespaceBrett Cannon2007-12-241-10/+3
| | | | line).
* Fix the docstrings of time.localtime() and gmtime() for the tm_mday field.Brett Cannon2007-12-241-2/+3
| | | | Will backport.
* Add itemAndrew M. Kuchling2007-12-221-3/+25
|
* Improve performance of built-in any()/all() by avoiding PyIter_Next() --Guido van Rossum2007-12-201-8/+28
| | | | | using a trick found in ifilter(). Feel free to backport to 2.5.
* Fix refleak introduced in r59576.Georg Brandl2007-12-201-0/+1
|
* Patch #1672 by Joseph Armbruster. Use tempdir() to get a temporary directory.Guido van Rossum2007-12-201-1/+1
|
* Add tests for the warnings module; specifically formatwarning and showwarning.Brett Cannon2007-12-201-1/+32
| | | | Still need tests for warn_explicit and simplefilter.
* Add commentsRaymond Hettinger2007-12-201-3/+3
|
* Patch #1549 by Thomas Herve.Guido van Rossum2007-12-192-16/+79
| | | | | | This changes the rules for when __hash__ is inherited slightly, by allowing it to be inherited when one or more of __lt__, __le__, __gt__, __ge__ are overridden, as long as __eq__ and __ne__ aren't.
* Bigger range for non-extended opargs.Raymond Hettinger2007-12-191-1/+1
|
* Patch #1583 by Adam Olsen.Guido van Rossum2007-12-195-2/+127
| | | | | | | This adds signal.set_wakeup_fd(fd) which sets a file descriptor to which a zero byte will be written whenever a C exception handler runs. I added a simple C API as well, PySignal_SetWakeupFd(fd).
* Fix issue 1661: Flags argument silently ignored in re functions with ↵Raymond Hettinger2007-12-192-0/+10
| | | | compiled regexes.
* Some minor cleanups. Thanks Mark Dickinson.Facundo Batista2007-12-191-34/+19
|
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-19108-908/+916
| | | | Py_REFCNT. Macros for b/w compatibility are available.
* Add a bunch of itemsAndrew M. Kuchling2007-12-191-4/+157
|
* Zap a duplicate lineRaymond Hettinger2007-12-191-1/+0
|
* Beef-up tests for dict literalsRaymond Hettinger2007-12-191-1/+10
|
* Users demand iterable input for named tuples. The author capitulates.Raymond Hettinger2007-12-183-17/+27
|
* Applied patch #1635: Float patch for inf and nan on Windows (and other ↵Christian Heimes2007-12-1818-9/+394
| | | | | | platforms). The patch unifies float("inf") and repr(float("inf")) on all platforms.
* Simplify and speedup _asdict() for named tuples.Raymond Hettinger2007-12-182-7/+7
|
* Fixed #1649: IDLE error: dictionary changed size during iterationChristian Heimes2007-12-181-1/+1
|
* Give meaning to the oparg for BUILD_MAP: estimated size of the dictionary.Raymond Hettinger2007-12-186-6/+26
| | | | | | | | | | | Allows dictionaries to be pre-sized (upto 255 elements) saving time lost to re-sizes with their attendant mallocs and re-insertions. Has zero effect on small dictionaries (5 elements or fewer), a slight benefit for dicts upto 22 elements (because they had to resize once anyway), and more benefit for dicts upto 255 elements (saving multiple resizes during the build-up and reducing the number of collisions on the first insertions). Beyond 255 elements, there is no addional benefit.
* Issue #1645 by Alberto Bertogli. Fix a comment.Guido van Rossum2007-12-181-6/+6
|
* Issue #1642: Fix segfault in ctypes when trying to delete attributes.Thomas Heller2007-12-184-0/+44
|
* Speed-up dictionary constructor by about 10%.Raymond Hettinger2007-12-185-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | New opcode, STORE_MAP saves the compiler from awkward stack manipulations and specializes for dicts using PyDict_SetItem instead of PyObject_SetItem. Old disassembly: 0 BUILD_MAP 0 3 DUP_TOP 4 LOAD_CONST 1 (1) 7 ROT_TWO 8 LOAD_CONST 2 ('x') 11 STORE_SUBSCR 12 DUP_TOP 13 LOAD_CONST 3 (2) 16 ROT_TWO 17 LOAD_CONST 4 ('y') 20 STORE_SUBSCR New disassembly: 0 BUILD_MAP 0 3 LOAD_CONST 1 (1) 6 LOAD_CONST 2 ('x') 9 STORE_MAP 10 LOAD_CONST 3 (2) 13 LOAD_CONST 4 ('y') 16 STORE_MAP
* Removed several unused files from the PCbuild9 directory. They are relics ↵Christian Heimes2007-12-185-4056/+0
| | | | from the past.
* Make it a bit easier to test Tcl/Tk and idle from a build dir.Christian Heimes2007-12-182-0/+19
|
* Fixed for #1601: IDLE not working correctly on Windows (Py30a2/IDLE30a1)Christian Heimes2007-12-183-29/+45
| | | | Amaury's ideas works great. Should we build the Python core with WINVER=0x0500 and _WIN32_WINNT=0x0500, too?
* Add more namedtuple() test cases. Neaten the code and comments.Raymond Hettinger2007-12-183-14/+44
|
* Removed the private _rounding_decision: it was not needed, and the codeFacundo Batista2007-12-171-94/+38
| | | | is now simpler. Thanks Mark Dickinson.
* Don't use quotes for non-string code.Georg Brandl2007-12-161-1/+1
|
* Use PEP 8.Georg Brandl2007-12-161-6/+6
|
* Simplify.Georg Brandl2007-12-161-3/+1
|
* Fixed #1638: %zd configure test fails on LinuxChristian Heimes2007-12-163-6/+16
|
* Adapt conf.py to new option names.Georg Brandl2007-12-162-14/+35
|
* Remove curious space-like characters.Georg Brandl2007-12-161-3/+3
|
* Remove another unnecessary Unicode character.Georg Brandl2007-12-161-1/+1
|
* Remove gratuitous unicode character.Georg Brandl2007-12-161-1/+1
|
* Remove orphaned footnote reference.Georg Brandl2007-12-161-1/+1
|
* Revert dummy commit now that the build slave is building.Georg Brandl2007-12-161-1/+0
|
* Dummy commit to investigate #1617.Georg Brandl2007-12-161-0/+1
|
* Argh, wrong version.Georg Brandl2007-12-151-4/+0
|
* Add note about future import needed for with statement.Georg Brandl2007-12-151-0/+4
|
* Fixed #1624: Remove output comparison for test_pep277Christian Heimes2007-12-152-8/+4
| | | | I had to modify Brett's patch slightly.
* Optimize PyList_AsTuple(). Improve cache performance by doing theRaymond Hettinger2007-12-151-5/+5
| | | | | | pointer copy and object increment in one pass. For small lists, save the overhead of the call to memcpy() -- this comes up in calls like f(*listcomp).
* Fixed bug #1628Christian Heimes2007-12-142-3/+5
| | | | The detection now works on Unix with Makefile, Makefile with VPATH and on Windows.
* Bump the version number, and make a few small editsAndrew M. Kuchling2007-12-141-13/+15
|
* Remove warning about URLAndrew M. Kuchling2007-12-141-3/+1
|
* Add usage noteRaymond Hettinger2007-12-141-2/+10
|
* Faster and simpler _replace() methodRaymond Hettinger2007-12-142-2/+2
|