summaryrefslogtreecommitdiff
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19927: Add __eq__ to path-based loaders in importlib.Eric Snow2014-01-041-619/+659
|
* Issue #20097: Fix bad use of "self" in importlib's WindowsRegistryFinder.Eric Snow2014-01-021-1860/+1860
|
* merge 3.3Benjamin Peterson2013-12-311-1/+1
|\
| * update copyright yearBenjamin Peterson2013-12-311-1/+1
| |
* | Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-213-78/+4
| |
* | Fix the C definition of the sys._debugmallocstats() function: the function hasVictor Stinner2013-12-191-1/+1
| | | | | | | | no parameter
* | Fix _Py_DisplaySourceLine(), if PyTokenizer_FindEncodingFilename() fails, clearVictor Stinner2013-12-191-0/+2
| | | | | | | | the exception to not call open() with an exception set.
* | Remove some dead code in importlib, introduced with the PEP 451 patch.Eric Snow2013-12-181-986/+980
| | | | | | | | | | | | | | Early in the PEP 451 implementation some of the importlib loaders had their own _get_spec() methods to simplify accommodating them. However, later implementations removed the need. They simply failed to remove this code at the same time. :)
* | Issue #16404: Add checks for return value of PyLong_FromLong() inSerhiy Storchaka2013-12-171-0/+4
|\ \ | |/ | | | | | | sys.getwindowsversion() and ossaudiodev.setparameters(). Reported by Ned Batchelder.
| * Issue #16404: Add checks for return value of PyLong_FromLong() inSerhiy Storchaka2013-12-171-0/+4
| | | | | | | | | | sys.getwindowsversion() and ossaudiodev.setparameters(). Reported by Ned Batchelder.
* | Fixed leak in sys.flags initialization.Serhiy Storchaka2013-12-171-0/+1
|\ \ | |/
| * Fixed leak in sys.flags initialization.Serhiy Storchaka2013-12-171-0/+1
| |
* | Issue #19787: PyThread_set_key_value() now always set the valueVictor Stinner2013-12-134-33/+17
| | | | | | | | | | | | | | | | | | | | In Python 3.3, PyThread_set_key_value() did nothing if the key already exists (if the current value is a non-NULL pointer). When _PyGILState_NoteThreadState() is called twice on the same thread with a different Python thread state, it still keeps the old Python thread state to keep the old behaviour. Replacing the Python thread state with the new state introduces new bugs: see issues #10915 and #15751.
* | Backout changeset 46393019b650Victor Stinner2013-12-133-8/+24
| | | | | | | | test_capi is failing and the fix is not trivial, I prefer to revert
* | Close #19787: PyThread_set_key_value() now always set the value. In Python 3.3,Victor Stinner2013-12-133-24/+8
| | | | | | | | | | | | | | | | the function did nothing if the key already exists (if the current value is a non-NULL pointer). _testcapi.run_in_subinterp() now correctly sets the new Python thread state of the current thread when a subinterpreter is created.
* | Issue #14432: Remove the thread state field from the frame structure. Fix aVictor Stinner2013-12-132-42/+45
| | | | | | | | | | | | | | crash when a generator is created in a C thread that is destroyed while the generator is still used. The issue was that a generator contains a frame, and the frame kept a reference to the Python state of the destroyed C thread. The crash occurs when a trace function is setup.
* | Close #19576: PyGILState_Ensure() now initializes threads. At startup, PythonVictor Stinner2013-12-131-0/+5
| | | | | | | | | | | | has no concrete GIL. If PyGILState_Ensure() is called from a new thread for the first time and PyEval_InitThreads() was not called yet, a GIL needs to be created.
* | Issue #18864: Add a setter for ModuleSpec.has_location.Eric Snow2013-12-101-2909/+2918
| |
* | Issue #19817: Fix print_exception(), clear the exception on errorVictor Stinner2013-12-091-3/+5
| |
* | merge 3.3 (#19910)Benjamin Peterson2013-12-061-1/+1
|\ \ | |/
| * document that compile() can take bytes (closes #19910)Benjamin Peterson2013-12-061-1/+1
| |
* | upcast int to size_t to silence two ↵Christian Heimes2013-12-041-1/+1
| | | | | | | | autological-constant-out-of-range-compare warnings with clang.
* | Closes #19831: Stop tracemalloc later at Python shutdown to be able to useVictor Stinner2013-12-011-0/+5
| | | | | | | | | | | | tracemalloc in objects destructor Replace atexit handler with an harcoded C function _PyTraceMalloc_Fini().
* | Issue #19698: Remove exec_module() from the built-in and extensionBrett Cannon2013-11-291-4160/+4195
| | | | | | | | | | | | | | | | | | | | | | | | | | module loaders. Due to the fact that the call signatures for extension modules and built-in modules does not allow for the specifying of what module to initialize and that on Windows all extension modules are built-in modules, work to clean up built-in and extension module initialization will have to wait until Python 3.5. Because of this the semantics of exec_module() would be incorrect, so removing the methods for now is the best option; load_module() is still used as a fallback by importlib and so this won't affect semantics.
* | Issue #19638: Merge from 3.3Mark Dickinson2013-11-261-12/+43
|\ \ | |/
| * Issue #19638: Raise ValueError instead of crashing when converting billion ↵Mark Dickinson2013-11-261-12/+43
| | | | | | | | character strings to float.
* | Issue #3158: doctest can now find doctests in functions and methodsZachary Ware2013-11-241-3/+15
| | | | | | | | | | | | | | | | written in C. As a part of this, a few doctests have been added to the builtins module (on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all platforms) on float, and test_builtins now runs doctests in builtins.
* | Issue #19722: Added opcode.stack_effect(), which accuratelyLarry Hastings2013-11-231-8/+12
| | | | | | | | computes the stack effect of bytecode instructions.
* | Fix refleak introduced by 4f730c045f5f (issue #18408) and unveiled by ↵Antoine Pitrou2013-11-231-8/+4
| | | | | | | | 95eea8624d05 (issue #16596).
* | Issue #18874: Implement the PEP 454 (tracemalloc)Victor Stinner2013-11-231-0/+4
| |
* | User the repr for a module name in more placesBrett Cannon2013-11-221-3282/+3283
| |
* | Remove a commented-out lineBrett Cannon2013-11-221-125/+125
| |
* | Don't assume trying to find a builtin will succeed (e.g. posix isn't on Windows)Brett Cannon2013-11-221-194/+198
| |
* | Implement PEP 451 (ModuleSpec).Eric Snow2013-11-222-3327/+4094
| |
* | Issue #19619: Blacklist non-text codecs in method APINick Coghlan2013-11-221-16/+122
| | | | | | | | | | | | | | | | | | | | str.encode, bytes.decode and bytearray.decode now use an internal API to throw LookupError for known non-text encodings, rather than attempting the encoding or decoding operation and then throwing a TypeError for an unexpected output type. The latter mechanism remains in place for third party non-text encodings.
* | Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier ↵Guido van Rossum2013-11-211-0/+5
| | | | | | | | de Gaye.
* | Issue #19183: too many tests depend on the sort order of repr().Christian Heimes2013-11-201-3/+0
| | | | | | | | The bitshift and xor op for 32bit builds has changed the order of hash values.
* | ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.Christian Heimes2013-11-204-8/+458
| | | | | | | | Python now uses SipHash24 on all major platforms.
* | Issue #9566, #19617: Fix more compiler warnings in compile.c on Windows 64-bitVictor Stinner2013-11-191-10/+13
| |
* | Issue #9566, #19617: New try to fix compilation on WindowsVictor Stinner2013-11-191-1/+1
| | | | | | | | | | Some compilers (ex: Visual Studio) decode -2147483648 as a unsigned integer instead of an signed integer.
* | Issue #9566, #19617: Fix compilation on WindowsVictor Stinner2013-11-191-2/+2
| | | | | | | | INT32_MIN and INT32_MAX constants are unknown on Windows.
* | Issue #9566: compile.c uses Py_ssize_t instead of int to store sizes to fixVictor Stinner2013-11-191-48/+68
| | | | | | | | | | | | | | compiler warnings on Windows 64-bit. Use Py_SAFE_DOWNCAST() where the final downcast is needed. The bytecode doesn't support integer parameters larger than 32-bit yet.
* | Add _PyUnicodeWriter_WriteASCIIString() functionVictor Stinner2013-11-191-9/+9
| |
* | Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates.Serhiy Storchaka2013-11-191-17/+146
| | | | | | | | | | | | | | | | | | | | The utf-16* and utf-32* encoders no longer allow surrogate code points (U+D800-U+DFFF) to be encoded. The utf-32* decoders no longer decode byte sequences that correspond to surrogate code points. The surrogatepass error handler now works with the utf-16* and utf-32* codecs. Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
* | PY_FORMAT_SIZE_T should not be used with PyErr_Format(), PyErr_Format("%zd") isVictor Stinner2013-11-181-2/+1
| | | | | | | | portable
* | Use Py_ssize_t type for sizes in getargs.cVictor Stinner2013-11-181-7/+18
| | | | | | | | Fix compiler warnings on Windows 64-bit
* | Fix compiler warning (on Windows 64-bit): explicit cast Py_ssize_t to unsignedVictor Stinner2013-11-161-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 inVictor Stinner2013-11-151-1/+1
| | | | | | | | CryptGenRandom()
* | (Merge 3.3) fileutils.c: use MAXPATHLEN instead of PATH_MAXVictor Stinner2013-11-151-6/+6
|\ \ | |/ | | | | PATH_MAX is not declared on IRIX nor Windows.
| * fileutils.c: use MAXPATHLEN instead of PATH_MAXVictor Stinner2013-11-151-6/+6
| | | | | | | | PATH_MAX is not declared on IRIX nor Windows.