summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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
|
* #16306: report only the first unknown option and add more tests. Patch by ↵Ezio Melotti2012-11-231-1/+1
| | | | Serhiy Storchaka.
* Remove unused variabile "plain" in builtin_exec.Ezio Melotti2012-11-211-2/+0
|
* #16306: Fix multiple error messages when unknown command line parameters ↵Ezio Melotti2012-11-181-5/+5
| | | | where passed to the interpreter. Patch by Hieu Nguyen.
* Issue #15001: fix segfault on "del sys.module['__main__']"Hynek Schlawack2012-11-071-6/+6
| | | | Patch by Victor Stinner.
* #5057: the peepholer no longer optimizes subscription on unicode literals ↵Ezio Melotti2012-11-041-18/+7
| | | | (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds.
* #16336: fix input checking in the surrogatepass error handler. Patch by ↵Ezio Melotti2012-11-031-4/+4
| | | | Serhiy Storchaka.
* bounds check for bad data (thanks amaury)Philip Jenvey2012-10-271-3/+4
|
* Fix compilation on WindowsNick Coghlan2012-10-201-1/+1
|
* Issue #6074: Forward port Windows read-only source file fix from 2.7Nick Coghlan2012-10-191-0/+6
|
* Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to ↵Christian Heimes2012-09-121-1/+3
| | | | decref 'k' in too many error cases.
* Partly revert ad3824a90261 and add comment about reference ownershipChristian Heimes2012-09-121-2/+1
|
* Fix null pointer dereferencing in structmember.c PyMember_SetOne() for ↵Christian Heimes2012-09-111-5/+1
| | | | T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815
* Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s ↵Christian Heimes2012-09-101-0/+1
| | | | going out of scope leaks the storage it points to.
* Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641Christian Heimes2012-09-101-0/+1
|
* Closed reference leak of variable 'k' in function ste_new which wasn't ↵Christian Heimes2012-09-101-1/+2
| | | | decrefed in error cases
* Issue #15340: Fix importing the random module when /dev/urandom cannot be ↵Antoine Pitrou2012-09-071-1/+2
| | | | | | opened. This was a regression caused by the hash randomization patch.
* Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-051-0/+3
| | | | | | | | | | | sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container types. Because of this change, a couple extension modules compiled for 3.2.4 (those which use the trashcan mechanism, despite it being undocumented) will not be loadable by 3.2.3 and earlier. However, extension modules compiled for 3.2.3 and earlier will be loadable by 3.2.4.
* put * in the normal placeBenjamin Peterson2012-09-021-2/+2
|
* move variable decl to the top of the functionBenjamin Peterson2012-09-021-2/+2
|
* prevert ast errors from being normalized before ast_error_finish is called ↵Benjamin Peterson2012-09-021-0/+8
| | | | (closes #15846)
* Issue #15726: Fix incorrect bounds checking in PyState_FindModule.Antoine Pitrou2012-08-201-1/+1
| | | | Patch by Robin Schreiber.
* Issue #15741: Fix potential NULL dereference. Found by Coverity.Stefan Krah2012-08-201-0/+2
|
* Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou2012-08-152-3/+14
| | | | | | errors correctly. Patch by Serhiy Storchaka.
* Close #13119: use "\r\n" newline for sys.stdout/err on WindowsVictor Stinner2012-08-031-5/+8
| | | | sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2.
* remove unused variableMeador Inge2012-07-181-1/+1
|
* Issue #15368: fixing variable typo.Meador Inge2012-07-181-1/+1
|
* Issue #15368: make bytecode generation deterministic.Meador Inge2012-07-181-2/+22
|
* Issue #15020: The program name used to search for Python's path is now ↵Antoine Pitrou2012-07-051-0/+4
| | | | "python3" under Unix, not "python".
* don't leak if the __class__ closure is setBenjamin Peterson2012-06-021-4/+2
|
* Issue #14761: Fix potential leak on an error case in the import machinery.Antoine Pitrou2012-05-091-1/+2
|
* Issue #14749: Add support for 'Z' to skipitem() in Python/getargs.c.Larry Hastings2012-05-081-0/+1
|
* mangle keyword-only argname when loading defaults (closes #14607)Benjamin Peterson2012-04-171-1/+5
|
* move outside WITH_THREAD conditionalBenjamin Peterson2012-04-131-2/+2
|
* take linkage def outside of WITH_THREAD conditional (closes #14569)Benjamin Peterson2012-04-131-4/+3
|
* fix parse_syntax_error to clean up its resourcesBenjamin Peterson2012-04-031-20/+31
|
* Fix typo when "PyObject*" was changed to "identifier"Kristján Valur Jónsson2012-03-231-1/+1
|
* this should technicaly be identifierBenjamin Peterson2012-03-221-1/+1
|
* check for NULLBenjamin Peterson2012-03-221-1/+2
|
* check by equality for __future__ not identity (closes #14378)Benjamin Peterson2012-03-221-8/+2
|
* Fixes Issue #14331: Use significantly less stack space when importing modules byGregory P. Smith2012-03-181-39/+127
| | | | allocating path buffers on the heap instead of the stack.
* Issue #14184: Increase the default stack size for secondary threads onNed Deily2012-03-131-8/+12
| | | | Mac OS X to prevent interpreter crashes when compiled on 10.7.
* kill this disabled codeBenjamin Peterson2012-03-121-6/+0
|
* use correct naming conventionBenjamin Peterson2012-03-121-2/+2
|
* Issue #14177: marshal.loads() now raises TypeError when given an unicode string.Antoine Pitrou2012-03-031-4/+4
| | | | Patch by Guilherme Gonçalves.
* Issue #14172: Fix reference leak when marshalling a buffer-like object ↵Antoine Pitrou2012-03-021-4/+4
| | | | (other than a bytes object).
* Issue #14084: Fix a file descriptor leak when importing a module with a bad ↵Antoine Pitrou2012-02-221-1/+3
| | | | encoding.