summaryrefslogtreecommitdiff
path: root/Python
AgeCommit message (Collapse)AuthorLines
2010-12-15Issue #8844: Regular and recursive lock acquisitions can now be interruptedAntoine Pitrou-49/+80
by signals on platforms using pthreads. Patch by Reid Kleckner.
2010-12-04Issue #10601: sys.displayhook uses 'backslashreplace' error handler onVictor Stinner-2/+76
UnicodeEncodeError.
2010-12-04Add an "optimize" parameter to compile() to control the optimization level, ↵Georg Brandl-20/+47
and provide an interface to it in py_compile, compileall and PyZipFile.
2010-12-03Merge branches/pep-0384.Martin v. Löwis-9/+32
2010-12-03import: use PyUnicode_FSConverter to support bytes path and PEP 383Victor Stinner-28/+30
(instead of PyArg_Parse*() with "es" format and Py_FileSystemDefaultEncoding)
2010-12-02Issue #9573: os.fork now works when triggered as a side effect of import ↵Nick Coghlan-2/+11
(the wisdom of actually relying on this remains questionable!)
2010-11-30Remove redundant includes of headers that are already included by Python.h.Georg Brandl-19/+0
2010-11-30Include structseq.h in Python.h, and remove now-redundant includes in ↵Georg Brandl-1/+0
individual sources.
2010-11-27Issue #10518: Bring back the callable() builtin.Antoine Pitrou-0/+15
Approved by Guido (BDFL) and Georg (RM).
2010-11-21fix refleakBenjamin Peterson-0/+5
2010-11-20Issue #10255: Fix reference leak in Py_InitializeEx(). Patch by NeilAntoine Pitrou-0/+2
Schemenauer.
2010-11-20new plan: functions that want 'tmp' can declare itBenjamin Peterson-20/+5
2010-11-20c89 declarationsBenjamin Peterson-10/+10
2010-11-20use %R format code; fixes invalid dereferencing #10391Benjamin Peterson-50/+25
2010-11-17handle dict subclasses gracefully in PyArg_ValidateKeywordArgumentsBenjamin Peterson-1/+1
2010-11-10Issue #10372: Import the warnings module only after the IO library isAntoine Pitrou-7/+9
initialized, so as to avoid bootstrap issues with the '-W' option.
2010-11-09Issue #10359: Remove ";" after function definition, invalid in ISO CVictor Stinner-1/+1
2010-11-08_Py_char2wchar() frees the memory on conversion errorVictor Stinner-2/+7
Explain in the documentation that conversion errors should never happen.
2010-11-08PyUnicode_EncodeFS() raises an exception if _Py_wchar2char() failsVictor Stinner-6/+14
* Add error_pos optional argument to _Py_wchar2char() * PyUnicode_EncodeFS() raises a UnicodeEncodeError or MemoryError if _Py_wchar2char() fails
2010-10-30Issue #10157: Fixed refleaks in pythonrun.c. Patch by Stefan Krah.Hirokazu Yamamoto-0/+3
2010-10-29decrement offset when it points to a newline (#10186 followup)Benjamin Peterson-1/+3
2010-10-28Issue #5437: A preallocated MemoryError instance should not hold tracebackAntoine Pitrou-23/+1
data (including local variables caught in the stack trace) alive infinitely.
2010-10-25sys_update_path(): update sys.path even if argc==0Victor Stinner-2/+0
2010-10-24Add a new warning gategory, ResourceWarning, as discussed on python-dev. It ↵Georg Brandl-5/+23
is silent by default, except when configured --with-pydebug. Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
2010-10-24tighten loopBenjamin Peterson-4/+1
2010-10-24remove broken code accounting an offset the size of the line #10186Benjamin Peterson-2/+0
2010-10-23follow up to #9778: define and use an unsigned hash typeBenjamin Peterson-1/+1
2010-10-21Issue #10089: Add support for arbitrary -X options on the command-line.Antoine Pitrou-6/+60
They can be retrieved through a new attribute `sys._xoptions`.
2010-10-20fix uninitialized struct member #10152Benjamin Peterson-0/+1
2010-10-19initfsencoding(): get_codeset() failure is now a fatal errorVictor Stinner-13/+6
Don't fallback to utf-8 anymore to avoid mojibake. I never got any error from his function.
2010-10-17make hashes always the size of pointers; introduce Py_hash_t #9778Benjamin Peterson-4/+4
2010-10-17compiler_error(): use PyUnicode_DecodeFSDefault() to decode the filename,Victor Stinner-2/+11
instead of utf-8 in strict mode.
2010-10-17PyErr_SyntaxLocationEx() uses PyUnicode_DecodeFSDefault(), instead ofVictor Stinner-1/+1
PyUnicode_FromString(), to decode the filename.
2010-10-17find_module(): use FS encoding to display the missing __init__ warningVictor Stinner-7/+9
2010-10-17_PyImport_FixupExtension() and _PyImport_FindExtension() uses FS encodingVictor Stinner-24/+62
* Rename _PyImport_FindExtension() to _PyImport_FindExtensionUnicode(): the filename becomes a Unicode object instead of byte string * Rename _PyImport_FixupExtension() to _PyImport_FixupExtensionUnicode(): the filename becomes a Unicode object instead of byte string
2010-10-16Add an optional size argument to _Py_char2wchar()Victor Stinner-11/+16
_Py_char2wchar() callers usually need the result size in characters. Since it's trivial to compute it in _Py_char2wchar() (O(1) whereas wcslen() is O(n)), add an option to get it.
2010-10-16_Py_wrealpath() uses _Py_char2wchar() to decode the result, to supportVictor Stinner-2/+12
surrogate characters.
2010-10-16_Py_wreadlink(): catch _Py_char2wchar() failureVictor Stinner-0/+4
2010-10-16_Py_wreadlink() uses _Py_char2wchar() to decode the result, to supportVictor Stinner-2/+7
surrogate characters.
2010-10-16Fix ast_error_finish() and err_input(): filename can be NULLVictor Stinner-2/+12
Fix my previous commit (r85569).
2010-10-16Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expectsVictor Stinner-26/+63
filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode.
2010-10-16don't identify the toplevel namespace by name #9997Benjamin Peterson-1/+1
2010-10-16fix refleakBenjamin Peterson-4/+6
2010-10-16First (uncontroversial) part of issue 9807.Barry Warsaw-0/+4
* Expose the build flags to Python as sys.abiflags * Shared library libpythonX.Y<abiflags>.so * python-config --abiflags * Make two distutils tests that failed with --enable-shared (even before this patch) succeed. * Fix a few small style issues.
2010-10-15Fix imp_cache_from_source(): Decode make_compiled_pathname() result from theVictor Stinner-1/+1
filesystem encoding instead of utf-8. imp_cache_from_source() encodes the input path to filesystem encoding and this path is passed to make_compiled_pathname().
2010-10-15imp_load_module() uses PyUnicode_FSConverter() to support surrogates in moduleVictor Stinner-7/+7
path
2010-10-15imp.cache_from_source() uses PyUnicode_FSConverter() to support surrogates inVictor Stinner-5/+8
module path
2010-10-15imp.load_dynamic() uses PyUnicode_FSConverter() to support surrogatesVictor Stinner-6/+6
in the library path.
2010-10-15Use locale encoding if Py_FileSystemDefaultEncoding is not setVictor Stinner-258/+0
* PyUnicode_EncodeFSDefault(), PyUnicode_DecodeFSDefaultAndSize() and PyUnicode_DecodeFSDefault() use the locale encoding instead of UTF-8 if Py_FileSystemDefaultEncoding is NULL * redecode_filenames() functions and _Py_code_object_list (issue #9630) are no more needed: remove them
2010-10-15redecode_filename(): don't need to initialize variablesVictor Stinner-1/+1