summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Closes #13761: add a "flush" keyword argument to print().Georg Brandl2012-01-131-5/+19
|
* merge 3.2Benjamin Peterson2012-01-121-3/+1
|\
| * fold into one if statementBenjamin Peterson2012-01-121-3/+1
| |
* | merge 3.2Benjamin Peterson2012-01-031-1/+1
|\ \ | |/
| * fix formattingBenjamin Peterson2012-01-031-1/+1
| |
* | Remove "#ifdef Py_UNICODE_WIDE": Python is now always wideVictor Stinner2011-11-221-9/+2
| |
* | quote the type name for improved readabilityPhilip Jenvey2011-11-071-1/+1
| |
* | Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicodeAntoine Pitrou2011-11-051-42/+42
|\ \ | |/ | | | | error handler in interactive mode (when calling into PyOS_Readline()).
| * Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicodeAntoine Pitrou2011-11-051-42/+41
| | | | | | | | error handler in interactive mode (when calling into PyOS_Readline()).
* | Merge 3.2 (linked to issue #1294232)Florent Xicluna2011-10-281-1/+1
|\ \ | |/
| * Remove unused variable.Florent Xicluna2011-10-281-2/+1
| |
* | Merge issue 1294232 patch from 3.2Nick Coghlan2011-10-231-3/+30
|\ \ | |/
| * Issue 1294232: Fix errors in metaclass calculation affecting some cases of ↵Nick Coghlan2011-10-231-2/+28
| | | | | | | | metaclass inheritance. Patch by Daniel Urban.
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-6/+6
| |
* | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-101-5/+9
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-5/+8
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Implement PEP 393.Martin v. Löwis2011-09-281-18/+8
| |
* | include header with PyAST_ValidateBenjamin Peterson2011-08-131-0/+3
| |
* | add a AST validator (closes #12575)Benjamin Peterson2011-08-091-0/+4
| |
* | plug refleakBenjamin Peterson2011-07-301-0/+1
| |
* | bytes -> bytearrayBenjamin Peterson2011-07-291-1/+1
| |
* | bytes should be verboten in sum() (fixes #12654)Benjamin Peterson2011-07-291-0/+5
| |
* | Issue #9642: Uniformize the tests on the availability of the mbcs codecVictor Stinner2011-07-041-1/+1
| | | | | | | | Add a new HAVE_MBCS define.
* | Issue #9642: Fix filesystem encoding initialization: use the ANSI code page onVictor Stinner2011-07-041-4/+1
| | | | | | | | | | | | Windows if the mbcs codec is not available, and fail with a fatal error if we cannot get the locale encoding (if nl_langinfo(CODESET) is not available) instead of using UTF-8.
* | Removed 'or long integer' from bin, oct, and hex docstrings.Alexander Belopolsky2011-04-071-3/+3
|\ \ | |/
| * Removed 'or long integer' from bin, oct, and hex docstrings.Alexander Belopolsky2011-04-071-3/+3
| |
| * Merged revisions 88530 via svnmerge fromVictor Stinner2011-02-231-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88530 | victor.stinner | 2011-02-23 13:07:37 +0100 (mer., 23 févr. 2011) | 4 lines Issue #11272: Fix input() and sys.stdin for Windows newline On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses universal newline (replace '\r\n' by '\n'). ........
* | Issue #3080: Add PyImport_ImportModuleLevelObject() functionVictor Stinner2011-03-141-7/+4
| | | | | | | | Use it for the builtin __import__ function.
* | Remove useless argument of _PyUnicode_AsDefaultEncodedString()Victor Stinner2011-03-021-1/+1
| |
* | Issue #11272: Fix input() and sys.stdin for Windows newlineVictor Stinner2011-02-231-4/+9
| | | | | | | | | | On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses universal newline (replace '\r\n' by '\n').
* | Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon2011-02-221-4/+1
|/
* Add an "optimize" parameter to compile() to control the optimization level, ↵Georg Brandl2010-12-041-6/+13
| | | | and provide an interface to it in py_compile, compileall and PyZipFile.
* Merge branches/pep-0384.Martin v. Löwis2010-12-031-2/+2
|
* Remove redundant includes of headers that are already included by Python.h.Georg Brandl2010-11-301-1/+0
|
* Issue #10518: Bring back the callable() builtin.Antoine Pitrou2010-11-271-0/+15
| | | | Approved by Guido (BDFL) and Georg (RM).
* make hashes always the size of pointers; introduce Py_hash_t #9778Benjamin Peterson2010-10-171-2/+2
|
* Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expectsVictor Stinner2010-10-161-11/+22
| | | | | filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode.
* Since __import__ is not designed for general use, have its docstring pointBrett Cannon2010-09-271-2/+6
| | | | | | people towards importlib.import_module(). Closes issue #7397.
* Issue #9632: Remove sys.setfilesystemencoding() function: use PYTHONFSENCODINGVictor Stinner2010-09-101-23/+0
| | | | | | environment variable to set the filesystem encoding at Python startup. sys.setfilesystemencoding() creates inconsistencies because it is unable to reencode all filenames in all objects.
* only catch AttributeError in hasattr() #9666Benjamin Peterson2010-08-241-8/+5
|
* Issue #6697: Fix a crash if sys.stdin or sys.stdout encoding contain a surrogateVictor Stinner2010-05-191-7/+16
| | | | This is *very* unlikely :-)
* Issue #8610: Load file system codec at startup, and display a fatal error onVictor Stinner2010-05-151-2/+9
| | | | | failure. Set the file system encoding to utf-8 (instead of None) if getting the locale encoding failed, or if nl_langinfo(CODESET) function is missing.
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-1644/+1644
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Issue #8226: sys.setfilesystemencoding() raises a LookupError if the encodingVictor Stinner2010-03-251-1/+5
| | | | is unknown.
* check PyDict_New() for errorBenjamin Peterson2010-02-271-6/+6
|
* only accept AttributeError as indicating no __prepare__ attribute on a ↵Benjamin Peterson2010-02-271-2/+10
| | | | metaclass, allowing lookup errors to propogate
* Fix typo (reported by terlop on IRC)Mark Dickinson2009-12-191-1/+1
|
* Merged revisions 76534,76538,76628,76701,76774 via svnmerge fromBenjamin Peterson2009-12-131-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76534 | martin.v.loewis | 2009-11-26 02:42:05 -0600 (Thu, 26 Nov 2009) | 2 lines Fix typo. ........ r76538 | georg.brandl | 2009-11-26 14:48:25 -0600 (Thu, 26 Nov 2009) | 1 line #7400: typo. ........ r76628 | andrew.kuchling | 2009-12-02 08:27:11 -0600 (Wed, 02 Dec 2009) | 1 line Markup fixes ........ r76701 | andrew.kuchling | 2009-12-07 20:37:05 -0600 (Mon, 07 Dec 2009) | 1 line Typo fix; grammar fix ........ r76774 | benjamin.peterson | 2009-12-12 18:54:15 -0600 (Sat, 12 Dec 2009) | 1 line account for PyObject_IsInstance's new ability to fail ........
* Merged revisions 75714 via svnmerge fromMark Dickinson2009-10-261-0/+9
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75714 | mark.dickinson | 2009-10-26 14:18:44 +0000 (Mon, 26 Oct 2009) | 1 line Warn against replacing PyNumber_Add with PyNumber_InPlaceAdd in sum ........
* Issue 7147 - remove ability to attempt to build Python without complex ↵Skip Montanaro2009-10-181-2/+0
| | | | number support (was broken anyway)