Serhiy Storchaka
941ec210aa
bpo-32911: Add the historical note about the magic number. (GH-7273)
2018-05-31 09:11:55 +03:00
Serhiy Storchaka
a5c42284e6
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
2018-05-31 07:34:34 +03:00
Serhiy Storchaka
143ce5c6db
bpo-33691: Add _PyAST_GetDocString(). (GH-7236)
2018-05-30 10:56:16 +03:00
Serhiy Storchaka
73cbe7a01a
bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197)
...
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 >
2018-05-29 12:04:55 +03:00
Victor Stinner
b6dccf54fd
bpo-33612: Remove PyThreadState_Clear() assertion ( #7069 )
...
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.
2018-05-23 18:00:55 +02:00
Serhiy Storchaka
f5e7b1999f
bpo-23722: Raise a RuntimeError for absent __classcell__. (GH-6931)
...
A DeprecationWarning was emitted in Python 3.6-3.7.
2018-05-20 08:48:12 +03:00
Serhiy Storchaka
64fddc423f
bpo-33475: Fix and improve converting annotations to strings. (GH-6774)
2018-05-16 23:17:48 -04:00
Eric Snow
6d2cd9036c
bpo-32604: Improve subinterpreter tests. ( #6914 )
...
Add more tests for subinterpreters. This patch also fixes a few small defects in the channel implementation.
2018-05-16 15:04:57 -04:00
Victor Stinner
b056562860
bpo-33509: Fix _warnings for module_globals=None ( #6833 )
...
Don't crash on warnings.warn_explicit() if module_globals is not a dict.
2018-05-15 20:42:12 +02:00
ukwksk
5e6312c39e
bpo-33443 Fix typo in Python/import.c (GH-6722)
2018-05-14 12:10:52 -07:00
Jelle Zijlstra
898ff92dac
fix error message in ast.c ( #6776 )
...
small_stmt -> compound_stmt
2018-05-13 17:04:53 -04:00
Rolf Eike Beer
1e2ec8a996
bpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)
...
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
2018-05-13 13:57:31 +03:00
Victor Stinner
fb7e7992be
bpo-30465: Fix C downcast warning on Windows in ast.c ( #6593 )
...
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.
2018-04-30 14:51:02 -07:00
Serhiy Storchaka
c1a6832f50
bpo-33330: Write exceptions occurred in PyImport_Cleanup() to stderr. (GH-6606)
...
They where silenced before.
2018-04-29 22:16:30 +03:00
Siddhesh Poyarekar
55edd0c185
bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (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.
2018-04-29 21:59:33 +03:00
Zsolt Dollenstein
e239650660
bpo-33363: raise SyntaxError for async for/with outside async functions ( #6616 )
2018-04-27 11:58:56 -04:00
Serhiy Storchaka
57faf34887
bpo-33334: Support NOP and EXTENDED_ARG in dis.stack_effect(). ( #6566 )
...
Added tests to ensure that all defined opcodes are supported.
2018-04-25 22:04:06 +03:00
Serhiy Storchaka
e9d9494d6b
bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564)
2018-04-25 20:58:40 +03:00
Pablo Galindo
0977091dca
bpo-33128 Fix duplicated call to importlib._install_external_importers (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.
2018-04-25 12:22:28 +10:00
Ville Skyttä
61f82e0e33
Spelling fixes to docs, docstrings, and comments (GH-6374)
2018-04-20 16:08:45 -04:00
Serhiy Storchaka
d70c2a6894
bpo-33298: Wrap only constants with _PyCode_ConstantKey() in the compiler. (GH-6512)
2018-04-20 16:01:25 +03:00
Serhiy Storchaka
b7e1eff843
bpo-33299: Return an object itself for some types in _PyCode_ConstantKey(). (GH-6513)
2018-04-19 08:28:04 +03:00
Zackery Spytz
f303639e3a
bpo-33270: Intern names for all anonymous code objects ( #6472 )
2018-04-16 01:12:29 +03:00
Brett Cannon
9e2be60634
bpo-33169: Remove values of None from sys.path_importer_cache when 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.
2018-04-06 16:10:18 -07:00
Marcel Plch
3a9ccee0e5
bpo-29673: fix gdb scripts pystack and pystackv (GH-6126)
2018-04-06 17:22:04 -04:00