summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* bump version to 3.1rc2Benjamin Peterson2009-06-131-2/+2
|
* #5735: Modules compiled with incompatible settings (--with-pydebug when ↵Amaury Forgeot d'Arc2009-06-011-2/+2
| | | | | | | | python is not) should generate a link-time error. I won't backport to 3.0, because it breaks binary compatibility
* post-release updatesBenjamin Peterson2009-05-301-1/+1
|
* bump to 3.1rc1Benjamin Peterson2009-05-301-2/+2
|
* Issue #6012: Add cleanup support to O& argument parsing.Martin v. Löwis2009-05-291-0/+2
|
* #6115: remove entries for the already removed PyNumber_Divide and ↵Georg Brandl2009-05-261-15/+0
| | | | PyNumber_InPlaceDivide from the header and the docs.
* Merged revisions 72924 via svnmerge fromGeorg Brandl2009-05-251-1/+1
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72924 | georg.brandl | 2009-05-25 23:02:56 +0200 (Mo, 25 Mai 2009) | 6 lines Allow multiple context managers in one with statement, as proposed in http://codereview.appspot.com/53094 and accepted by Guido. The construct is transformed into multiple With AST nodes so that there should be no problems with the semantics. ........
* Refactor to remove duplicated nan/inf parsing code inMark Dickinson2009-05-201-0/+2
| | | | pystrtod.c, floatobject.c and dtoa.c.
* Remove trailing whitespace.Georg Brandl2009-05-171-3/+3
|
* Merged revisions 72698-72699 via svnmerge fromHirokazu Yamamoto2009-05-171-6/+2
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72698 | hirokazu.yamamoto | 2009-05-17 11:52:09 +0900 | 1 line Issue #3527: Removed Py_WIN_WIDE_FILENAMES which is not used any more. ........ r72699 | hirokazu.yamamoto | 2009-05-17 11:58:36 +0900 | 1 line Added NEWS for r72698. ........
* these builtins have to be initializedBenjamin Peterson2009-05-092-0/+15
|
* Merged revisions 72461 via svnmerge fromBenjamin Peterson2009-05-081-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72461 | benjamin.peterson | 2009-05-07 22:06:00 -0500 (Thu, 07 May 2009) | 1 line add _PyObject_LookupSpecial to handle fetching special method lookup ........
* post release updatesBenjamin Peterson2009-05-061-1/+1
|
* bump version to 3.1b1v3.1b1Benjamin Peterson2009-05-061-3/+3
|
* add a replacement API for PyCObject, PyCapsule #5630Benjamin Peterson2009-05-057-27/+72
| | | | | | All stdlib modules with C-APIs now use this. Patch by Larry Hastings
* Issue #5920: Changed format.__float__ and complex.__float__ to use a ↵Eric Smith2009-05-051-0/+6
| | | | precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson.
* Issue #5915: Implement PEP 383, Non-decodable Bytes inMartin v. Löwis2009-05-051-19/+29
| | | | System Character Interfaces.
* Merged revisions 72283-72284 via svnmerge fromAntoine Pitrou2009-05-041-4/+2
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72283 | antoine.pitrou | 2009-05-04 20:32:32 +0200 (lun., 04 mai 2009) | 4 lines Issue #4426: The UTF-7 decoder was too strict and didn't accept some legal sequences. Patch by Nick Barnes and Victor Stinner. ........ r72284 | antoine.pitrou | 2009-05-04 20:32:50 +0200 (lun., 04 mai 2009) | 3 lines Add Nick Barnes to ACKS. ........
* Issue #5914: Add new C-API function PyOS_string_to_double, to complementMark Dickinson2009-05-031-0/+3
| | | | PyOS_double_to_string, and deprecate PyOS_ascii_strtod and PyOS_ascii_atof.
* Issue #1588: Add complex.__format__.Eric Smith2009-04-301-0/+6
|
* Include files missed in r72044.Eric Smith2009-04-271-0/+28
|
* Merged revisions 72040 via svnmerge fromEric Smith2009-04-272-22/+14
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72040 | eric.smith | 2009-04-27 15:04:37 -0400 (Mon, 27 Apr 2009) | 1 line Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors. ........
* Don't try to use x87 assembly on OS X universal builds.Mark Dickinson2009-04-251-0/+3
|
* Merged revisions 71734,71738-71739 via svnmerge fromBenjamin Peterson2009-04-202-0/+3
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71734 | benjamin.peterson | 2009-04-18 17:15:26 -0500 (Sat, 18 Apr 2009) | 1 line many more types to initialize (I had to expose some of them) ........ r71738 | benjamin.peterson | 2009-04-18 21:32:42 -0500 (Sat, 18 Apr 2009) | 1 line initialize weakref some weakref types ........ r71739 | benjamin.peterson | 2009-04-18 21:40:43 -0500 (Sat, 18 Apr 2009) | 1 line make errors consistent ........
* Add comments to pyport.h explaining how to enable support for shortMark Dickinson2009-04-191-5/+30
| | | | | float repr on platforms that don't currently support it, and reorganize the defines slightly to make adding support easier.
* Merged revisions 71743 via svnmerge fromRonald Oussoren2009-04-191-0/+12
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71743 | ronald.oussoren | 2009-04-19 12:38:20 +0200 (Sun, 19 Apr 2009) | 2 lines Fix for issue5657. ........
* The SSE2 detection and enabling could potentially causeMark Dickinson2009-04-181-1/+1
| | | | | | | | problems for binary distributions of Python in situations where the build machine has SSE2 but the target machine does not. Therefore, don't enable SSE2 instructions automatically on x86.
* Add check for C99 round function to configure, and defineMark Dickinson2009-04-181-0/+4
| | | | a fallback function if round doesn't exist.
* Issue #5781: Only use legacy string<->double conversions whenMark Dickinson2009-04-181-2/+4
| | | | we can't figure out how to get and set the x87 control word.
* The comments at the top of intobject.h say that it will be removed in 3.1.Mark Dickinson2009-04-181-36/+0
| | | | Make it so.
* The other half of Issue #1580: use short float repr where possible.Eric Smith2009-04-163-28/+43
| | | | | | | | | | | | | | Addresses the float -> string conversion, using David Gay's code which was added in Mark Dickinson's checkin r71663. Also addresses these, which are intertwined with the short repr changes: - Issue #5772: format(1e100, '<') produces '1e+100', not '1.0e+100' - Issue #5515: 'n' formatting with commas no longer works poorly with leading zeros. - PEP 378 Format Specifier for Thousands Separator: implemented for floats.
* Issue #1580: use short float repr where possible.Mark Dickinson2009-04-165-0/+74
| | | | | | | | | | | | | | | - incorporate and adapt David Gay's dtoa and strtod into the Python core - on platforms where we can use Gay's code (almost all!), repr(float) is based on the shortest sequence of decimal digits that rounds correctly. - add sys.float_repr_style attribute to indicate whether we're using Gay's code or not - add autoconf magic to detect and enable SSE2 instructions on x86/gcc - slight change to repr and str: repr switches to exponential notation at 1e16 instead of 1e17, str switches at 1e11 instead of 1e12
* Add bytes/bytearray.maketrans() to mirror str.maketrans(), and deprecateGeorg Brandl2009-04-121-0/+4
| | | | string.maketrans() which actually works on bytes. (Also closes #5675.)
* Merged revisions 71229,71271 via svnmerge fromMatthias Klose2009-04-071-7/+9
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71229 | matthias.klose | 2009-04-05 14:43:08 +0200 (So, 05 Apr 2009) | 3 lines - Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings. (avoiding brown paper typo this time) ........ r71271 | matthias.klose | 2009-04-05 23:19:13 +0200 (So, 05 Apr 2009) | 3 lines Issue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)' to avoid compiler warnings. ........
* bump version for 3.1a2+Benjamin Peterson2009-04-041-1/+1
|
* bump version to 3.1a2Benjamin Peterson2009-04-041-2/+2
|
* Merged revisions 71163 via svnmerge fromBenjamin Peterson2009-04-041-7/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71163 | benjamin.peterson | 2009-04-04 11:05:51 -0500 (Sat, 04 Apr 2009) | 1 line revert r71159 since it broke the build ........
* Merged revisions 71159 via svnmerge fromMatthias Klose2009-04-041-5/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71159 | matthias.klose | 2009-04-04 17:51:23 +0200 (Sa, 04 Apr 2009) | 2 lines - Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings. ........
* Added ',' thousands grouping to int.__format__. See PEP 378.Eric Smith2009-04-032-2/+25
| | | | | | | | | This is incomplete, but I want to get some version into the next alpha. I am still working on: Documentation. More tests. Implement for floats. In addition, there's an existing bug with 'n' formatting that carries forward to thousands grouping (issue 5515).
* Merged revisions 71031 via svnmerge fromBrett Cannon2009-04-021-1/+1
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71031 | brett.cannon | 2009-04-01 20:17:39 -0700 (Wed, 01 Apr 2009) | 6 lines PyImport_AppendInittab() took a char * as a first argument even though that string was stored beyond the life of the call. Changed the signature to be const char * to help make this point. Closes issue #1419652. ........
* The BDFL has retired! Long live the FLUFL (Friendly Language Uncle For Life)!Brett Cannon2009-04-014-2/+6
|
* Merged revisions 70546 via svnmerge fromAntoine Pitrou2009-03-233-0/+13
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70546 | antoine.pitrou | 2009-03-23 19:41:45 +0100 (lun., 23 mars 2009) | 9 lines Issue #4688: Add a heuristic so that tuples and dicts containing only untrackable objects are not tracked by the garbage collector. This can reduce the size of collections and therefore the garbage collection overhead on long-running programs, depending on their particular use of datatypes. (trivia: this makes the "binary_trees" benchmark from the Computer Language Shootout 40% faster) ........
* Merged revisions 70489 via svnmerge fromMark Dickinson2009-03-201-7/+11
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70489 | mark.dickinson | 2009-03-20 23:16:14 +0000 (Fri, 20 Mar 2009) | 4 lines Rewrite Py_ARITHMETIC_RIGHT_SHIFT so that it's valid for all signed integer types T, not just those for which "unsigned T" is legal. ........
* Add ..versionadded for sys.int_info, update py3k version ofMark Dickinson2009-03-201-1/+1
| | | | | whatsnew/2.7.rst to keep it in sync with the trunk version, and replace SHIFT with PyLong_SHIFT in #error message
* Issue #4258: Make it possible to use 30-bit digits for PyLongs:Mark Dickinson2009-03-183-15/+105
| | | | | | | - new configure option --enable-big-digits - new structseq sys.int_info giving information about the internal format By default, 30-bit digits are enabled on 64-bit machines but disabled on 32-bit machines.
* Issue #5392: when a very low recursion limit was set, the interpreter wouldAntoine Pitrou2009-03-131-5/+4
| | | | abort with a fatal error after the recursion limit was hit twice.
* let's get cracking on 3.1a2!Benjamin Peterson2009-03-071-1/+1
|
* bump version to 3.1a1v3.1a1Benjamin Peterson2009-03-071-2/+2
|
* ignore the coding cookie in compile(), exec(), and eval() if the source is a ↵Benjamin Peterson2009-03-022-0/+3
| | | | string #4626
* http://bugs.python.org/issue4715Jeffrey Yasskin2009-02-251-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch by Antoine Pitrou optimizes the bytecode for conditional branches by merging the following "POP_TOP" instruction into the conditional jump. For example, the list comprehension "[x for x in l if not x]" produced the following bytecode: 1 0 BUILD_LIST 0 3 LOAD_FAST 0 (.0) >> 6 FOR_ITER 23 (to 32) 9 STORE_FAST 1 (x) 12 LOAD_FAST 1 (x) 15 JUMP_IF_TRUE 10 (to 28) 18 POP_TOP 19 LOAD_FAST 1 (x) 22 LIST_APPEND 2 25 JUMP_ABSOLUTE 6 >> 28 POP_TOP 29 JUMP_ABSOLUTE 6 >> 32 RETURN_VALUE but after the patch it produces the following bytecode: 1 0 BUILD_LIST 0 3 LOAD_FAST 0 (.0) >> 6 FOR_ITER 18 (to 27) 9 STORE_FAST 1 (x) 12 LOAD_FAST 1 (x) 15 POP_JUMP_IF_TRUE 6 18 LOAD_FAST 1 (x) 21 LIST_APPEND 2 24 JUMP_ABSOLUTE 6 >> 27 RETURN_VALUE Notice that not only the code is shorter, but the conditional jump (POP_JUMP_IF_TRUE) jumps right to the start of the loop instead of going through the JUMP_ABSOLUTE at the end. "continue" statements are helped similarly. Furthermore, the old jump opcodes (JUMP_IF_FALSE, JUMP_IF_TRUE) have been replaced by two new opcodes: - JUMP_IF_TRUE_OR_POP, which jumps if true and pops otherwise - JUMP_IF_FALSE_OR_POP, which jumps if false and pops otherwise