Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192) | Serhiy Storchaka | 2018-07-11 | 1 | -1/+3 |
| | |||||
* | bpo-22689: Copy the result of getenv() in sys_breakpointhook(). (GH-8194) | Serhiy Storchaka | 2018-07-09 | 1 | -1/+14 |
| | |||||
* | bpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. ↵ | Serhiy Storchaka | 2018-07-09 | 1 | -4/+11 |
| | | | | | | | (GH-8159) This will prevent emitting a resource warning when the execution was interrupted by Ctrl-C between calling open() and entering a 'with' block in "with open()". | ||||
* | Fix GCC warning in Python/hamt.c (GH-7618) | Zackery Spytz | 2018-07-06 | 1 | -1/+1 |
| | |||||
* | bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918) | Zackery Spytz | 2018-07-03 | 1 | -1/+2 |
| | | | | PyErr_Print() will not return when the exception is a SystemExit, so decref the __main__ module object in that case. | ||||
* | bpo-33985: Implement ContextVar.name attribute. (GH-7980) | Yury Selivanov | 2018-06-28 | 1 | -0/+5 |
| | |||||
* | bpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884) | Zackery Spytz | 2018-06-24 | 1 | -6/+9 |
| | | | Directly executed pyc files were being kept open longer than necessary. | ||||
* | bpo-33932: Calling Py_Initialize() twice does nothing (GH-7845) | Victor Stinner | 2018-06-22 | 1 | -0/+5 |
| | | | | Calling Py_Initialize() twice does nothing, instead of failing with a fatal error: restore the Python 3.6 behaviour. | ||||
* | bpo-33499: Add PYTHONPYCACHEPREFIX env var for alt bytecode cache location. ↵ | Carl Meyer | 2018-06-16 | 2 | -1063/+1116 |
| | | | | | | | | | | | | | | | (GH-6834) In some development setups it is inconvenient or impossible to write bytecode caches to the code tree, but the bytecode caches are still useful. The PYTHONPYCACHEPREFIX environment variable allows specifying an alternate location for cached bytecode files, within which a directory tree mirroring the code tree will be created. This cache tree is then used (for both reading and writing) instead of the local `__pycache__` subdirectory within each source directory. Exposed at runtime as sys.pycache_prefix (defaulting to None), and can be set from the CLI as "-X pycache_prefix=path". Patch by Carl Meyer. | ||||
* | bpo-33818: PyExceptionClass_Name() will now return "const char *". (GH-7581) | Serhiy Storchaka | 2018-06-15 | 2 | -4/+4 |
| | |||||
* | bpo-33375: Fix GCC warning in Python/_warnings.c (GH-7556) | Zackery Spytz | 2018-06-09 | 1 | -1/+0 |
| | | | _Py_IDENTIFIER(argv) is now unused. | ||||
* | bpo-33375: Get filename for warnings from frame.f_code.co_filename (GH-6622) | Thomas Kluyver | 2018-06-08 | 1 | -66/+4 |
| | | | More consistent with how other parts of Python find the filename (e.g. tracebacks and pdb). | ||||
* | bpo-33803: Fix a crash in hamt.c (#7504) | Yury Selivanov | 2018-06-08 | 1 | -0/+2 |
| | |||||
* | bpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401) | Steve Dower | 2018-06-04 | 1 | -1/+7 |
| | |||||
* | bpo-31849: Fix warning in pyhash.c (GH-6799) | A. Jesse Jiryu Davis | 2018-06-04 | 1 | -2/+2 |
| | |||||
* | bpo-33615: Re-enable a subinterpreter test. (gh-7251) | Eric Snow | 2018-06-02 | 1 | -18/+37 |
| | | | For bpo-32604 I added extra subinterpreter-related tests (see #6914), which caused a few buildbots to crash. This patch fixes the crash by ensuring that refcounts in channels are handled properly. | ||||
* | bpo-32911: Add the historical note about the magic number. (GH-7273) | Serhiy Storchaka | 2018-05-31 | 1 | -111/+111 |
| | |||||
* | bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196) | Serhiy Storchaka | 2018-05-31 | 1 | -1/+2 |
| | |||||
* | bpo-33691: Add _PyAST_GetDocString(). (GH-7236) | Serhiy Storchaka | 2018-05-30 | 4 | -58/+43 |
| | |||||
* | bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197) | Serhiy Storchaka | 2018-05-29 | 7 | -3233/+3189 |
| | | | | | | Remove the docstring attribute of AST types and restore docstring expression as a first stmt in their body. Co-authored-by: INADA Naoki <methane@users.noreply.github.com> | ||||
* | bpo-33612: Remove PyThreadState_Clear() assertion (#7069) | Victor Stinner | 2018-05-23 | 1 | -1/+0 |
| | | | | | bpo-25612, bpo-33612: Remove an assertion from PyThreadState_Clear() which failed at Python shutdown or on fork if a thread was running a generator. | ||||
* | bpo-23722: Raise a RuntimeError for absent __classcell__. (GH-6931) | Serhiy Storchaka | 2018-05-20 | 1 | -15/+4 |
| | | | A DeprecationWarning was emitted in Python 3.6-3.7. | ||||
* | bpo-33475: Fix and improve converting annotations to strings. (GH-6774) | Serhiy Storchaka | 2018-05-17 | 2 | -537/+291 |
| | |||||
* | bpo-32604: Improve subinterpreter tests. (#6914) | Eric Snow | 2018-05-16 | 1 | -3/+77 |
| | | | Add more tests for subinterpreters. This patch also fixes a few small defects in the channel implementation. | ||||
* | bpo-33509: Fix _warnings for module_globals=None (#6833) | Victor Stinner | 2018-05-15 | 1 | -1/+8 |
| | | | Don't crash on warnings.warn_explicit() if module_globals is not a dict. | ||||
* | bpo-33443 Fix typo in Python/import.c (GH-6722) | ukwksk | 2018-05-14 | 1 | -5/+5 |
| | |||||
* | fix error message in ast.c (#6776) | Jelle Zijlstra | 2018-05-13 | 1 | -1/+1 |
| | | | small_stmt -> compound_stmt | ||||
* | bpo-28055: Fix unaligned accesses in siphash24(). (GH-6123) | Rolf Eike Beer | 2018-05-13 | 1 | -13/+13 |
| | | | | | | | The hash implementation casts the input pointer to uint64_t* and directly reads from this, which may cause unaligned accesses. Use memcpy() instead so this code will not crash with SIGBUS on sparc. https://bugs.gentoo.org/show_bug.cgi?id=636400 | ||||
* | bpo-30465: Fix C downcast warning on Windows in ast.c (#6593) | Victor Stinner | 2018-04-30 | 1 | -1/+1 |
| | | | | ast.c: fstring_fix_node_location() downcasts a pointer difference to a C int. Replace int with Py_ssize_t to fix the compiler warning. | ||||
* | bpo-33330: Write exceptions occurred in PyImport_Cleanup() to stderr. (GH-6606) | Serhiy Storchaka | 2018-04-29 | 1 | -16/+20 |
| | | | | They where silenced before. | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. ↵ | Siddhesh Poyarekar | 2018-04-29 | 3 | -18/+18 |
| | | | | | | | | | (GH-6030) METH_NOARGS functions need only a single argument but they are cast into a PyCFunction, which takes two arguments. This triggers an invalid function cast warning in gcc8 due to the argument mismatch. Fix this by adding a dummy unused argument. | ||||
* | bpo-33363: raise SyntaxError for async for/with outside async functions (#6616) | Zsolt Dollenstein | 2018-04-27 | 1 | -0/+7 |
| | |||||
* | bpo-33334: Support NOP and EXTENDED_ARG in dis.stack_effect(). (#6566) | Serhiy Storchaka | 2018-04-25 | 1 | -0/+4 |
| | | | Added tests to ensure that all defined opcodes are supported. | ||||
* | bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564) | Serhiy Storchaka | 2018-04-25 | 1 | -9/+24 |
| | |||||
* | bpo-33128 Fix duplicated call to importlib._install_external_importers ↵ | Pablo Galindo | 2018-04-25 | 1 | -5/+0 |
| | | | | | | | | | (GH-6273) External importers were being added in both phases of the import system initialisation. They're only supposed to be added in the second phase, after the import machinery has been appropriately configured. | ||||
* | Spelling fixes to docs, docstrings, and comments (GH-6374) | Ville Skyttä | 2018-04-20 | 2 | -3/+3 |
| | |||||
* | bpo-33298: Wrap only constants with _PyCode_ConstantKey() in the compiler. ↵ | Serhiy Storchaka | 2018-04-20 | 1 | -104/+117 |
| | | | | (GH-6512) | ||||
* | bpo-33299: Return an object itself for some types in _PyCode_ConstantKey(). ↵ | Serhiy Storchaka | 2018-04-19 | 1 | -4/+6 |
| | | | | (GH-6513) | ||||
* | bpo-33270: Intern names for all anonymous code objects (#6472) | Zackery Spytz | 2018-04-15 | 3 | -8/+8 |
| | |||||
* | bpo-33169: Remove values of `None` from sys.path_importer_cache when ↵ | Brett Cannon | 2018-04-06 | 1 | -616/+618 |
| | | | | | invalidating caches (GH-6402) An entry of None in sys.path_importer_cache represents a negative/missing finder for a path, so clearing it out makes sense. | ||||
* | bpo-29673: fix gdb scripts pystack and pystackv (GH-6126) | Marcel Plch | 2018-04-06 | 1 | -1/+1 |
| | |||||
* | bpo-33231: Fix potential leak in normalizestring() (GH-6386) | INADA Naoki | 2018-04-06 | 1 | -2/+0 |
| | |||||
* | bpo-29922: Improve error messages in 'async with' (GH-6352) | Serhiy Storchaka | 2018-04-02 | 1 | -0/+25 |
| | | | when __aenter__() or __aexit__() return non-awaitable object. | ||||
* | bpo-33132: Fix more reference counting issues in the compiler. (GH-6323) | Serhiy Storchaka | 2018-03-31 | 1 | -4/+2 |
| | |||||
* | bpo-33053: -m now adds *starting* directory to sys.path (GH-6231) | Nick Coghlan | 2018-03-25 | 1 | -9/+21 |
| | | | | | | | | | | | | Historically, -m added the empty string as sys.path zero, meaning it resolved imports against the current working directory, the same way -c and the interactive prompt do. This changes the sys.path initialisation to add the *starting* working directory as sys.path[0] instead, such that changes to the working directory while the program is running will have no effect on imports when using the -m switch. | ||||
* | bpo-33042: Fix pre-initialization sys module configuration (GH-6157) | Nick Coghlan | 2018-03-25 | 1 | -0/+162 |
| | | | | | | | | | - new test case for pre-initialization of sys.warnoptions and sys._xoptions - restored ability to call these APIs prior to Py_Initialize - updated the docs for the affected APIs to make it clear they can be called before Py_Initialize - also enhanced the existing embedding test cases to check for expected settings in the sys module | ||||
* | bpo-33132: Fix reference counting issues in the compiler. (GH-6209) | Serhiy Storchaka | 2018-03-24 | 1 | -19/+12 |
| | |||||
* | bpo-32932: More revealing error message when non-str objects in __all__ ↵ | Xiang Zhang | 2018-03-24 | 1 | -1/+27 |
| | | | | (GH-5848) | ||||
* | bpo-33041: Rework compiling an "async for" loop. (#6142) | Serhiy Storchaka | 2018-03-23 | 4 | -209/+155 |
| | | | | | | | | * Added new opcode END_ASYNC_FOR. * Setting global StopAsyncIteration no longer breaks "async for" loops. * Jumping into an "async for" loop is now disabled. * Jumping out of an "async for" loop no longer corrupts the stack. * Simplify the compiler. | ||||
* | bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822) | Serhiy Storchaka | 2018-03-18 | 1 | -4/+0 |
| |