summaryrefslogtreecommitdiff
path: root/Python
AgeCommit message (Collapse)AuthorLines
2013-05-05Fix crash caused by 8c1385205a35Antoine Pitrou-6/+8
(thanks Arfrever for reporting).
2013-05-04Issue #17408: Avoid using an obsolete instance of the copyreg module when ↵Antoine Pitrou-3/+1
the interpreter is shutdown and then started again.
2013-04-29ignore errors when trying to fetch sys.stdin.encoding (closes #17863)Benjamin Peterson-9/+8
2013-04-29raise an ImportError (rather than fatal) when __import__ is not found in ↵Benjamin Peterson-1/+2
__builtins__ (closes #17867)
2013-04-19#17413: make sure settrace funcs get passed exception instances for 'value'.R David Murray-0/+1
Patch by Ingrid Cheung and Brendan McLoughlin.
2013-04-19Fix indentation.Ezio Melotti-6/+6
2013-04-06Revert a premature patch for issue #14010 (changeset aaaf36026511).Serhiy Storchaka-21/+9
2013-04-06Issue #17645: convert an assert() into a proper exception in _Py_Mangle().Antoine Pitrou-2/+5
2013-04-06Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka-9/+21
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
2013-04-03Issue #17619: Make input() check for Ctrl-C correctly on Windows.Richard Oudkerk-0/+1
2013-04-01Issue #17357: Add missing verbosity messages when running underBrett Cannon-4268/+4281
-v/-vv that were lost in the transition to importlib.
2013-03-23Fixes issue4653 - Correctly specify the buffer size to FormatMessageW andGregory P. Smith-1/+1
correctly check for errors on two CreateFileMapping calls.
2013-03-19Issue #15038 : Fixing the condition broadcast and docs.Kristján Valur Jónsson-6/+6
2013-02-20Rebuild importlib.h after the changes introduced in 0f65bf6063ca.Ezio Melotti-1092/+1089
2013-02-15#17178: merge with 3.2.Ezio Melotti-2/+4
2013-02-15#17178: update any()/all() docstrings to document their behavior with empty ↵Ezio Melotti-2/+4
iterables. Patch by Ankur Ankan.
2013-02-13Issue #5308: Raise ValueError when marshalling too large object (a sequenceSerhiy Storchaka-59/+59
with size >= 2**31), instead of producing illegal marshal data.
2013-02-13Issue #5308: Raise ValueError when marshalling too large object (a sequenceSerhiy Storchaka-59/+59
with size >= 2**31), instead of producing illegal marshal data.
2013-02-10Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxErrorSerhiy Storchaka-7/+11
and a full traceback including line number.
2013-02-10Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxErrorSerhiy Storchaka-7/+11
and a full traceback including line number.
2013-02-09Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou-10/+9
in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
2013-02-09Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou-9/+8
in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag).
2013-02-01Issue #17098: Be more stringent of setting __loader__ on early importedBrett Cannon-292/+299
modules. Also made test more rigorous.
2013-02-01Issue #17098: Make sure every module has __loader__ defined.Brett Cannon-283/+289
Thanks to Thomas Heller for the bug report.
2013-01-19remove unnecessary clearing of listBenjamin Peterson-7/+0
2013-01-11Issue #16730: Don't raise an exception inBrett Cannon-943/+946
importlib.machinery.FileFinder when the directory has become unreadable or a file. This brings semantics in line with Python 3.2 import. Reported and diagnosed by David Pritchard.
2013-01-03(Merge 3.2) Issue #16455: On FreeBSD and Solaris, if the locale is C, theVictor Stinner-23/+217
ASCII/surrogateescape codec is now used, instead of the locale encoding, to decode the command line arguments. This change fixes inconsistencies with os.fsencode() and os.fsdecode() because these operating systems announces an ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.
2013-01-03Issue #16455: On FreeBSD and Solaris, if the locale is C, theVictor Stinner-23/+222
ASCII/surrogateescape codec is now used, instead of the locale encoding, to decode the command line arguments. This change fixes inconsistencies with os.fsencode() and os.fsdecode() because these operating systems announces an ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.
2012-12-31bring Python into 2013Benjamin Peterson-1/+1
2012-12-18Add sanity assertions in some import lock code (issue #15599).Antoine Pitrou-0/+2
2012-12-03Issue #16416: Fix compilation errorVictor Stinner-1/+3
2012-12-03(Merge 3.2) Issue #16416: On Mac OS X, operating system data are now alwaysVictor Stinner-6/+54
encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding (which may be ASCII if no locale environment variable is set), to avoid inconsistencies with os.fsencode() and os.fsdecode() functions which are already using UTF-8/surrogateescape.
2012-12-03Issue #16416: On Mac OS X, operating system data are now alwaysVictor Stinner-6/+54
encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding (which may be ASCII if no locale environment variable is set), to avoid inconsistencies with os.fsencode() and os.fsdecode() functions which are already using UTF-8/surrogateescape.
2012-12-02Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.hChristian Heimes-0/+3
2012-12-02Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.hChristian Heimes-0/+3
2012-11-25Issue #16546: make ast.YieldFrom argument mandatory.Mark Dickinson-23/+25
2012-11-23#16306: merge with 3.2.Ezio Melotti-1/+1
2012-11-23#16306: report only the first unknown option and add more tests. Patch by ↵Ezio Melotti-1/+1
Serhiy Storchaka.
2012-11-21Remove unused variabile "plain" in builtin_exec.Ezio Melotti-2/+0
2012-11-20- Issue #16514: Fix regression causing a traceback when sys.path[0] is NoneBarry Warsaw-63/+67
(actually, any non-string or non-bytes type).
2012-11-18#16306: merge with 3.2.Ezio Melotti-5/+5
2012-11-18#16306: Fix multiple error messages when unknown command line parameters ↵Ezio Melotti-5/+5
where passed to the interpreter. Patch by Hieu Nguyen.
2012-11-12recompile importlib.hBenjamin Peterson-1543/+1543
2012-11-12Issue #15835: Define PATH_MAX on HP-UX.Stefan Krah-0/+1
2012-11-07Issue #15001: fix segfault on "del sys.module['__main__']"Hynek Schlawack-6/+6
Patch by Victor Stinner.
2012-11-07Issue #15001: fix segfault on "del sys.module['__main__']"Hynek Schlawack-6/+6
Patch by Victor Stinner.
2012-11-05#5057: the peepholer no longer optimizes subscription on unicode literals ↵Ezio Melotti-18/+7
(e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds.
2012-11-04Issue #5765: Apply a hard recursion limit in the compilerNick Coghlan-29/+73
Previously, excessive nesting in expressions would blow the stack and segfault the interpreter. Now, a hard limit based on the configured recursion limit and a hardcoded scaling factor is applied.
2012-11-03#16336: merge with 3.2.Ezio Melotti-4/+4
2012-11-03#16336: fix input checking in the surrogatepass error handler. Patch by ↵Ezio Melotti-4/+4
Serhiy Storchaka.