summaryrefslogtreecommitdiff
path: root/Python
AgeCommit message (Collapse)AuthorLines
2009-06-11Merged revisions ↵Benjamin Peterson-24/+0
73196,73278-73280,73299,73308,73312-73313,73317-73318,73321,73324,73331,73335,73340,73363 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73196 | benjamin.peterson | 2009-06-03 20:40:29 -0500 (Wed, 03 Jun 2009) | 1 line use the offical api ........ r73278 | benjamin.peterson | 2009-06-07 17:33:11 -0500 (Sun, 07 Jun 2009) | 1 line inherit from object ........ r73279 | benjamin.peterson | 2009-06-07 17:35:00 -0500 (Sun, 07 Jun 2009) | 1 line always inherit from an appropiate base class ........ r73280 | benjamin.peterson | 2009-06-07 17:54:35 -0500 (Sun, 07 Jun 2009) | 1 line use booleans for flags ........ r73299 | georg.brandl | 2009-06-08 13:41:36 -0500 (Mon, 08 Jun 2009) | 1 line Typo fix. ........ r73308 | benjamin.peterson | 2009-06-08 17:18:32 -0500 (Mon, 08 Jun 2009) | 1 line remove useless assertion ........ r73312 | benjamin.peterson | 2009-06-08 18:44:13 -0500 (Mon, 08 Jun 2009) | 1 line remove error checks already done in set_context() ........ r73313 | r.david.murray | 2009-06-08 19:44:22 -0500 (Mon, 08 Jun 2009) | 4 lines Issue 2947: document how return code handling translates from os.popen to subprocess. Also fixes reference link in the os.spawn documentation. ........ r73317 | benjamin.peterson | 2009-06-09 12:24:26 -0500 (Tue, 09 Jun 2009) | 1 line make ast.c depend on the grammar ........ r73318 | benjamin.peterson | 2009-06-09 12:29:51 -0500 (Tue, 09 Jun 2009) | 1 line explain why keyword names are not just NAME ........ r73321 | benjamin.peterson | 2009-06-09 16:13:43 -0500 (Tue, 09 Jun 2009) | 1 line update symbol.py from with statement changes ........ r73324 | amaury.forgeotdarc | 2009-06-09 17:53:16 -0500 (Tue, 09 Jun 2009) | 2 lines Avoid invoking the parser/compiler just to test the presence of a function. ........ r73331 | benjamin.peterson | 2009-06-10 08:45:31 -0500 (Wed, 10 Jun 2009) | 1 line fix spelling ........ r73335 | raymond.hettinger | 2009-06-10 11:15:40 -0500 (Wed, 10 Jun 2009) | 1 line Fix signed/unsigned compiler warning. ........ r73340 | amaury.forgeotdarc | 2009-06-10 15:30:19 -0500 (Wed, 10 Jun 2009) | 2 lines Fix a typo spotted by Nick Coghlan. ........ r73363 | benjamin.peterson | 2009-06-11 12:51:17 -0500 (Thu, 11 Jun 2009) | 1 line use multi-with syntax ........
2009-05-30Merged revisions 73064 via svnmerge fromAntoine Pitrou-2/+16
svn+ssh://pythondev@svn.python.org/python/trunk ........ r73064 | antoine.pitrou | 2009-05-30 23:27:00 +0200 (sam., 30 mai 2009) | 4 lines Issue #5330: C functions called with keyword arguments were not reported by the various profiling modules (profile, cProfile). Patch by Hagen Fürstenau. ........
2009-05-29Issue #6012: Add cleanup support to O& argument parsing.Martin v. Löwis-1/+47
2009-05-25Merged revisions 72924 via svnmerge fromGeorg Brandl-39/+61
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. ........
2009-05-25Merged revisions 72907 via svnmerge fromBenjamin Peterson-4/+6
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72907 | benjamin.peterson | 2009-05-24 21:40:21 -0500 (Sun, 24 May 2009) | 1 line handle errors from _PyObject_LookupSpecial when __get__ fails ........
2009-05-23Merged revisions 72871-72872 via svnmerge fromBenjamin Peterson-1/+1
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72871 | benjamin.peterson | 2009-05-23 14:24:37 -0500 (Sat, 23 May 2009) | 1 line support building with subversion 1.7 #6094 ........ r72872 | benjamin.peterson | 2009-05-23 14:31:02 -0500 (Sat, 23 May 2009) | 1 line reorder name ........
2009-05-20Refactor to remove duplicated nan/inf parsing code inMark Dickinson-89/+60
pystrtod.c, floatobject.c and dtoa.c.
2009-05-17Merged revisions 72698-72699 via svnmerge fromHirokazu Yamamoto-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. ........
2009-05-13Merged revisions 72597 via svnmerge fromR. David Murray-7/+79
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72597 | r.david.murray | 2009-05-12 20:30:29 -0400 (Tue, 12 May 2009) | 2 lines Issue 5994: add docstrings to marshal. ........
2009-05-12fix error handling of PyNumber_InPlaceOr #6000Benjamin Peterson-16/+26
2009-05-10bytes -> bytearrayBenjamin Peterson-1/+1
2009-05-10Rename utf8b error handler to surrogateescape.Martin v. Löwis-6/+6
2009-05-10Rename the surrogates error handler to surrogatepass.Martin v. Löwis-8/+8
2009-05-09Merged revisions 72508 via svnmerge fromBenjamin Peterson-12/+8
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72508 | benjamin.peterson | 2009-05-09 11:36:39 -0500 (Sat, 09 May 2009) | 1 line convert some more special methods to use _PyObject_LookupSpecial ........
2009-05-09these builtins have to be initializedBenjamin Peterson-6/+0
2009-05-05add a replacement API for PyCObject, PyCapsule #5630Benjamin Peterson-15/+35
All stdlib modules with C-APIs now use this. Patch by Larry Hastings
2009-05-05Issue #5920: Changed format.__float__ and complex.__float__ to use a ↵Eric Smith-33/+13
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.
2009-05-05Issue #5915: Implement PEP 383, Non-decodable Bytes inMartin v. Löwis-16/+105
System Character Interfaces.
2009-05-03Merged revisions 72257 via svnmerge fromMark Dickinson-3/+16
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72257 | mark.dickinson | 2009-05-03 23:33:34 +0100 (Sun, 03 May 2009) | 2 lines Don't use PyOS_strnicmp for NaN and Inf detection: it's locale-aware. ........
2009-05-03Issue #5914: Add new C-API function PyOS_string_to_double, to complementMark Dickinson-39/+124
PyOS_double_to_string, and deprecate PyOS_ascii_strtod and PyOS_ascii_atof.
2009-05-02Make PyCodec_SurrogateErrors static.Martin v. Löwis-1/+4
2009-05-02Issue #3672: Reject surrogates in utf-8 codec; add surrogates errorMartin v. Löwis-2/+96
handler.
2009-05-01Issue #5859: Remove use of fixed-length buffers for float formattingMark Dickinson-25/+69
in unicodeobject.c and the fallback version of PyOS_double_to_string. As a result, operations like '%.120e' % 12.34 no longer raise an exception.
2009-04-30Issue #1588: Add complex.__format__.Eric Smith-3/+4
2009-04-29Issue #5864: Fix problem with empty code formatting for floats,Mark Dickinson-78/+114
where a bogus trailing zero could be added.
2009-04-27Include files missed in r72044.Eric Smith-0/+214
2009-04-27Merged revisions 72040 via svnmerge fromEric Smith-15/+9
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. ........
2009-04-26Issue #5835: Deprecate PyOS_ascii_formatd.Eric Smith-3/+19
2009-04-26Merged revisions 71976 via svnmerge fromMark Dickinson-2/+2
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71976 | mark.dickinson | 2009-04-26 20:54:55 +0100 (Sun, 26 Apr 2009) | 2 lines Fix typo in function name ........
2009-04-26Internal plumbing changes for float parsing:Mark Dickinson-30/+57
- check for nans and infs within PyOS_ascii_strtod - simplify parsing in PyFloat_FromString, and handle out-of-memory errors properly
2009-04-23Issue #5816: Simplify code for parsing and printing of complex numbers.Mark Dickinson-10/+13
nans and infs are no longer given special treatment; as a result, repr(complex(z)) recovers z for any complex number z.
2009-04-21Added handling of PyOS_double_to_string out-of-memory errors. Closes issue 5775.Eric Smith-27/+41
2009-04-18The SSE2 detection and enabling could potentially causeMark Dickinson-5/+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.
2009-04-18Merged revisions 71705 via svnmerge fromMark Dickinson-1/+1
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71705 | mark.dickinson | 2009-04-18 15:13:43 +0100 (Sat, 18 Apr 2009) | 2 lines copysign shouldn't be declared as static in pymath.c ........
2009-04-18Add check for C99 round function to configure, and defineMark Dickinson-0/+13
a fallback function if round doesn't exist.
2009-04-18Removed unused files.Eric Smith-206/+0
2009-04-17Issue 5780: Fix test_float failures for legacy style float repr.Mark Dickinson-4/+61
2009-04-17Silence compiler warnings on VS8.0Mark Dickinson-6/+6
2009-04-17Add reminder to dtoa.c to check for updates regularly.Mark Dickinson-2/+10
Fix a bug in the memory management in dtoa.c.
2009-04-17Make sure that marshal and pickle continue to output 17Mark Dickinson-3/+3
digits of precision for floats.
2009-04-16Simplify PyOS_double_to_string.Eric Smith-33/+31
2009-04-16The other half of Issue #1580: use short float repr where possible.Eric Smith-64/+558
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.
2009-04-16Issue #1580: use short float repr where possible.Mark Dickinson-0/+2678
- 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
2009-04-11Merged revisions 71024,71058 via svnmerge fromGeorg Brandl-1/+9
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71024 | georg.brandl | 2009-04-02 04:47:44 +0200 (Do, 02 Apr 2009) | 4 lines In PyErr_GivenExceptionMatches, temporarily bump the recursion limit, so that in the most common case PyObject_IsSubclass will not raise a recursion error we have to ignore anyway. ........ r71058 | georg.brandl | 2009-04-02 20:09:04 +0200 (Do, 02 Apr 2009) | 3 lines PyErr_NormalizeException may not set an error, so convert the PyErr_SetObject call on hitting the recursion limit into just assigning it to the arguments provided. ........
2009-04-11Merged revisions ↵Benjamin Peterson-1/+1
70980,71059,71225,71234,71241,71243,71249,71251,71255,71266,71299,71329,71397-71398,71486 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70980 | jack.diederich | 2009-04-01 15:26:13 -0500 (Wed, 01 Apr 2009) | 3 lines bounds check arguments to mmap.move(). All of them. Really. fixes crasher on OS X 10.5 ........ r71059 | mark.dickinson | 2009-04-02 13:39:37 -0500 (Thu, 02 Apr 2009) | 2 lines sys.long_info attributes should be ints, not longs ........ r71225 | georg.brandl | 2009-04-05 06:54:07 -0500 (Sun, 05 Apr 2009) | 1 line #5580: no need to use parentheses when converterr() argument is actually a type description. ........ r71234 | georg.brandl | 2009-04-05 08:16:35 -0500 (Sun, 05 Apr 2009) | 1 line Whitespace normalization. ........ r71241 | georg.brandl | 2009-04-05 09:48:49 -0500 (Sun, 05 Apr 2009) | 1 line #5471: fix expanduser() for $HOME set to "/". ........ r71243 | georg.brandl | 2009-04-05 10:14:29 -0500 (Sun, 05 Apr 2009) | 1 line #5432: make plistlib docstring a raw string, since it contains examples with backslash escapes. ........ r71249 | georg.brandl | 2009-04-05 11:30:43 -0500 (Sun, 05 Apr 2009) | 1 line #5444: adapt make.bat to new htmlhelp output file name. ........ r71251 | georg.brandl | 2009-04-05 12:17:42 -0500 (Sun, 05 Apr 2009) | 1 line #5298: clarify docs about GIL by using more consistent wording. ........ r71255 | georg.brandl | 2009-04-05 13:34:58 -0500 (Sun, 05 Apr 2009) | 1 line #602893: add indicator for current line in cgitb that doesnt rely on styling alone. ........ r71266 | georg.brandl | 2009-04-05 15:23:13 -0500 (Sun, 05 Apr 2009) | 1 line Normalize issue referencing style. ........ r71299 | gregory.p.smith | 2009-04-05 18:43:58 -0500 (Sun, 05 Apr 2009) | 3 lines Fixes issue5705: os.setuid() and friends did not accept the same range of values that pwd.getpwnam() returns. ........ r71329 | benjamin.peterson | 2009-04-06 16:53:33 -0500 (Mon, 06 Apr 2009) | 1 line add create_connection to __all__ #5711 ........ r71397 | georg.brandl | 2009-04-08 11:36:39 -0500 (Wed, 08 Apr 2009) | 1 line Remove redundant backtick. ........ r71398 | georg.brandl | 2009-04-08 11:39:04 -0500 (Wed, 08 Apr 2009) | 1 line Update ignore file for suspicious builder. ........ r71486 | andrew.kuchling | 2009-04-11 11:18:14 -0500 (Sat, 11 Apr 2009) | 1 line Re-word ........
2009-04-07Removed unused #include.Eric Smith-1/+0
2009-04-07Revert removal of atof.c and strtod.c in r71341. We're not quiteMark Dickinson-0/+206
ready for this yet---this removal should happen as part of the py3k-short-float-repr merge.
2009-04-07Removed unused files in preparation for merging py3k-short-float-repr.Eric Smith-206/+0
2009-04-04Merged revisions 71152 via svnmerge fromMatthias Klose-2/+3
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71152 | matthias.klose | 2009-04-04 16:18:13 +0200 (Sa, 04 Apr 2009) | 3 lines - Issue #3845: In PyRun_SimpleFileExFlags avoid invalid memory access with short file names. ........
2009-04-03Py_BuildValue's 'c' code should use byte strings #5666Benjamin Peterson-1/+1