summaryrefslogtreecommitdiff
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23722: improve __classcell__ compatibilityNick Coghlan2016-12-053-1184/+1218
| | | | | | | | | | | | | | | | | | | | | Handling zero-argument super() in __init_subclass__ and __set_name__ involved moving __class__ initialisation to type.__new__. This requires cooperation from custom metaclasses to ensure that the new __classcell__ entry is passed along appropriately. The initial implementation of that change resulted in abruptly broken zero-argument super() support in metaclasses that didn't adhere to the new requirements (such as Django's metaclass for Model definitions). The updated approach adopted here instead emits a deprecation warning for those cases, and makes them work the same way they did in Python 3.5. This patch also improves the related class machinery documentation to cover these details and to include more reader-friendly cross-references and index entries.
* Fix _PyGen_yf()Victor Stinner2016-11-241-0/+1
| | | | | | | | Issue #28782: Fix a bug in the implementation ``yield from`` when checking if the next instruction is YIELD_FROM. Regression introduced by WORDCODE (issue #26647). Reviewed by Serhiy Storchaka and Yury Selivanov.
* Issue #27100: Fix ref leakRaymond Hettinger2016-11-221-1/+3
|
* Issue #27100: With statement reports missing __enter__ before __exit__. ↵Raymond Hettinger2016-11-211-4/+4
| | | | (Contributed by Jonathan Ellington.)
* Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka2016-11-207-16/+16
| | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
* Issue #28715: Added error checks for PyUnicode_AsUTF8().Serhiy Storchaka2016-11-202-3/+9
|\
| * Issue #28715: Added error checks for PyUnicode_AsUTF8().Serhiy Storchaka2016-11-202-3/+9
| |
* | Issue #28746: Fix the set_inheritable() file descriptor method on platformsXavier de Gaye2016-11-191-1/+1
| | | | | | | | that do not have the ioctl FIOCLEX and FIONCLEX commands
* | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.Serhiy Storchaka2016-11-1644-8725/+11850
|\ \ | |/ |/| | | | | | | The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang.
| * Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-167-33/+27
| |\ | | | | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
| * | Issue #26920: Fix not getting the locale's charset upon initializing the ↵Xavier de Gaye2016-11-161-1/+1
| | | | | | | | | | | | | | | | | | interpreter, on platforms that do not have langinfo
| * | Fix warn_invalid_escape_sequence()Victor Stinner2016-11-151-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | Issue #28691: Fix warn_invalid_escape_sequence(): handle correctly DeprecationWarning raised as an exception. First clear the current exception to replace the DeprecationWarning exception with a SyntaxError exception. Unit test written by Serhiy Storchaka.
| * | Issue #28676: merge from 3.5Ned Deily2016-11-121-2/+3
| |\ \
| * | | Issue #28665: Harmonize STORE_DEREF with STORE_FAST and LOAD_DEREF giving a ↵Raymond Hettinger2016-11-111-2/+3
| | | | | | | | | | | | | | | | 40% speedup.
| * | | Issue #26182: Fix ia refleak in code that raises DeprecationWarning.Yury Selivanov2016-11-081-3/+5
| | | |
| * | | Fixed possible abort in ceval loop if _PyUnicode_FromId() fails.Serhiy Storchaka2016-11-081-2/+2
| |\ \ \ | | | | | | | | | | | | | | | Every opcode should end with DISPATCH() or goto error.
| * | | | Issue #27243: Change PendingDeprecationWarning -> DeprecationWarning.Yury Selivanov2016-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As it was agreed in the issue, __aiter__ returning an awaitable should result in PendingDeprecationWarning in 3.5 and in DeprecationWarning in 3.6.
| * | | | Fixed issue #28633: segfault when concatenating bytes literal and f-string.Eric V. Smith2016-11-071-4/+5
| | | | |
| * | | | Issue #28616: merge from 3.5Ned Deily2016-11-041-1/+1
| |\ \ \ \
| * | | | | Issue 28128: Print out better error/warning messages for invalid string ↵Eric V. Smith2016-10-311-5/+61
| | | | | | | | | | | | | | | | | | | | | | | | escapes. Backport to 3.6.
| * | | | | Issue #28517: Fixed of-by-one error in the peephole optimizer that causedSerhiy Storchaka2016-10-253-3109/+3106
| | | | | | | | | | | | | | | | | | | | | | | | keeping unreachable code.
| * | | | | Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raisingSerhiy Storchaka2016-10-211-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new exception with setting current exception as __cause__. _PyErr_FormatFromCause(exception, format, args...) is equivalent to Python raise exception(format % args) from sys.exc_info()[1]
| * | | | | Issue #28410: Keep the traceback of original exception in ↵Serhiy Storchaka2016-10-2144-8768/+11789
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | _PyErr_ChainExceptions().
| | * | | | | mark dtrace stubs as static inline; remove stubsBenjamin Peterson2016-10-201-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C99 inline semantics don't work everywhere. (https://bugs.python.org/issue28092) We don't want these to have external visibility anyway.
| | * | | | | Issue #23782: Fixed possible memory leak in _PyTraceback_Add() and exceptionSerhiy Storchaka2016-10-181-20/+26
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | loss in PyTraceBack_Here().
| | * \ \ \ \ \ Issue #24098: Fixed possible crash when AST is changed in process ofSerhiy Storchaka2016-10-0745-8755/+11813
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | compiling it.
| | | * | | | | | Issue #27358: Fix typo in error messageBerker Peksag2016-10-021-1/+1
| | | | | | | | |
| | | * | | | | | Issue #27358: Optimized merging var-keyword arguments and improved errorSerhiy Storchaka2016-10-021-44/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | message when pass a non-mapping as a var-keyword argument.
| | | * | | | | | Issue #28257: Improved error message when pass a non-iterable asSerhiy Storchaka2016-10-024-110/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
| | | * | | | | | Issue #27942: String constants now interned recursively in tuples and ↵Serhiy Storchaka2016-09-3045-8715/+11748
| | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | frozensets.
| | | | * | | | | | Issue #28148: Stop using localtime() and gmtime() in the time module.Alexander Belopolsky2016-09-281-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced platform independent _PyTime_localtime API that is similar to POSIX localtime_r, but available on all platforms. Patch by Ed Schouten.
| | | | * | | | | | Issue #28100: Refactor error messages, patch by Ivan LevkivskyiChristian Heimes2016-09-231-12/+8
| | | | | | | | | |
| | | | * | | | | | Issue #28086: Single var-positional argument of tuple subtype was passedSerhiy Storchaka2016-09-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unscathed to the C-defined function. Now it is converted to exact tuple.
| | | | * | | | | | va_end() all va_copy()ed va_lists.Christian Heimes2016-09-212-7/+21
| | | | | | | | | |
| | | | * | | | | | replace usage of Py_VA_COPY with the (C99) standard va_copyBenjamin Peterson2016-09-202-7/+7
| | | | | | | | | |
| | | | * | | | | | (Merge 3.5) Catch EPERM error in py_getrandom()Victor Stinner2016-09-2045-8726/+11700
| | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #27955: Fallback on reading /dev/urandom device when the getrandom() syscall fails with EPERM, for example when blocked by SECCOMP.
| | | | | * | | | | | delete dead codeBenjamin Peterson2016-09-181-3/+0
| | | | | | | | | | |
| | | | | * | | | | | Issue #27932: Prevent memory leak in win32_ver().Steve Dower2016-09-171-4/+42
| | | | | | | | | | |
| | | | | * | | | | | Issue #26182: Raise DeprecationWarning for improper use of async/await keywordsYury Selivanov2016-09-151-0/+20
| | | | | | | | | | |
| | | | | * | | | | | merge 3.5 (#28119)Benjamin Peterson2016-09-1345-8719/+11698
| | | | | |\ \ \ \ \ \
| | | | | | * | | | | | Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵Christian Heimes2016-09-132-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | optimize memcpy().
| | | | | | * | | | | | Document kwnames in _PyObject_FastCallKeywords() and _PyStack_AsDict()Victor Stinner2016-09-121-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #27213.
| | | | | | * | | | | | Issue #27213: Fix reference leaksVictor Stinner2016-09-121-0/+2
| | | | | | | | | | | |
| | | | | | * | | | | | Make an f-string error message more exact and consistent.Eric V. Smith2016-09-111-1/+1
| | | | | | | | | | | |
| | | | | | * | | | | | Issue #27213: Fixed different issues with reworked CALL_FUNCTION* opcodes.Serhiy Storchaka2016-09-124-3437/+3409
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * BUILD_TUPLE_UNPACK and BUILD_MAP_UNPACK_WITH_CALL no longer generated with single tuple or dict. * Restored more informative error messages for incorrect var-positional and var-keyword arguments. * Removed code duplications in _PyEval_EvalCodeWithName(). * Removed redundant runtime checks and parameters in _PyStack_AsDict(). * Added a workaround and enabled previously disabled test in test_traceback. * Removed dead code from the dis module.
| | | | | | * | | | | | Issue #28076: Variable annotations should be mangled for private names.Guido van Rossum2016-09-111-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By Ivan Levkivskyi.
| | | | | | * | | | | | Fixed refactoring bug in dd046963bd42 (issue27129).Serhiy Storchaka2016-09-111-1/+1
| | | | | | | | | | | |
| | | | | | * | | | | | Issue #27129: Replaced wordcode related magic constants with macros.Serhiy Storchaka2016-09-114-154/+159
| | | | | | | | | | | |
| | | | | | * | | | | | Issue #23722: Initialize __class__ from type.__new__()Nick Coghlan2016-09-113-1253/+1257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The __class__ cell used by zero-argument super() is now initialized from type.__new__ rather than __build_class__, so class methods relying on that will now work correctly when called from metaclass methods during class creation. Patch by Martin Teichmann.
| | | | | | * | | | | | Backed out changeset 3934e070c9dbBenjamin Peterson2016-09-101-2/+1
| | | | | | | | | | | |