cpython/Python
Guido van Rossum 10f8ce6688 bpo-36280: Add Constant.kind field (GH-12295)
The value is a string for string and byte literals, None otherwise.
It is 'u' for u"..." literals, 'b' for b"..." literals, '' for "..." literals.
The 'r' (raw) prefix is ignored.
Does not apply to f-strings.

This appears sufficient to make mypy capable of using the stdlib ast module instead of typed_ast (assuming a mypy patch I'm working on).

WIP: I need to make the tests pass. @ilevkivskyi @serhiy-storchaka 



https://bugs.python.org/issue36280
2019-03-13 13:00:46 -07:00
..
clinic bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086) 2019-03-07 12:38:08 -08:00
_warnings.c bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112) 2019-02-25 17:59:46 +02:00
asdl.c
ast.c bpo-36280: Add Constant.kind field (GH-12295) 2019-03-13 13:00:46 -07:00
ast_opt.c bpo-33416: Add end positions to Python AST (GH-11605) 2019-01-22 11:18:22 +00:00
ast_unparse.c
bltinmodule.c bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086) 2019-03-07 12:38:08 -08:00
bootstrap_hash.c bpo-35550: Fix incorrect Solaris define guards (GH-11275) 2018-12-30 18:16:40 -08:00
ceval.c bpo-33608: Make sure locks in the runtime are properly re-created. (gh-12245) 2019-03-08 23:44:33 -07:00
ceval_gil.h Revert: bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617) (GH-12159) 2019-03-04 14:21:28 +01:00
codecs.c bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112) 2019-02-25 17:59:46 +02:00
compile.c bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086) 2019-03-07 12:38:08 -08:00
condvar.h bpo-12822: use monotonic clock for condvar if possible (GH-11723) 2019-02-20 10:00:09 +09:00
context.c bpo-36101: remove non-ascii characters in docstring (GH-12018) 2019-02-25 08:18:48 +09:00
coreconfig.c bpo-36142: _PyPreConfig_Read() sets LC_CTYPE (GH-12188) 2019-03-06 01:44:31 +01:00
dtoa.c bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) 2019-03-13 17:55:01 +01:00
dup2.c
dynamic_annotations.c
dynload_aix.c
dynload_dl.c
dynload_hpux.c
dynload_shlib.c
dynload_stub.c
dynload_win.c bpo-33895: Relase GIL while calling functions that acquire Windows loader lock (GH-7789) 2019-02-02 09:16:42 -08:00
errors.c bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112) 2019-02-25 17:59:46 +02:00
fileutils.c bpo-31904: Add encoding support for VxWorks RTOS (GH-12051) 2019-03-04 10:02:06 +01:00
formatter_unicode.c
frozen.c
frozenmain.c bpo-36142: Rework error reporting in pymain_main() (GH-12113) 2019-03-01 12:14:41 +01:00
future.c
getargs.c bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112) 2019-02-25 17:59:46 +02:00
getcompiler.c
getcopyright.c Bump copyright years to 2019. (GH-11404) 2019-01-02 07:46:53 -08:00
getopt.c bpo-36142: Add _PyPreConfig_ReadFromArgv() (GH-12173) 2019-03-05 02:44:12 +01:00
getplatform.c
getversion.c
graminit.c Remove d_initial from the parser as it is unused (GH-12212) 2019-03-09 15:35:50 +00:00
hamt.c
import.c bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112) 2019-02-25 17:59:46 +02:00
importdl.c
importdl.h
importlib.h bpo-35321: Set the spec origin to frozen in frozen modules (#11732) 2019-02-04 16:56:26 -08:00
importlib_external.h bpo-35843: Implement __getitem__ for _NamespacePath (GH-11690) 2019-03-08 10:58:00 -08:00
importlib_zipimport.h bpo-16806: Fix lineno and col_offset for multi-line string tokens (GH-10021) 2019-01-13 13:05:13 +09:00
makeopcodetargets.py
marshal.c
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h
pathconfig.c bpo-36142: Add _PyPreConfig_ReadFromArgv() (GH-12173) 2019-03-05 02:44:12 +01:00
peephole.c
preconfig.c bpo-36142: PYTHONMALLOC overrides PYTHONDEV (GH-12191) 2019-03-06 12:51:53 +01:00
pyarena.c
pyctype.c
pyfpe.c
pyhash.c
pylifecycle.c bpo-33608: Minor cleanup related to pending calls. (gh-12247) 2019-03-08 22:47:07 -07:00
pymath.c
pystate.c bpo-33608: Make sure locks in the runtime are properly re-created. (gh-12245) 2019-03-08 23:44:33 -07:00
pystrcmp.c
pystrhex.c
pystrtod.c
Python-ast.c bpo-36280: Add Constant.kind field (GH-12295) 2019-03-13 13:00:46 -07:00
pythonrun.c bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086) 2019-03-07 12:38:08 -08:00
pytime.c bpo-34373: fix test_mktime and test_pthread_getcpuclickid tests on AIX (GH-8726) 2018-12-28 23:57:37 +10:00
README
strdup.c
structmember.c
symtable.c bpo-36187: Remove NamedStore. (GH-12167) 2019-03-05 20:42:06 +02:00
sysmodule.c bpo-36142: Add _PyPreConfig.allocator (GH-12181) 2019-03-05 17:37:44 +01:00
thread.c
thread_nt.h bpo-33316: PyThread_release_lock always fails (GH-6541) 2019-02-02 08:22:55 -08:00
thread_pthread.h bpo-12822: use monotonic clock for condvar if possible (GH-11723) 2019-02-20 10:00:09 +09:00
traceback.c
wordcode_helpers.h

Miscellaneous source files for the main Python shared library