summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue #28410: Keep the traceback of original exception in ↵Serhiy Storchaka2016-10-211-1/+4
| | | | _PyErr_ChainExceptions().
* Issue #23782: Fixed possible memory leak in _PyTraceback_Add() and exceptionSerhiy Storchaka2016-10-181-20/+26
| | | | loss in PyTraceBack_Here().
* Issue #28257: Improved error message when pass a non-mapping as a var-keywordSerhiy Storchaka2016-10-071-4/+17
| | | | argument.
* Issue #24098: Fixed possible crash when AST is changed in process ofSerhiy Storchaka2016-10-071-0/+216
| | | | compiling it.
* Issue #27942: String constants now interned recursively in tuples and ↵Serhiy Storchaka2016-09-302-867/+865
| | | | frozensets.
* Silence GCC warning.Serhiy Storchaka2016-09-221-2/+2
| | | | The code was correct, but GCC is not enough clever.
* Catch EPERM error in py_getrandom()Victor Stinner2016-09-201-7/+8
| | | | | Issue #27955: Fallback on reading /dev/urandom device when the getrandom() syscall fails with EPERM, for example when blocked by SECCOMP.
* Cleanup random.cVictor Stinner2016-09-201-28/+53
| | | | | | | Issue #27955: modify py_getrnadom() and dev_urandom() * Add comments from Python 3.7 * PEP 7 style: add {...}
* Issue #27932: Prevent memory leak in win32_ver().Steve Dower2016-09-181-0/+37
|
* improve type-safe of and prevent double-frees in get_locale_info (#28119)Benjamin Peterson2016-09-141-17/+9
|
* Issue #26020: Fix evaluation order for set literalsRaymond Hettinger2016-09-081-2/+4
|
* Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-072-2/+2
|
* [backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".Senthil Kumaran2016-09-071-3/+4
|
* Issue 27936: Fix inconsistent round() behavior between float and intRaymond Hettinger2016-09-031-1/+1
|
* Issue #27909: Fix INCREF for possible NULL valueRaymond Hettinger2016-08-311-1/+1
|
* Issue 19504: Change "customise" to "customize" American spelling.Raymond Hettinger2016-08-261-2/+2
|
* Issue #27587: Move null pointer check earlier in _PyState_AddModule()Berker Peksag2016-08-221-2/+4
| | | | | | | | | This was found by PVS-Studio: V595 The 'def' pointer was utilized before it was verified against nullptr. Check lines: 286, 292. pystate.c 286 Initial patch by Christian Heimes.
* Fix SystemError in "raise" statementVictor Stinner2016-08-181-1/+1
| | | | | | | | Issue #27558: Fix a SystemError in the implementation of "raise" statement. In a brand new thread, raise a RuntimeError since there is no active exception to reraise. Patch written by Xiang Zhang.
* Fix spelling and grammar in documentation and code commentsMartin Panter2016-08-041-1/+1
|
* Issue #16191: Fix up references to renamed variablesMartin Panter2016-07-181-6/+6
|
* Issue #27419: Added temporary workaround for subinterpreters.Serhiy Storchaka2016-07-171-1/+4
|
* Issue #27419: Standard __import__() no longer look up "__import__" in globalsSerhiy Storchaka2016-07-171-8/+4
| | | | | or builtins for importing submodules or "from import". Fixed handling an error of non-string package name.
* Fix regressions introduced by fixes for issue #27083.Brett Cannon2016-07-161-2551/+2561
|
* make too many nested blocks be a SyntaxError instead of a SystemError ↵Benjamin Peterson2016-07-151-1/+1
| | | | | | (closes #27514) Patch by Ammar Askar.
* Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-074-150/+148
| | | | generated by Argument Clinic. Patch by Petr Viktorin.
* py_getrandom(): use long type for the syscall() resultVictor Stinner2016-06-161-2/+2
| | | | | | | Issue #27278. It should fix a conversion warning. In practice, the Linux kernel doesn't return more than 32 MB per call to the getrandom() syscall.
* Issue #27301: Fixed incorrect return codes for errors in compile.c.Serhiy Storchaka2016-06-151-16/+20
|
* cleanup random.cVictor Stinner2016-06-141-1/+1
| | | | Casting Py_ssize_t to Py_ssize_t is useless.
* Fix os.urandom() using getrandom() on LinuxVictor Stinner2016-06-141-1/+1
| | | | | | Issue #27278: Fix os.urandom() implementation using getrandom() on Linux. Truncate size to INT_MAX and loop until we collected enough random bytes, instead of casting a directly Py_ssize_t to int.
* Issue #27286: Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. CallingSerhiy Storchaka2016-06-122-105/+105
| | | | | function with generalized unpacking (PEP 448) and conflicting keyword names could cause undefined behavior.
* Fix typo and move comment to appropriate conditionMartin Panter2016-06-101-2/+2
|
* Issue #27243: Fix __aiter__ protocolYury Selivanov2016-06-091-2/+38
|
* os.urandom() doesn't block on Linux anymoreVictor Stinner2016-06-071-3/+21
| | | | | | Issue #26839: On Linux, os.urandom() now calls getrandom() with GRND_NONBLOCK to fall back on reading /dev/urandom if the urandom entropy pool is not initialized yet. Patch written by Colm Buckley.
* Fix typos in code comment and documentationMartin Panter2016-06-041-1/+1
|
* Issue #27138: Regenerate Python/importlib_external.h.Serhiy Storchaka2016-05-281-344/+343
|
* Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-264-157/+157
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue #26168: Fixed possible refleaks in failing Py_BuildValue() with the "N"Serhiy Storchaka2016-05-201-53/+70
| | | | format unit.
* Fix os.set_inheritable() on AndroidVictor Stinner2016-05-191-2/+7
| | | | | | | Issue #27057: Fix os.set_inheritable() on Android, ioctl() is blocked by SELinux and fails with EACCESS. The function now falls back to fcntl(). Patch written by Michał Bednarski.
* regen importlib bytecodeBenjamin Peterson2016-05-171-103/+103
|
* fix possible refleak in MAKE_FUNCTION (closes #26991)Benjamin Peterson2016-05-171-1/+3
| | | | Patch by Xiang Zhang.
* Corrections for a/an in code comments and documentationMartin Panter2016-05-081-2/+2
|
* Regenerate Argument Clinic code for issue #26874.Serhiy Storchaka2016-05-012-3/+3
|
* Issue #23960: Cleanup args and kwargs on error in PyErr_SetImportErrorBerker Peksag2016-05-011-3/+3
| | | | Patch by Ofer Schwarz.
* Issue #26874: Simplify the divmod docstringZachary Ware2016-04-281-1/+1
|
* Issue #26874: Fix divmod docstringZachary Ware2016-04-281-1/+1
|
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
|
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-2/+2
| | | | This affects documentation, code comments, and a debugging messages.
* Fix os.urandom() on Solaris 11.3Victor Stinner2016-04-121-5/+12
| | | | | | Issue #26735: Fix os.urandom() on Solaris 11.3 and newer when reading more than 1,024 bytes: call getrandom() multiple times with a limit of 1024 bytes per call.
* Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-103-5/+5
| | | | in places where Py_DECREF was used.
* Issue #25339: PYTHONIOENCODING now has priority over locale in setting theSerhiy Storchaka2016-04-101-10/+9
| | | | error handler for stdin and stdout.