summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* update copyright to 2011Benjamin Peterson2011-01-011-1/+1
|
* Add sys.flags.quiet attribute for the new -q option, as noted missing by ↵Georg Brandl2010-12-282-1/+4
| | | | Eric in #1772833.
* Issue #10780: PyErr_SetFromWindowsErrWithFilename() andVictor Stinner2010-12-281-2/+2
| | | | | PyErr_SetExcFromWindowsErrWithFilename() decode the filename from the filesystem encoding instead of UTF-8.
* Issue #10779: PyErr_WarnExplicit() decodes the filename from the filesystemVictor Stinner2010-12-271-1/+1
| | | | encoding instead of UTF-8.
* Issue #8844: Regular and recursive lock acquisitions can now be interruptedAntoine Pitrou2010-12-152-50/+81
| | | | by signals on platforms using pthreads. Patch by Reid Kleckner.
* Issue #10601: sys.displayhook uses 'backslashreplace' error handler onVictor Stinner2010-12-041-2/+76
| | | | UnicodeEncodeError.
* Add an "optimize" parameter to compile() to control the optimization level, ↵Georg Brandl2010-12-043-20/+47
| | | | and provide an interface to it in py_compile, compileall and PyZipFile.
* Merge branches/pep-0384.Martin v. Löwis2010-12-036-9/+32
|
* import: use PyUnicode_FSConverter to support bytes path and PEP 383Victor Stinner2010-12-031-28/+30
| | | | (instead of PyArg_Parse*() with "es" format and Py_FileSystemDefaultEncoding)
* Issue #9573: os.fork now works when triggered as a side effect of import ↵Nick Coghlan2010-12-021-2/+11
| | | | (the wisdom of actually relying on this remains questionable!)
* Remove redundant includes of headers that are already included by Python.h.Georg Brandl2010-11-3011-19/+0
|
* Include structseq.h in Python.h, and remove now-redundant includes in ↵Georg Brandl2010-11-301-1/+0
| | | | individual sources.
* Issue #10518: Bring back the callable() builtin.Antoine Pitrou2010-11-271-0/+15
| | | | Approved by Guido (BDFL) and Georg (RM).
* fix refleakBenjamin Peterson2010-11-211-0/+5
|
* Issue #10255: Fix reference leak in Py_InitializeEx(). Patch by NeilAntoine Pitrou2010-11-201-0/+2
| | | | Schemenauer.
* new plan: functions that want 'tmp' can declare itBenjamin Peterson2010-11-201-20/+5
|
* c89 declarationsBenjamin Peterson2010-11-201-10/+10
|
* use %R format code; fixes invalid dereferencing #10391Benjamin Peterson2010-11-201-50/+25
|
* handle dict subclasses gracefully in PyArg_ValidateKeywordArgumentsBenjamin Peterson2010-11-171-1/+1
|
* Issue #10372: Import the warnings module only after the IO library isAntoine Pitrou2010-11-101-7/+9
| | | | initialized, so as to avoid bootstrap issues with the '-W' option.
* Issue #10359: Remove ";" after function definition, invalid in ISO CVictor Stinner2010-11-091-1/+1
|
* _Py_char2wchar() frees the memory on conversion errorVictor Stinner2010-11-081-2/+7
| | | | Explain in the documentation that conversion errors should never happen.
* PyUnicode_EncodeFS() raises an exception if _Py_wchar2char() failsVictor Stinner2010-11-081-6/+14
| | | | | | * Add error_pos optional argument to _Py_wchar2char() * PyUnicode_EncodeFS() raises a UnicodeEncodeError or MemoryError if _Py_wchar2char() fails
* Issue #10157: Fixed refleaks in pythonrun.c. Patch by Stefan Krah.Hirokazu Yamamoto2010-10-301-0/+3
|
* decrement offset when it points to a newline (#10186 followup)Benjamin Peterson2010-10-291-1/+3
|
* Issue #5437: A preallocated MemoryError instance should not hold tracebackAntoine Pitrou2010-10-281-23/+1
| | | | data (including local variables caught in the stack trace) alive infinitely.
* sys_update_path(): update sys.path even if argc==0Victor Stinner2010-10-251-2/+0
|
* Add a new warning gategory, ResourceWarning, as discussed on python-dev. It ↵Georg Brandl2010-10-242-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.
* tighten loopBenjamin Peterson2010-10-241-4/+1
|
* remove broken code accounting an offset the size of the line #10186Benjamin Peterson2010-10-241-2/+0
|
* follow up to #9778: define and use an unsigned hash typeBenjamin Peterson2010-10-231-1/+1
|
* Issue #10089: Add support for arbitrary -X options on the command-line.Antoine Pitrou2010-10-212-6/+60
| | | | They can be retrieved through a new attribute `sys._xoptions`.
* fix uninitialized struct member #10152Benjamin Peterson2010-10-201-0/+1
|
* initfsencoding(): get_codeset() failure is now a fatal errorVictor Stinner2010-10-191-13/+6
| | | | | Don't fallback to utf-8 anymore to avoid mojibake. I never got any error from his function.
* make hashes always the size of pointers; introduce Py_hash_t #9778Benjamin Peterson2010-10-173-4/+4
|
* compiler_error(): use PyUnicode_DecodeFSDefault() to decode the filename,Victor Stinner2010-10-171-2/+11
| | | | instead of utf-8 in strict mode.
* PyErr_SyntaxLocationEx() uses PyUnicode_DecodeFSDefault(), instead ofVictor Stinner2010-10-171-1/+1
| | | | PyUnicode_FromString(), to decode the filename.
* find_module(): use FS encoding to display the missing __init__ warningVictor Stinner2010-10-171-7/+9
|
* _PyImport_FixupExtension() and _PyImport_FindExtension() uses FS encodingVictor Stinner2010-10-173-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
* Add an optional size argument to _Py_char2wchar()Victor Stinner2010-10-161-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.
* _Py_wrealpath() uses _Py_char2wchar() to decode the result, to supportVictor Stinner2010-10-161-2/+12
| | | | surrogate characters.
* _Py_wreadlink(): catch _Py_char2wchar() failureVictor Stinner2010-10-161-0/+4
|
* _Py_wreadlink() uses _Py_char2wchar() to decode the result, to supportVictor Stinner2010-10-161-2/+7
| | | | surrogate characters.
* Fix ast_error_finish() and err_input(): filename can be NULLVictor Stinner2010-10-162-2/+12
| | | | Fix my previous commit (r85569).
* Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expectsVictor Stinner2010-10-165-26/+63
| | | | | filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode.
* don't identify the toplevel namespace by name #9997Benjamin Peterson2010-10-161-1/+1
|
* fix refleakBenjamin Peterson2010-10-161-4/+6
|
* First (uncontroversial) part of issue 9807.Barry Warsaw2010-10-161-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.
* Fix imp_cache_from_source(): Decode make_compiled_pathname() result from theVictor Stinner2010-10-151-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().
* imp_load_module() uses PyUnicode_FSConverter() to support surrogates in moduleVictor Stinner2010-10-151-7/+7
| | | | path