Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use Py_ssize_t type for sizes in getargs.c | Victor Stinner | 2013-11-18 | 1 | -7/+18 |
| | | | | Fix compiler warnings on Windows 64-bit | ||||
* | Fix compiler warning (on Windows 64-bit): explicit cast Py_ssize_t to unsigned | Victor Stinner | 2013-11-16 | 1 | -2/+2 |
| | | | | char, n is in range [0; 255] (a tuple cannot have a negative length) | ||||
* | Fix compiler warning in win32_urandom(): explicit cast to DWORD in | Victor Stinner | 2013-11-15 | 1 | -1/+1 |
| | | | | CryptGenRandom() | ||||
* | (Merge 3.3) fileutils.c: use MAXPATHLEN instead of PATH_MAX | Victor Stinner | 2013-11-15 | 1 | -6/+6 |
|\ | | | | | | | PATH_MAX is not declared on IRIX nor Windows. | ||||
| * | fileutils.c: use MAXPATHLEN instead of PATH_MAX | Victor Stinner | 2013-11-15 | 1 | -6/+6 |
| | | | | | | | | PATH_MAX is not declared on IRIX nor Windows. | ||||
* | | (Merge 3.3) sysmodule.c: fix sys_update_path(), use Py_ARRAY_LENGTH() to get | Victor Stinner | 2013-11-15 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | the size of the fullpath buffer, not PATH_MAX. fullpath is declared using MAXPATHLEN or MAX_PATH depending on the OS, and PATH_MAX is not declared on IRIX. | ||||
| * | sysmodule.c: fix sys_update_path(), use Py_ARRAY_LENGTH() to get the size of | Victor Stinner | 2013-11-15 | 1 | -1/+1 |
| | | | | | | | | | | the fullpath buffer, not PATH_MAX. fullpath is declared using MAXPATHLEN or MAX_PATH depending on the OS, and PATH_MAX is not declared on IRIX. | ||||
* | | (Merge 3.3) pythonrun.c: fix Py_GetPythonHome(), use Py_ARRAY_LENGTH() to get | Victor Stinner | 2013-11-15 | 1 | -2/+3 |
|\ \ | |/ | | | | | | | the size of the env_home buffer, not PATH_MAX+1. env_home is declared using MAXPATHLEN+1, and PATH_MAX is not declared on IRIX. | ||||
| * | pythonrun.c: fix Py_GetPythonHome(), use Py_ARRAY_LENGTH() to get the size of | Victor Stinner | 2013-11-15 | 1 | -2/+3 |
| | | | | | | | | | | the env_home buffer, not PATH_MAX+1. env_home is declared using MAXPATHLEN+1, and PATH_MAX is not declared on IRIX. | ||||
* | | Close 19609: narrow scope of codec exc chaining | Nick Coghlan | 2013-11-15 | 1 | -4/+6 |
| | | |||||
* | | Issue #19437: Fix init_builtin(), handle _PyImport_FindExtensionObject() | Victor Stinner | 2013-11-14 | 1 | -1/+5 |
| | | | | | | | | failure | ||||
* | | Add unused third arg for the benefit of Valgrind. | Stefan Krah | 2013-11-14 | 1 | -1/+1 |
| | | |||||
* | | Issue #19437: Fix fold_unaryops_on_constants() of the peephole optimizer, clear | Victor Stinner | 2013-11-14 | 1 | -0/+1 |
| | | | | | | | | the exception when PyList_Append() fails | ||||
* | | Close #17828: better handling of codec errors | Nick Coghlan | 2013-11-13 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | | - output type errors now redirect users to the type-neutral convenience functions in the codecs module - stateless errors that occur during encoding and decoding will now be automatically wrapped in exceptions that give the name of the codec involved | ||||
* | | Issue #19437: Fix PyImport_ImportModuleLevelObject(), handle | Victor Stinner | 2013-11-13 | 1 | -0/+4 |
| | | | | | | | | PyUnicode_Substring() failure (ex: MemoryError) | ||||
* | | Issue #19515: Remove identifiers duplicated in the same file. | Victor Stinner | 2013-11-12 | 1 | -4/+2 |
| | | | | | | | | Patch written by Andrei Dorian Duma. | ||||
* | | Issue #19466: Fix typo. Patch written by Vajrasky Kok. | Victor Stinner | 2013-11-12 | 1 | -1/+1 |
| | | |||||
* | | Close #19466: Clear the frames of daemon threads earlier during the Python | Victor Stinner | 2013-11-12 | 1 | -5/+15 |
| | | | | | | | | | | shutdown to call objects destructors. So "unclosed file" resource warnings are now corretly emitted for daemon threads. | ||||
* | | Issue #19512, #19515: remove shared identifiers, move identifiers where they | Victor Stinner | 2013-11-07 | 7 | -62/+68 |
| | | | | | | | | | | | | | | are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file. | ||||
* | | print_error_text() doesn't encode the filename anymore | Victor Stinner | 2013-11-07 | 1 | -27/+35 |
| | | | | | | | | | | | | Use aslo PyUnicode_FromFormat() to format the line so only one call to PyFile_WriteObject() is needed. tb_displayline() of Python/traceback.c has similar implementation. | ||||
* | | remove an outdated comment | Victor Stinner | 2013-11-07 | 1 | -1/+0 |
| | | | | | | | | The comment is meaningless since changeset 4e985a96a612. | ||||
* | | Issue #19512: Use the new _PyId_builtins identifier | Victor Stinner | 2013-11-07 | 1 | -1/+1 |
| | | |||||
* | | Issue #19512: add _PyUnicode_CompareWithId() function | Victor Stinner | 2013-11-07 | 2 | -2/+3 |
| | | | | | | | | | | | | | | _PyUnicode_CompareWithId() is faster than PyUnicode_CompareWithASCIIString() when both strings are equal and interned. Add also _PyId_builtins identifier for "builtins" common string. | ||||
* | | print_exception(): don't encode the module name to UTF-8 | Victor Stinner | 2013-11-07 | 1 | -3/+2 |
| | | | | | | | | Replace _PyUnicode_AsString()+strcmp() with PyUnicode_CompareWithASCIIString(). | ||||
* | | Issue #19512: builtin print() function uses an identifier instead of literal | Victor Stinner | 2013-11-07 | 1 | -1/+2 |
| | | | | | | | | string "flush" to call the flush method | ||||
* | | Issue #19512: __build_class() builtin now uses an identifier for the ↵ | Victor Stinner | 2013-11-06 | 1 | -2/+3 |
| | | | | | | | | "metaclass" string | ||||
* | | Issue #19512: add some common identifiers to only create common strings once, | Victor Stinner | 2013-11-06 | 6 | -41/+56 |
| | | | | | | | | | | | | | | instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter. | ||||
* | | Issue #19512: PRINT_EXPR bytecode now uses an identifier to get sys.displayhook | Victor Stinner | 2013-11-06 | 1 | -1/+2 |
| | | | | | | | | to only create the "displayhook" string once | ||||
* | | Issue #19512: Add _PySys_GetObjectId() and _PySys_SetObjectId() functions | Victor Stinner | 2013-11-06 | 1 | -0/+25 |
| | | |||||
* | | Issue #19512: eval() and exec() now use an identifier for "__builtins__" string | Victor Stinner | 2013-11-06 | 1 | -6/+7 |
| | | |||||
* | | Issue #19512: Add PyRun_InteractiveOneObject() function | Victor Stinner | 2013-11-06 | 1 | -29/+82 |
| | | | | | | | | | | Only decode the filename once. PyRun_InteractiveOneObject() uses an identifier for "<string>" string, so the byte string is only decoded once. | ||||
* | | Issue #19512: _print_total_refs() now uses an identifier to get "showrefcount" | Victor Stinner | 2013-11-06 | 1 | -6/+4 |
| | | | | | | | | key from sys._xoptions | ||||
* | | Issue #19512: sys_displayhook() now uses an identifier for "builtins" | Victor Stinner | 2013-11-06 | 1 | -2/+10 |
| | | | | | | | | | | | | dictionary key and only decodes "\n" string once to write a newline. So "builtins" and "\n" are only decoded once from UTF-8, at the first call. | ||||
* | | Issue #19437: Fix compiler_class(), handle compiler_lookup_arg() failure | Victor Stinner | 2013-11-05 | 1 | -0/+4 |
| | | |||||
* | | Abstract out stat calls in importlib for easier experimentation. | Brett Cannon | 2013-11-01 | 1 | -2733/+2747 |
| | | |||||
* | | Issue #19410: Put back in special-casing of '' for | Brett Cannon | 2013-11-01 | 1 | -793/+793 |
| | | | | | | | | | | | | | | | | | | importlib.machinery.FileFinder. While originally moved to stop special-casing '' as PathFinder farther up the typical call chain now uses the cwd in the instance of '', it was deemed an unnecessary risk to breaking subclasses of FileFinder to take the special-casing out. | ||||
* | | Issue #19413: Restore pre-3.3 reload() semantics of re-finding modules. | Eric Snow | 2013-10-31 | 1 | -503/+508 |
| | | |||||
* | | Close #19442: warn_explicit() does nothing when called late during Python ↵ | Victor Stinner | 2013-11-01 | 1 | -9/+9 |
| | | | | | | | | | | | | shutdown After more tests, I now think that it is the safest option. | ||||
* | | Issue #19437: Cleanup r_ref() of the marshal module | Victor Stinner | 2013-10-31 | 1 | -5/+6 |
| | | |||||
* | | Issue #19437: Fix r_object() of marshal module, handle PyDict_SetItem() failure | Victor Stinner | 2013-10-31 | 1 | -3/+12 |
| | | | | | | | | for TYPE_DICT and stop immedialty on first r_object() failure | ||||
* | | Issue #19437: Fix r_object() of marshal module, handle r_byte() failure for | Victor Stinner | 2013-10-31 | 1 | -0/+2 |
| | | | | | | | | TYPE_SMALL_TUPLE | ||||
* | | Issue #19437: Fix r_PyLong() of marshal module, stop immediatly at first | Victor Stinner | 2013-10-31 | 1 | -4/+11 |
| | | | | | | | | failure, don't read any more data | ||||
* | | Issue #19437: Fix show_warning() of _warnings, stop at the first error to not | Victor Stinner | 2013-10-31 | 1 | -10/+16 |
| | | | | | | | | call a Python function with an exception set | ||||
* | | Issue #19437: Fix get_filter() from _warnings, don't call PyObject_IsSubclass() | Victor Stinner | 2013-10-31 | 1 | -2/+10 |
| | | | | | | | | with an exception set | ||||
* | | merge 3.3 | Benjamin Peterson | 2013-10-31 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | make string literal const | Benjamin Peterson | 2013-10-31 | 1 | -1/+1 |
| | | |||||
* | | merge 3.3 | Benjamin Peterson | 2013-10-29 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | update comment | Benjamin Peterson | 2013-10-29 | 1 | -3/+3 |
| | | |||||
* | | Issue #19442: Fix warnings emitted during Python shutdown | Victor Stinner | 2013-10-30 | 1 | -5/+12 |
| | | | | | | | | | | Warnings may be emitted during Python shutdown, like "unclosed file XXX". During shutdown, globals()['__main__'] may be None. | ||||
* | | Issue #19424: Fix the warnings module to accept filename containing surrogate | Victor Stinner | 2013-10-29 | 1 | -47/+55 |
| | | | | | | | | characters. |