summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue #17872: Fix a segfault in marshal.load() when input stream returnsSerhiy Storchaka2013-07-111-15/+20
| | | | more bytes than requested.
* Fix reference leaks introduced by the patch for issue #5308.Serhiy Storchaka2013-07-111-12/+11
|
* Issue #18426: improve exception message. Courtesy of AmauryChristian Heimes2013-07-111-1/+5
|
* Issue #18426: Fix NULL pointer dereference in C extension import whenChristian Heimes2013-07-111-0/+2
| | | | PyModule_GetDef() returns an error.
* #18424: PEP8ify the tense of the sum docstring.R David Murray2013-07-101-2/+2
|
* Issue #18351: Fix various issues withBrett Cannon2013-07-061-3369/+3367
| | | | | | | | | importlib._bootstrap._get_sourcefile(). Thanks to its only use by the C API, it was never properly tested until now. Thanks to Neal Norwitz for discovering the bug and Madison May for the patch.
* Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now theChristian Heimes2013-07-011-2/+2
| | | | | | tstate is first removed from TLS and then deallocated. CID 1019639 (#1 of 1): Use after free (USE_AFTER_FREE) use_after_free: Using freed pointer tstate.
* Issue #18137: Detect integer overflow on precision in float.__format__() andVictor Stinner2013-06-231-2/+14
| | | | complex.__format__().
* Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.Antoine Pitrou2013-06-181-0/+3
|
* Fix a misnaming of a method and an argumentBrett Cannon2013-06-161-1071/+1071
|
* Issue #18180: Fix ref leak in _PyImport_GetDynLoadWindows().Richard Oudkerk2013-06-101-2/+3
|
* move definition to top of blockBenjamin Peterson2013-05-171-1/+2
|
* complain about "global __class__" in a class body (closes #17983)Benjamin Peterson2013-05-151-0/+6
|
* when arguments are cells clear the locals slot (backport of #17927)Benjamin Peterson2013-05-151-2/+6
|
* Fix crash caused by 8c1385205a35Antoine Pitrou2013-05-051-6/+8
| | | | (thanks Arfrever for reporting).
* Issue #17408: Avoid using an obsolete instance of the copyreg module when ↵Antoine Pitrou2013-05-041-3/+1
| | | | the interpreter is shutdown and then started again.
* ignore errors when trying to fetch sys.stdin.encoding (closes #17863)Benjamin Peterson2013-04-291-9/+8
|
* raise an ImportError (rather than fatal) when __import__ is not found in ↵Benjamin Peterson2013-04-291-1/+2
| | | | __builtins__ (closes #17867)
* #17413: make sure settrace funcs get passed exception instances for 'value'.R David Murray2013-04-191-0/+1
| | | | Patch by Ingrid Cheung and Brendan McLoughlin.
* Fix indentation.Ezio Melotti2013-04-191-6/+6
|
* Revert a premature patch for issue #14010 (changeset aaaf36026511).Serhiy Storchaka2013-04-061-21/+9
|
* Issue #17645: convert an assert() into a proper exception in _Py_Mangle().Antoine Pitrou2013-04-061-2/+5
|
* Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka2013-04-061-9/+21
| | | | (builting and in itertools module, i.e. map(), itertools.chain(), etc).
* Issue #17619: Make input() check for Ctrl-C correctly on Windows.Richard Oudkerk2013-04-031-0/+1
|
* Issue #17357: Add missing verbosity messages when running underBrett Cannon2013-04-011-4268/+4281
| | | | -v/-vv that were lost in the transition to importlib.
* Fixes issue4653 - Correctly specify the buffer size to FormatMessageW andGregory P. Smith2013-03-231-1/+1
| | | | correctly check for errors on two CreateFileMapping calls.
* Issue #15038 : Fixing the condition broadcast and docs.Kristján Valur Jónsson2013-03-201-6/+6
|
* Rebuild importlib.h after the changes introduced in 0f65bf6063ca.Ezio Melotti2013-02-201-1092/+1089
|
* #17178: merge with 3.2.Ezio Melotti2013-02-151-2/+4
|\
| * #17178: update any()/all() docstrings to document their behavior with empty ↵Ezio Melotti2013-02-151-2/+4
| | | | | | | | iterables. Patch by Ankur Ankan.
* | Issue #5308: Raise ValueError when marshalling too large object (a sequenceSerhiy Storchaka2013-02-131-59/+59
|\ \ | |/ | | | | with size >= 2**31), instead of producing illegal marshal data.
| * Issue #5308: Raise ValueError when marshalling too large object (a sequenceSerhiy Storchaka2013-02-131-59/+59
| | | | | | | | with size >= 2**31), instead of producing illegal marshal data.
* | Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxErrorSerhiy Storchaka2013-02-101-7/+11
|\ \ | |/ | | | | and a full traceback including line number.
| * Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxErrorSerhiy Storchaka2013-02-101-7/+11
| | | | | | | | and a full traceback including line number.
* | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-095-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).
| * Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-094-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).
* | Issue #17098: Be more stringent of setting __loader__ on early importedBrett Cannon2013-02-011-292/+299
| | | | | | | | modules. Also made test more rigorous.
* | Issue #17098: Make sure every module has __loader__ defined.Brett Cannon2013-02-011-283/+289
| | | | | | | | Thanks to Thomas Heller for the bug report.
* | remove unnecessary clearing of listBenjamin Peterson2013-01-191-7/+0
| |
* | Issue #16730: Don't raise an exception inBrett Cannon2013-01-111-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.
* | (Merge 3.2) Issue #16455: On FreeBSD and Solaris, if the locale is C, theVictor Stinner2013-01-031-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.
| * Issue #16455: On FreeBSD and Solaris, if the locale is C, theVictor Stinner2013-01-031-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.
| * Issue #16416: Fix compilation errorVictor Stinner2012-12-031-1/+3
| |
* | bring Python into 2013Benjamin Peterson2013-01-011-1/+1
| |
* | Add sanity assertions in some import lock code (issue #15599).Antoine Pitrou2012-12-181-0/+2
| |
* | (Merge 3.2) Issue #16416: On Mac OS X, operating system data are now alwaysVictor Stinner2012-12-031-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.
| * Issue #16416: On Mac OS X, operating system data are now alwaysVictor Stinner2012-12-031-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.
* | Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.hChristian Heimes2012-12-021-0/+3
|\ \ | |/
| * Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.hChristian Heimes2012-12-021-0/+3
| |
* | Issue #16546: make ast.YieldFrom argument mandatory.Mark Dickinson2012-11-254-23/+25
| |