Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix the GIL with subinterpreters. Hopefully this will allow mod_wsgi to work ↵ | Antoine Pitrou | 2011-01-15 | 1 | -4/+7 |
| | | | | | | with 3.2. (we need some tests for this) | ||||
* | Issue #10655: Fix the build on PowerPC on Linux with GCC when building with | David Malcolm | 2011-01-06 | 1 | -4/+5 |
| | | | | | | timestamp profiling (--with-tsc): the preprocessor test for the PowerPC support now looks for "__powerpc__" as well as "__ppc__": the latter seems to only be present on OS X; the former is the correct one for Linux with GCC. | ||||
* | Fix count of flag fields. Being one short caused the 'quiet' option not to ↵ | Raymond Hettinger | 2011-01-05 | 1 | -2/+2 |
| | | | | print. | ||||
* | Issue #9566: use Py_ssize_t instead of int | Victor Stinner | 2011-01-04 | 1 | -1/+2 |
| | |||||
* | Issue #8992: convertsimple() doesn't need to fill msgbuf if an error occurred | Victor Stinner | 2011-01-04 | 1 | -38/+41 |
| | | | | Return msgbug on error is enough. | ||||
* | Issue #8992: Simplify addcleanup() API | Victor Stinner | 2011-01-04 | 1 | -13/+15 |
| | | | | Don't need to handle unknown destructor anymore. | ||||
* | Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file | Victor Stinner | 2011-01-04 | 1 | -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). | ||||
* | update copyright to 2011 | Benjamin Peterson | 2011-01-01 | 1 | -1/+1 |
| | |||||
* | Add sys.flags.quiet attribute for the new -q option, as noted missing by ↵ | Georg Brandl | 2010-12-28 | 2 | -1/+4 |
| | | | | Eric in #1772833. | ||||
* | Issue #10780: PyErr_SetFromWindowsErrWithFilename() and | Victor Stinner | 2010-12-28 | 1 | -2/+2 |
| | | | | | PyErr_SetExcFromWindowsErrWithFilename() decode the filename from the filesystem encoding instead of UTF-8. | ||||
* | Issue #10779: PyErr_WarnExplicit() decodes the filename from the filesystem | Victor Stinner | 2010-12-27 | 1 | -1/+1 |
| | | | | encoding instead of UTF-8. | ||||
* | Issue #8844: Regular and recursive lock acquisitions can now be interrupted | Antoine Pitrou | 2010-12-15 | 2 | -50/+81 |
| | | | | by signals on platforms using pthreads. Patch by Reid Kleckner. | ||||
* | Issue #10601: sys.displayhook uses 'backslashreplace' error handler on | Victor Stinner | 2010-12-04 | 1 | -2/+76 |
| | | | | UnicodeEncodeError. | ||||
* | Add an "optimize" parameter to compile() to control the optimization level, ↵ | Georg Brandl | 2010-12-04 | 3 | -20/+47 |
| | | | | and provide an interface to it in py_compile, compileall and PyZipFile. | ||||
* | Merge branches/pep-0384. | Martin v. Löwis | 2010-12-03 | 6 | -9/+32 |
| | |||||
* | import: use PyUnicode_FSConverter to support bytes path and PEP 383 | Victor Stinner | 2010-12-03 | 1 | -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 Coghlan | 2010-12-02 | 1 | -2/+11 |
| | | | | (the wisdom of actually relying on this remains questionable!) | ||||
* | Remove redundant includes of headers that are already included by Python.h. | Georg Brandl | 2010-11-30 | 11 | -19/+0 |
| | |||||
* | Include structseq.h in Python.h, and remove now-redundant includes in ↵ | Georg Brandl | 2010-11-30 | 1 | -1/+0 |
| | | | | individual sources. | ||||
* | Issue #10518: Bring back the callable() builtin. | Antoine Pitrou | 2010-11-27 | 1 | -0/+15 |
| | | | | Approved by Guido (BDFL) and Georg (RM). | ||||
* | fix refleak | Benjamin Peterson | 2010-11-21 | 1 | -0/+5 |
| | |||||
* | Issue #10255: Fix reference leak in Py_InitializeEx(). Patch by Neil | Antoine Pitrou | 2010-11-20 | 1 | -0/+2 |
| | | | | Schemenauer. | ||||
* | new plan: functions that want 'tmp' can declare it | Benjamin Peterson | 2010-11-20 | 1 | -20/+5 |
| | |||||
* | c89 declarations | Benjamin Peterson | 2010-11-20 | 1 | -10/+10 |
| | |||||
* | use %R format code; fixes invalid dereferencing #10391 | Benjamin Peterson | 2010-11-20 | 1 | -50/+25 |
| | |||||
* | handle dict subclasses gracefully in PyArg_ValidateKeywordArguments | Benjamin Peterson | 2010-11-17 | 1 | -1/+1 |
| | |||||
* | Issue #10372: Import the warnings module only after the IO library is | Antoine Pitrou | 2010-11-10 | 1 | -7/+9 |
| | | | | initialized, so as to avoid bootstrap issues with the '-W' option. | ||||
* | Issue #10359: Remove ";" after function definition, invalid in ISO C | Victor Stinner | 2010-11-09 | 1 | -1/+1 |
| | |||||
* | _Py_char2wchar() frees the memory on conversion error | Victor Stinner | 2010-11-08 | 1 | -2/+7 |
| | | | | Explain in the documentation that conversion errors should never happen. | ||||
* | PyUnicode_EncodeFS() raises an exception if _Py_wchar2char() fails | Victor Stinner | 2010-11-08 | 1 | -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 Yamamoto | 2010-10-30 | 1 | -0/+3 |
| | |||||
* | decrement offset when it points to a newline (#10186 followup) | Benjamin Peterson | 2010-10-29 | 1 | -1/+3 |
| | |||||
* | Issue #5437: A preallocated MemoryError instance should not hold traceback | Antoine Pitrou | 2010-10-28 | 1 | -23/+1 |
| | | | | data (including local variables caught in the stack trace) alive infinitely. | ||||
* | sys_update_path(): update sys.path even if argc==0 | Victor Stinner | 2010-10-25 | 1 | -2/+0 |
| | |||||
* | Add a new warning gategory, ResourceWarning, as discussed on python-dev. It ↵ | Georg Brandl | 2010-10-24 | 2 | -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 loop | Benjamin Peterson | 2010-10-24 | 1 | -4/+1 |
| | |||||
* | remove broken code accounting an offset the size of the line #10186 | Benjamin Peterson | 2010-10-24 | 1 | -2/+0 |
| | |||||
* | follow up to #9778: define and use an unsigned hash type | Benjamin Peterson | 2010-10-23 | 1 | -1/+1 |
| | |||||
* | Issue #10089: Add support for arbitrary -X options on the command-line. | Antoine Pitrou | 2010-10-21 | 2 | -6/+60 |
| | | | | They can be retrieved through a new attribute `sys._xoptions`. | ||||
* | fix uninitialized struct member #10152 | Benjamin Peterson | 2010-10-20 | 1 | -0/+1 |
| | |||||
* | initfsencoding(): get_codeset() failure is now a fatal error | Victor Stinner | 2010-10-19 | 1 | -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 #9778 | Benjamin Peterson | 2010-10-17 | 3 | -4/+4 |
| | |||||
* | compiler_error(): use PyUnicode_DecodeFSDefault() to decode the filename, | Victor Stinner | 2010-10-17 | 1 | -2/+11 |
| | | | | instead of utf-8 in strict mode. | ||||
* | PyErr_SyntaxLocationEx() uses PyUnicode_DecodeFSDefault(), instead of | Victor Stinner | 2010-10-17 | 1 | -1/+1 |
| | | | | PyUnicode_FromString(), to decode the filename. | ||||
* | find_module(): use FS encoding to display the missing __init__ warning | Victor Stinner | 2010-10-17 | 1 | -7/+9 |
| | |||||
* | _PyImport_FixupExtension() and _PyImport_FindExtension() uses FS encoding | Victor Stinner | 2010-10-17 | 3 | -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 Stinner | 2010-10-16 | 1 | -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 support | Victor Stinner | 2010-10-16 | 1 | -2/+12 |
| | | | | surrogate characters. | ||||
* | _Py_wreadlink(): catch _Py_char2wchar() failure | Victor Stinner | 2010-10-16 | 1 | -0/+4 |
| | |||||
* | _Py_wreadlink() uses _Py_char2wchar() to decode the result, to support | Victor Stinner | 2010-10-16 | 1 | -2/+7 |
| | | | | surrogate characters. |