Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #26729: Fixed __text_signature__ for sorted(). | Serhiy Storchaka | 2017-01-23 | 1 | -1/+1 |
| | | | | Patch by Erik Welch. | ||||
* | Issue #29157: Prefer getrandom() over getentropy() | Victor Stinner | 2017-01-09 | 1 | -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 Peterson | 2017-01-02 | 1 | -1/+1 |
| | | | | (#29057) | ||||
* | merge 3.4 | Benjamin Peterson | 2017-01-02 | 1 | -1/+1 |
|\ | |||||
| * | merge 3.3 | Benjamin Peterson | 2017-01-02 | 1 | -1/+1 |
| |\ | |||||
| | * | ring in 2017 for Python | Benjamin Peterson | 2017-01-02 | 1 | -1/+1 |
| | | | |||||
* | | | add a specific configure check for sys/random.h (closes #28932) | Benjamin Peterson | 2016-12-20 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #25677: Correct syntax error caret for indented blocks. | Martin Panter | 2016-12-11 | 2 | -5/+2 |
| | | | | | | | | | | | | Based on patch by Michael Layzell. | ||||
* | | | Issue #28512: Fixed setting the offset attribute of SyntaxError by | Serhiy Storchaka | 2016-12-11 | 1 | -8/+4 |
| | | | | | | | | | | | | PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject(). | ||||
* | | | Issue #28715: Added error checks for PyUnicode_AsUTF8(). | Serhiy Storchaka | 2016-11-20 | 2 | -3/+9 |
| | | | |||||
* | | | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId. | Serhiy Storchaka | 2016-11-16 | 2 | -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 Storchaka | 2016-11-16 | 7 | -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 Deily | 2016-11-12 | 1 | -2/+3 |
| | | | | | | | | | | | | Patch by Gareth Rees. | ||||
* | | | Fixed possible abort in ceval loop if _PyUnicode_FromId() fails. | Serhiy Storchaka | 2016-11-08 | 1 | -1/+1 |
| | | | | | | | | | | | | Every opcode should end with DISPATCH() or goto error. | ||||
* | | | Issue #28616: Correct help for sys.version_info releaselevel component. | Ned Deily | 2016-11-04 | 1 | -1/+1 |
| | | | | | | | | | | | | Patch by Anish Tambe. | ||||
* | | | Issue #28410: Keep the traceback of original exception in ↵ | Serhiy Storchaka | 2016-10-21 | 1 | -1/+4 |
| | | | | | | | | | | | | _PyErr_ChainExceptions(). | ||||
* | | | Issue #23782: Fixed possible memory leak in _PyTraceback_Add() and exception | Serhiy Storchaka | 2016-10-18 | 1 | -20/+26 |
| | | | | | | | | | | | | loss in PyTraceBack_Here(). | ||||
* | | | Issue #28257: Improved error message when pass a non-mapping as a var-keyword | Serhiy Storchaka | 2016-10-07 | 1 | -4/+17 |
| | | | | | | | | | | | | argument. | ||||
* | | | Issue #24098: Fixed possible crash when AST is changed in process of | Serhiy Storchaka | 2016-10-07 | 1 | -0/+216 |
| | | | | | | | | | | | | compiling it. | ||||
* | | | Issue #27942: String constants now interned recursively in tuples and ↵ | Serhiy Storchaka | 2016-09-30 | 2 | -867/+865 |
| | | | | | | | | | | | | frozensets. | ||||
* | | | Silence GCC warning. | Serhiy Storchaka | 2016-09-22 | 1 | -2/+2 |
| | | | | | | | | | | | | The code was correct, but GCC is not enough clever. | ||||
* | | | Catch EPERM error in py_getrandom() | Victor Stinner | 2016-09-20 | 1 | -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.c | Victor Stinner | 2016-09-20 | 1 | -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 Dower | 2016-09-18 | 1 | -0/+37 |
| | | | |||||
* | | | improve type-safe of and prevent double-frees in get_locale_info (#28119) | Benjamin Peterson | 2016-09-14 | 1 | -17/+9 |
| | | | |||||
* | | | Issue #26020: Fix evaluation order for set literals | Raymond Hettinger | 2016-09-08 | 1 | -2/+4 |
| | | | |||||
* | | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Martin Panter | 2016-09-07 | 2 | -2/+2 |
| | | | |||||
* | | | [backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder". | Senthil Kumaran | 2016-09-07 | 1 | -3/+4 |
| | | | |||||
* | | | Issue 27936: Fix inconsistent round() behavior between float and int | Raymond Hettinger | 2016-09-03 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #27909: Fix INCREF for possible NULL value | Raymond Hettinger | 2016-08-31 | 1 | -1/+1 |
| | | | |||||
* | | | Issue 19504: Change "customise" to "customize" American spelling. | Raymond Hettinger | 2016-08-26 | 1 | -2/+2 |
| | | | |||||
* | | | Issue #27587: Move null pointer check earlier in _PyState_AddModule() | Berker Peksag | 2016-08-22 | 1 | -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" statement | Victor Stinner | 2016-08-18 | 1 | -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 comments | Martin Panter | 2016-08-04 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #16191: Fix up references to renamed variables | Martin Panter | 2016-07-18 | 1 | -6/+6 |
| | | | |||||
* | | | Issue #27419: Added temporary workaround for subinterpreters. | Serhiy Storchaka | 2016-07-17 | 1 | -1/+4 |
| | | | |||||
* | | | Issue #27419: Standard __import__() no longer look up "__import__" in globals | Serhiy Storchaka | 2016-07-17 | 1 | -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 Cannon | 2016-07-16 | 1 | -2551/+2561 |
| | | | |||||
* | | | make too many nested blocks be a SyntaxError instead of a SystemError ↵ | Benjamin Peterson | 2016-07-15 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | (closes #27514) Patch by Ammar Askar. | ||||
* | | | Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 4 | -150/+148 |
| | | | | | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
* | | | py_getrandom(): use long type for the syscall() result | Victor Stinner | 2016-06-16 | 1 | -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 Storchaka | 2016-06-15 | 1 | -16/+20 |
| | | | |||||
* | | | cleanup random.c | Victor Stinner | 2016-06-14 | 1 | -1/+1 |
| | | | | | | | | | | | | Casting Py_ssize_t to Py_ssize_t is useless. | ||||
* | | | Fix os.urandom() using getrandom() on Linux | Victor Stinner | 2016-06-14 | 1 | -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. Calling | Serhiy Storchaka | 2016-06-12 | 2 | -105/+105 |
| | | | | | | | | | | | | | | | function with generalized unpacking (PEP 448) and conflicting keyword names could cause undefined behavior. | ||||
* | | | Fix typo and move comment to appropriate condition | Martin Panter | 2016-06-10 | 1 | -2/+2 |
| | | | |||||
* | | | Issue #27243: Fix __aiter__ protocol | Yury Selivanov | 2016-06-09 | 1 | -2/+38 |
| | | | |||||
* | | | os.urandom() doesn't block on Linux anymore | Victor Stinner | 2016-06-07 | 1 | -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 documentation | Martin Panter | 2016-06-04 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #27138: Regenerate Python/importlib_external.h. | Serhiy Storchaka | 2016-05-28 | 1 | -344/+343 |
| | | |