summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
AgeCommit message (Collapse)AuthorLines
2013-02-15#17178: update any()/all() docstrings to document their behavior with empty ↵Ezio Melotti-2/+4
iterables. Patch by Ankur Ankan.
2012-11-21Remove unused variabile "plain" in builtin_exec.Ezio Melotti-2/+0
2012-08-20Issue #15741: Fix potential NULL dereference. Found by Coverity.Stefan Krah-0/+2
2012-08-15Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou-1/+3
errors correctly. Patch by Serhiy Storchaka.
2012-06-01don't leak if the __class__ closure is setBenjamin Peterson-4/+2
2012-01-11fold into one if statementBenjamin Peterson-3/+1
2012-01-03fix formattingBenjamin Peterson-1/+1
2011-11-06Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicodeAntoine Pitrou-42/+41
error handler in interactive mode (when calling into PyOS_Readline()).
2011-10-28Remove unused variable.Florent Xicluna-2/+1
2011-10-23Issue 1294232: Fix errors in metaclass calculation affecting some cases of ↵Nick Coghlan-2/+28
metaclass inheritance. Patch by Daniel Urban.
2011-04-07Removed 'or long integer' from bin, oct, and hex docstrings.Alexander Belopolsky-3/+3
2011-02-23Merged revisions 88530 via svnmerge fromVictor Stinner-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'). ........
2010-12-04Add an "optimize" parameter to compile() to control the optimization level, ↵Georg Brandl-6/+13
and provide an interface to it in py_compile, compileall and PyZipFile.
2010-12-03Merge branches/pep-0384.Martin v. Löwis-2/+2
2010-11-30Remove redundant includes of headers that are already included by Python.h.Georg Brandl-1/+0
2010-11-27Issue #10518: Bring back the callable() builtin.Antoine Pitrou-0/+15
Approved by Guido (BDFL) and Georg (RM).
2010-10-17make hashes always the size of pointers; introduce Py_hash_t #9778Benjamin Peterson-2/+2
2010-10-16Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expectsVictor Stinner-11/+22
filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode.
2010-09-27Since __import__ is not designed for general use, have its docstring pointBrett Cannon-2/+6
people towards importlib.import_module(). Closes issue #7397.
2010-09-10Issue #9632: Remove sys.setfilesystemencoding() function: use PYTHONFSENCODINGVictor Stinner-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.
2010-08-24only catch AttributeError in hasattr() #9666Benjamin Peterson-8/+5
2010-05-19Issue #6697: Fix a crash if sys.stdin or sys.stdout encoding contain a surrogateVictor Stinner-7/+16
This is *very* unlikely :-)
2010-05-15Issue #8610: Load file system codec at startup, and display a fatal error onVictor Stinner-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.
2010-05-09Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou-1549/+1549
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. ........
2010-03-25Issue #8226: sys.setfilesystemencoding() raises a LookupError if the encodingVictor Stinner-1/+5
is unknown.
2010-02-27check PyDict_New() for errorBenjamin Peterson-6/+6
2010-02-27only accept AttributeError as indicating no __prepare__ attribute on a ↵Benjamin Peterson-2/+10
metaclass, allowing lookup errors to propogate
2009-12-19Fix typo (reported by terlop on IRC)Mark Dickinson-1/+1
2009-12-13Merged revisions 76534,76538,76628,76701,76774 via svnmerge fromBenjamin Peterson-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 ........
2009-10-26Merged revisions 75714 via svnmerge fromMark Dickinson-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 ........
2009-10-18Issue 7147 - remove ability to attempt to build Python without complex ↵Skip Montanaro-2/+0
number support (was broken anyway)
2009-07-02refactor logic a little when no sep or end is passedBenjamin Peterson-4/+10
2009-05-09these builtins have to be initializedBenjamin Peterson-6/+0
2009-03-02ignore the coding cookie in compile(), exec(), and eval() if the source is a ↵Benjamin Peterson-7/+9
string #4626
2009-02-02Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson-3/+3
type of tp_compare in a separate commit, for ease of reversion should things go wrong.
2009-02-01Issue #1717: remove the cmp builtin function, the C-API functionsMark Dickinson-20/+0
PyObject_Cmp, PyObject_Compare, and various support functions.
2009-01-28Issue #4707: round(x, n) now returns an integer when x is an integer.Mark Dickinson-10/+8
Previously it returned a float.
2009-01-12Merged revisions 68560 via svnmerge fromAmaury Forgeot d'Arc-3/+0
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68560 | amaury.forgeotdarc | 2009-01-13 00:36:55 +0100 (mar., 13 janv. 2009) | 6 lines #3720: Interpreter crashes when an evil iterator removes its own next function. Now the slot is filled with a function that always raises. Will not backport: extensions compiled with 2.6.x would not run on 2.6.0. ........
2009-01-06Mini-optimization: use pack/unpack functions for argument tuples.Raymond Hettinger-3/+3
2009-01-04#4826 exec() doesn't take a file object anymoreBenjamin Peterson-2/+2
2008-12-04#4513: remove traces of zip() docstring from when it was izip().Georg Brandl-3/+1
2008-10-30Issue 3723: Fixed initialization of subinterpretersChristian Heimes-1/+1
The patch fixes several issues with Py_NewInterpreter as well as the demo for multiple subinterpreters. Most of the patch was written by MvL with help from Benjamin, Amaury and me. Graham Dumpleton has verified that this patch fixes an issue with mod_wsgi.
2008-10-03Issue #3187: Add sys.setfilesystemencoding.Martin v. Löwis-3/+22
2008-09-21#1688: On Windows, the input() prompt was not correctly displayed if itAmaury Forgeot d'Arc-2/+19
contains non-ascii characters. Reviewed by Benjamin Peterson.
2008-08-28#3706: fix error message for wrong exec() argument type. R=Guido.Georg Brandl-13/+9
2008-08-07Rename PyUnicode_AsString -> _PyUnicode_AsString andMarc-André Lemburg-2/+2
PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark them for interpreter internal use only. We'll have to rework these APIs or create new ones for the purpose of accessing the UTF-8 representation of Unicode objects for 3.1.
2008-08-01Merged revisions 65339-65340,65342 via svnmerge fromAmaury Forgeot d'Arc-2/+2
svn+ssh://pythondev@svn.python.org/python/trunk ........ r65339 | amaury.forgeotdarc | 2008-07-31 23:28:03 +0200 (jeu., 31 juil. 2008) | 5 lines #3479: unichr(2**32) used to return u'\x00'. The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int. (why doesn't gcc issue a truncation warning in this case?) ........ r65340 | amaury.forgeotdarc | 2008-07-31 23:35:03 +0200 (jeu., 31 juil. 2008) | 2 lines Remove a dummy test that was checked in by mistake ........ r65342 | amaury.forgeotdarc | 2008-08-01 01:39:05 +0200 (ven., 01 août 2008) | 8 lines Correct a crash when two successive unicode allocations fail with a MemoryError: the freelist contained half-initialized objects with freed pointers. The comment /* XXX UNREF/NEWREF interface should be more symmetrical */ was copied from tupleobject.c, and appears in some other places. I sign the petition. ........
2008-07-05Docstring typoMark Dickinson-1/+1
2008-07-01#3191: fix round() docs and docstring.Georg Brandl-2/+2
2008-06-11#2630: Implement PEP 3138.Georg Brandl-0/+15
The repr() of a string now contains printable Unicode characters unescaped. The new ascii() builtin can be used to get a repr() with only ASCII characters in it. PEP and patch were written by Atsuo Ishimoto.