summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Revert my commit 7ba176c2f558: "Avoid useless "++" at the end of functionsVictor Stinner2011-05-271-3/+3
| | | | | | Warnings found by the Clang Static Analyzer." Most people prefer ++ at the end of functions.
* try to use the same str object for all code filenames when compiling or ↵Benjamin Peterson2011-05-272-18/+28
| | | | | | unmarshalling (#12190) This should reduce memory usage.
* remove unused string WILFE attributeBenjamin Peterson2011-05-271-16/+0
|
* print_exception(): handle correctly PyObject_GetAttrString() failureVictor Stinner2011-05-261-1/+1
| | | | Bug found by the Clang Static Analyzer.
* Avoid useless "++" at the end of functionsVictor Stinner2011-05-261-3/+3
| | | | Warnings found by the Clang Static Analyzer.
* Remove useless assignmentsVictor Stinner2011-05-261-4/+0
| | | | Warnings found by the the Clang Static Analyzer.
* make PyImport_ImportModuleLevel's first arg const like similiar functions ↵Benjamin Peterson2011-05-251-1/+1
| | | | (closes #12173)
* (Merge 3.2) Issue #11614: import __hello__ prints "Hello World!". Patch writtenVictor Stinner2011-05-161-8/+11
|\ | | | | | | by Andreas Stührk.
| * (Merge 3.1) Issue #11614: import __hello__ prints "Hello World!". Patch writtenVictor Stinner2011-05-161-8/+11
| |\ | | | | | | | | | by Andreas Stührk.
| | * Issue #11614: import __hello__ prints "Hello World!". Patch written by AndreasVictor Stinner2011-05-161-8/+11
| | | | | | | | | | | | Stührk.
* | | Merge #6498 fix from 3.2.Georg Brandl2011-05-151-1/+1
|\ \ \ | |/ /
| * | Merge #6498 fix from 3.1.Georg Brandl2011-05-151-1/+1
| |\ \ | | |/
| | * Closes #6498: fix several misspellings of "SystemExit" as "SystemError".Georg Brandl2011-05-151-1/+1
| | |
* | | _PyImport_LoadDynamicModule() encodes the module name explicitly to ASCIIVictor Stinner2011-05-071-15/+25
| | | | | | | | | | | | | | | | | | The name must be encodable to ASCII because dynamic module must have a function called "PyInit_NAME", they are written in C, and the C language doesn't accept non-ASCII identifiers.
* | | faulthandler: dump all threads by defaultVictor Stinner2011-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Set the default value of all_threads arguments to True * Py_FatalError() dumps all threads, instead of only the current thread Dump only the current thread is not reliable. In some cases, Python is unable to retrieve the state of the current thread and so is unable to dump the traceback. faulthandler keeps a reference to the interpreter and so is always able to dump the traceback of all threads.
* | | Issue #1856: Avoid crashes and lockups when daemon threads run while theAntoine Pitrou2011-05-043-6/+19
|\ \ \ | |/ / | | | | | | | | | interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.
| * | Issue #1856: Avoid crashes and lockups when daemon threads run while theAntoine Pitrou2011-05-043-6/+19
| | | | | | | | | | | | | | | interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.
| * | Issue #10914: Initialize correctly the filesystem codec when creating a newVictor Stinner2011-04-262-8/+16
| | | | | | | | | | | | | | | | | | | | | subinterpreter to fix a bootstrap issue with codecs implemented in Python, as the ISO-8859-15 codec. Add fscodec_initialized attribute to the PyInterpreterState structure.
| * | Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)Victor Stinner2011-04-261-1/+1
| | | | | | | | | | | | | | | ... instead of PyErr_Print() because we don't need to set sys attributes, the sys module is destroyed just after printing the error.
* | | Issue #11223: Replace threading._info() by sys.thread_infoVictor Stinner2011-04-302-38/+69
| | |
* | | Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_*Antoine Pitrou2011-04-271-0/+17
|\ \ \ | |/ / | | | | | | | | | APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch by Charles-François Natali.
| * | Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_*Antoine Pitrou2011-04-271-0/+17
| | | | | | | | | | | | | | | APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch by Charles-François Natali.
| * | MERGE: Up-port changeset 5cf8f6da8743 (closes #11890)Jesus Cea2011-04-201-56/+4
| |\ \ | | |/
| | * Up-port changeset 5cf8f6da8743 (closes #11890)Jesus Cea2011-04-201-56/+4
| | |
* | | Issue #10914: Initialize correctly the filesystem codec when creating a newVictor Stinner2011-04-262-8/+16
| | | | | | | | | | | | | | | | | | | | | subinterpreter to fix a bootstrap issue with codecs implemented in Python, as the ISO-8859-15 codec. Add fscodec_initialized attribute to the PyInterpreterState structure.
* | | Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)Victor Stinner2011-04-261-1/+1
| | | | | | | | | | | | | | | ... instead of PyErr_Print() because we don't need to set sys attributes, the sys module is destroyed just after printing the error.
* | | Issue #11223: fix compiler warningsVictor Stinner2011-04-201-0/+3
| | |
* | | Close #11619: write_compiled_module() doesn't encode the filenameVictor Stinner2011-04-201-2/+24
| | | | | | | | | | | | | | | Reimplement open_exclusive() using _wopen() to avoid encoding the filename to the filesystem encoding: use the Unicode version of the Windows API.
* | | Issue #11223: Add threading._info() function providing informations about theVictor Stinner2011-04-191-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | thread implementation. Skip test_lock_acquire_interruption() and test_rlock_acquire_interruption() of test_threadsignals if a thread lock is implemented using a POSIX mutex and a POSIX condition variable. A POSIX condition variable cannot be interrupted by a signal (e.g. on Linux, the futex system call is restarted).
* | | #5057: Merge with 3.2.Ezio Melotti2011-04-151-0/+18
|\ \ \ | |/ /
| * | #5057: Merge with 3.1.Ezio Melotti2011-04-151-0/+18
| |\ \ | | |/
| | * Issue #5057: fix a bug in the peepholer that led to non-portable pyc files ↵Ezio Melotti2011-04-151-0/+18
| | | | | | | | | | | | between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. "\U00012345"[0]).
* | | merge 3.2Benjamin Peterson2011-04-121-0/+1
|\ \ \ | |/ /
| * | merge 3.1Benjamin Peterson2011-04-121-0/+1
| |\ \ | | |/
| | * make assigning to a bytes literal a syntax error (closes #11506)Benjamin Peterson2011-04-121-0/+1
| | |
* | | Issue #9904: fix and clarify some comments + fix indentation in symtable codeEli Bendersky2011-04-101-4/+4
| | |
* | | Issue9670: Merge backout from 3.2.Ned Deily2011-04-091-12/+0
|\ \ \ | |/ /
| * | Issue9670: Merge backout to 3.2.Ned Deily2011-04-091-12/+0
| |\ \ | | |/
| | * Issue9670: Back out changeset 378b40d71175; test fails on other platformsNed Deily2011-04-091-12/+0
| | | | | | | | | | | | and on OS X with pydebug.
* | | Issue #9670: merge with currentNed Deily2011-04-091-0/+12
|\ \ \ | |/ /
| * | Issue #9670: merge with 3.2Ned Deily2011-04-091-0/+12
| |\ \ | | |/
| | * Issue #9670: Increase the default stack size for secondary threads onNed Deily2011-04-091-0/+12
| | | | | | | | | | | | | | | | | | Mac OS X and FreeBSD to reduce the chances of a crash instead of a "maximum recursion depth" RuntimeError exception. (Patch by Ronald Oussoren)
| | * Issue #8651: PyArg_Parse*() functions raise an OverflowError if the fileVictor Stinner2011-03-211-1/+11
| | | | | | | | | | | | | | | doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length bigger than 2^31-1 bytes).
* | | 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
| | |
* | | Issue #9319: Include the filename in "Non-UTF8 code ..." syntax error.Victor Stinner2011-04-042-8/+8
| | |
* | | Issue #10785: Store the filename as Unicode in the Python parser.Victor Stinner2011-04-041-16/+24
| | |
* | | Issue #11619: _PyImport_LoadDynamicModule() doesn't encode the path to bytesVictor Stinner2011-04-042-17/+27
| | | | | | | | | | | | on Windows.
* | | Issue #11393: _Py_DumpTraceback() writes the header even if there is no frameVictor Stinner2011-04-011-7/+7
| | |
* | | Issue #11393: The fault handler handles also SIGABRTVictor Stinner2011-04-011-0/+1
| | |