Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Issue #27076: Doc, comment and tests spelling fixes | Martin Panter | 2016-05-26 | 4 | -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 Storchaka | 2016-05-20 | 1 | -53/+70 |
| | | | | format unit. | ||||
* | Fix os.set_inheritable() on Android | Victor Stinner | 2016-05-19 | 1 | -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 bytecode | Benjamin Peterson | 2016-05-17 | 1 | -103/+103 |
| | |||||
* | fix possible refleak in MAKE_FUNCTION (closes #26991) | Benjamin Peterson | 2016-05-17 | 1 | -1/+3 |
| | | | | Patch by Xiang Zhang. | ||||
* | Corrections for a/an in code comments and documentation | Martin Panter | 2016-05-08 | 1 | -2/+2 |
| | |||||
* | Regenerate Argument Clinic code for issue #26874. | Serhiy Storchaka | 2016-05-01 | 2 | -3/+3 |
| | |||||
* | Issue #23960: Cleanup args and kwargs on error in PyErr_SetImportError | Berker Peksag | 2016-05-01 | 1 | -3/+3 |
| | | | | Patch by Ofer Schwarz. | ||||
* | Issue #26874: Simplify the divmod docstring | Zachary Ware | 2016-04-28 | 1 | -1/+1 |
| | |||||
* | Issue #26874: Fix divmod docstring | Zachary Ware | 2016-04-28 | 1 | -1/+1 |
| | |||||
* | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
| | |||||
* | Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc | Martin Panter | 2016-04-15 | 1 | -2/+2 |
| | | | | This affects documentation, code comments, and a debugging messages. | ||||
* | Fix os.urandom() on Solaris 11.3 | Victor Stinner | 2016-04-12 | 1 | -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_SETREF | Serhiy Storchaka | 2016-04-10 | 3 | -5/+5 |
| | | | | in places where Py_DECREF was used. | ||||
* | Issue #25339: PYTHONIOENCODING now has priority over locale in setting the | Serhiy Storchaka | 2016-04-10 | 1 | -10/+9 |
| | | | | error handler for stdin and stdout. | ||||
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 4 | -7/+7 |
| | |||||
* | Use Py_uintptr_t for atomic pointers | Victor Stinner | 2016-01-22 | 2 | -27/+28 |
| | | | | | | | | Issue #26161: Use Py_uintptr_t instead of void* for atomic pointers in pyatomic.h. Use atomic_uintptr_t when <stdatomic.h> is used. Using void* causes compilation warnings depending on which implementation of atomic types is used. | ||||
* | Py_FatalError: disable faulthandler earlier | Victor Stinner | 2016-03-16 | 1 | -5/+5 |
| | | | | | Issue #26563: Py_FatalError: disable faulthandler before trying to flush sys.stdout and sys.stderr. | ||||
* | Fix Py_FatalError() if called without the GIL | Victor Stinner | 2016-03-14 | 1 | -34/+50 |
| | | | | | | Issue #26558: If Py_FatalError() is called without the GIL, don't try to print the current exception, nor try to flush stdout and stderr: only dump the traceback of Python threads. | ||||
* | coroutines: Error when awaiting on coroutine that's being awaited | Yury Selivanov | 2016-03-02 | 1 | -0/+15 |
| | | | | Issue #25888 | ||||
* | Issue #22836: Keep exception reports sensible despite errors | Martin Panter | 2016-02-28 | 2 | -5/+19 |
| | |||||
* | Issue #26367: Have importlib.__init__() raise RuntimeError when | Brett Cannon | 2016-02-20 | 1 | -370/+371 |
| | | | | | | | 'level' is specified but no __package__. This brings the function inline with builtins.__import__(). Thanks to Manuel Jacob for the patch. | ||||
* | Issue #25698: Prevent possible replacing imported module with the empty one | Serhiy Storchaka | 2016-02-10 | 1 | -2/+6 |
| | | | | if the stack is too deep. | ||||
* | Issue #26198: Fixed error messages for some argument parsing errors. | Serhiy Storchaka | 2016-02-07 | 1 | -12/+20 |
| | | | | | Fixed the documented about buffer overflow error for "es#" and "et#" format units. | ||||
* | Issue #4806: Avoid masking original TypeError in call with * unpacking | Martin Panter | 2016-01-31 | 1 | -8/+10 |
| | | | | Based on patch by Hagen Fürstenau and Daniel Urban. | ||||
* | code_richcompare() now uses the constants types | Victor Stinner | 2016-01-22 | 1 | -48/+10 |
| | | | | | | | | | Issue #25843: When compiling code, don't merge constants if they are equal but have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now correctly compiled to two different functions: f1() returns 1 (int) and f2() returns 1.0 (int), even if 1 and 1.0 are equal. Add a new _PyCode_ConstantKey() private function. | ||||
* | Add _PyThreadState_UncheckedGet() | Victor Stinner | 2016-01-20 | 3 | -21/+22 |
| | | | | | | | | | | | | | | | | | | | Issue #26154: Add a new private _PyThreadState_UncheckedGet() function which gets the current thread state, but don't call Py_FatalError() if it is NULL. Python 3.5.1 removed the _PyThreadState_Current symbol from the Python C API to no more expose complex and private atomic types. Atomic types depends on the compiler or can even depend on compiler options. The new function _PyThreadState_UncheckedGet() allows to get the variable value without having to care of the exact implementation of atomic types. Changes: * Replace direct usage of the _PyThreadState_Current variable with a call to _PyThreadState_UncheckedGet(). * In pystate.c, replace direct usage of the _PyThreadState_Current variable with the PyThreadState_GET() macro for readability. * Document also PyThreadState_Get() in pystate.h | ||||
* | merge 3.4 | Benjamin Peterson | 2016-01-01 | 1 | -1/+1 |
|\ | |||||
| * | merge 3.3 | Benjamin Peterson | 2016-01-01 | 1 | -1/+1 |
| |\ | |||||
| | * | 2016 will be another year of writing copyrighted code | Benjamin Peterson | 2016-01-01 | 1 | -1/+1 |
| | | | |||||
* | | | make recording and reporting errors and nonlocal and global directives more ↵ | Benjamin Peterson | 2015-12-29 | 1 | -8/+16 |
| | | | | | | | | | | | | robust (closes #25973) |