summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26729: Fixed __text_signature__ for sorted().Serhiy Storchaka2017-01-231-1/+1
| | | | Patch by Erik Welch.
* Issue #29157: Prefer getrandom() over getentropy()Victor Stinner2017-01-091-200/+294
| | | | | | | | | | | Copy and then adapt Python/random.c from default branch. Difference between 3.5 and default branches: * Python 3.5 only uses getrandom() in non-blocking mode: flags=GRND_NONBLOCK * If getrandom() fails with EAGAIN: py_getrandom() immediately fails and remembers that getrandom() doesn't work. * Python 3.5 has no _PyOS_URandomNonblock() function: _PyOS_URandom() works in non-blocking mode on Python 3.5
* only include sys/random.h if it seems like it might have something useful ↵Benjamin Peterson2017-01-021-1/+1
| | | | (#29057)
* merge 3.4Benjamin Peterson2017-01-021-1/+1
|\
| * merge 3.3Benjamin Peterson2017-01-021-1/+1
| |\
| | * ring in 2017 for PythonBenjamin Peterson2017-01-021-1/+1
| | |
* | | add a specific configure check for sys/random.h (closes #28932)Benjamin Peterson2016-12-201-1/+1
| | |
* | | Issue #25677: Correct syntax error caret for indented blocks.Martin Panter2016-12-112-5/+2
| | | | | | | | | | | | Based on patch by Michael Layzell.
* | | Issue #28512: Fixed setting the offset attribute of SyntaxError bySerhiy Storchaka2016-12-111-8/+4
| | | | | | | | | | | | PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
* | | Issue #28715: Added error checks for PyUnicode_AsUTF8().Serhiy Storchaka2016-11-202-3/+9
| | |
* | | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.Serhiy Storchaka2016-11-162-2/+2
| | | | | | | | | | | | | | | | | | 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-31/+25
| | | | | | | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
* | | Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.Ned Deily2016-11-121-2/+3
| | | | | | | | | | | | Patch by Gareth Rees.
* | | Fixed possible abort in ceval loop if _PyUnicode_FromId() fails.Serhiy Storchaka2016-11-081-1/+1
| | | | | | | | | | | | Every opcode should end with DISPATCH() or goto error.
* | | Issue #28616: Correct help for sys.version_info releaselevel component.Ned Deily2016-11-041-1/+1
| | | | | | | | | | | | Patch by Anish Tambe.
* | | 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
| | |