cpython/Lib
Victor Stinner f2c1aa1661 Add ast.Constant
Issue #26146: Add a new kind of AST node: ast.Constant. It can be used by
external AST optimizers, but the compiler does not emit directly such node.

An optimizer can replace the following AST nodes with ast.Constant:

* ast.NameConstant: None, False, True
* ast.Num: int, float, complex
* ast.Str: str
* ast.Bytes: bytes
* ast.Tuple if items are constants too: tuple
* frozenset

Update code to accept ast.Constant instead of ast.Num and/or ast.Str:

* compiler
* docstrings
* ast.literal_eval()
* Tools/parser/unparse.py
2016-01-26 00:40:57 +01:00
..
asyncio Issue #26050: Add asyncio.StreamReader.readuntil() method. 2016-01-11 12:28:19 -05:00
collections merge 2015-11-23 21:04:53 -08:00
concurrent Issue #25523: Further a-to-an corrections new in 3.5 2015-11-02 04:20:33 +00:00
ctypes #24789: fix docstring of ctypes.create_string_buffer. Patch by Matheus Vieira Portela. 2016-01-09 16:08:24 +02:00
curses
dbm Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
distutils subprocess._optim_args_from_interpreter_flags() 2016-01-18 12:15:08 +01:00
email Issue #22932: Fix timezones in email.utils.formatdate. 2015-08-01 08:19:06 +12:00
encodings Add some "used with permission" mentions where external resources are referenced. 2016-01-15 09:53:51 -08:00
ensurepip Upgrade pip to 8.0.2 2016-01-21 21:55:32 -05:00
html Merge spelling fixes from 3.4 into 3.5 2015-10-31 12:16:18 +00:00
http Issue #25899: Converted non-ASCII characters in docstrings and manpage 2015-12-18 13:10:37 +02:00
idlelib Merge with 3.5 2016-01-16 23:44:16 -05:00
importlib Issue #25791: Warn when __package__ != __spec__.parent. 2016-01-22 15:25:50 -08:00
json Issue #24540: merger from 3.4 2015-07-05 11:45:31 -07:00
lib2to3 Issue #25523: Merge a-to-an corrections from 3.5. 2015-11-02 14:44:29 +02:00
logging Closes #25685: Merged fix from 3.5. 2015-12-26 12:51:43 +00:00
msilib Issue #16620: Got rid of using undocumented function glob.glob1(). 2016-01-19 14:09:33 +02:00
multiprocessing Fix typo in docstring of multiprocessing.spawn.spawn_main() 2016-01-07 19:02:55 +02:00
plat-aix4
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic
plat-linux
plat-netbsd1
plat-next3
plat-sunos5
plat-unixware7
pydoc_data Rebuild pydoc topics for Python 3.4.4 final. 2015-12-19 19:28:52 -08:00
site-packages Merge with 3.5. 2015-10-06 18:52:52 +03:00
sqlite3 Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). 2015-05-22 11:13:20 +03:00
test Add ast.Constant 2016-01-26 00:40:57 +01:00
tkinter Issue #25263: Fixed the tkinter.test.test_tkinter.test_font.FontTest test 2015-11-10 15:31:52 +02:00
turtledemo issue19075: add visual sorting algorithms to turtledemo; original code from Jason Yeo 2015-03-02 12:29:58 -08:00
unittest Merge 'used with permission' additions 2016-01-15 09:54:16 -08:00
urllib Issue #25822: Add docstrings to the fields of urllib.parse results. 2016-01-14 00:11:39 -08:00
venv Issue #23399: pyvenv creates relative symlinks where possible. 2015-02-06 11:23:58 -05:00
wsgiref Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella. 2015-07-27 10:42:54 +12:00
xml Issue #25902: Fixed various refcount issues in ElementTree iteration. 2015-12-21 11:11:12 +02:00
xmlrpc Issue #26147: xmlrpc now works with strings not encodable with used 2016-01-20 10:34:27 +02:00
__future__.py PEP 479: Change StopIteration handling inside generators. 2015-05-09 11:44:30 -04:00
__phello__.foo.py
_bootlocale.py
_collections_abc.py Issue #24400: Resurrect inspect.isawaitable() 2015-07-03 13:11:35 -04:00
_compat_pickle.py Issue #26013: Added compatibility with broken protocol 2 pickles created 2016-01-18 21:35:22 +02:00
_compression.py Issue #23529: Limit the size of decompressed data when reading from 2015-04-11 00:31:01 +02:00
_dummy_thread.py
_markupbase.py
_osx_support.py
_pydecimal.py Issue #25971: Optimized creating Fractions from floats by 2 times and from 2015-12-29 22:34:23 +02:00
_pyio.py Issue #25523: Merge a-to-an corrections from 3.5 2015-11-02 04:27:17 +00:00
_sitebuiltins.py
_strptime.py Issue #6478: _strptime's regexp cache now is reset after changing timezone 2015-12-03 22:27:31 +02:00
_threading_local.py
_weakrefset.py
abc.py
aifc.py Issue #24878: Fix typos and line wrap 2015-08-23 11:28:01 -07:00
antigravity.py
argparse.py Issue #24360: Improve __repr__ of argparse.Namespace() for invalid identifiers. 2015-07-29 23:51:47 +03:00
ast.py Add ast.Constant 2016-01-26 00:40:57 +01:00
asynchat.py
asyncore.py Issue #23485: select.poll.poll() is now retried when interrupted by a signal 2015-03-30 21:38:00 +02:00
base64.py Issue #25357: Add an optional newline paramer to binascii.b2a_base64(). 2015-10-11 11:01:02 +02:00
bdb.py
binhex.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
bisect.py
bz2.py Issue #23529: Limit the size of decompressed data when reading from 2015-04-11 00:31:01 +02:00
cProfile.py
calendar.py Issue #23883: Add missing APIs to calendar.__all__ 2016-01-16 06:49:30 +00:00
cgi.py (Merge 3.4) cgi.FieldStorage.read_multi ignores Content-Length 2015-08-18 10:23:16 -07:00
cgitb.py Issue #22831: Use "with" to avoid possible fd leaks. 2015-04-04 11:01:02 +03:00
chunk.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
cmd.py
code.py Remaining fallout from 17911 2015-03-05 15:45:01 +13:00
codecs.py Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 2015-11-02 04:04:57 +00:00
codeop.py
colorsys.py
compileall.py Issue #25768: Make compileall functions return booleans and document 2015-12-27 13:17:04 -08:00
configparser.py Issue #21159: Improve message in configparser.InterpolationMissingOptionError. 2015-08-14 11:47:41 +12:00
contextlib.py Issue #24336: The contextmanager decorator now works with functions with 2015-06-28 17:08:35 +03:00
copy.py Issue #25718: Fixed copying object with state with boolean value is false. 2015-11-30 17:35:40 +02:00
copyreg.py
crypt.py Issue #25287: Don't add crypt.METHOD_CRYPT to crypt.methods if it's not 2015-10-02 23:00:39 +02:00
csv.py Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 2015-11-14 12:46:42 +00:00
datetime.py Merge 'used with permission' additions 2016-01-15 09:54:16 -08:00
decimal.py Issue #23641: Cleaned out legacy dunder names from tests and docs. 2015-03-12 21:56:08 +02:00
difflib.py Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 2015-11-02 04:04:57 +00:00
dis.py co_lnotab supports negative line number delta 2016-01-20 12:16:21 +01:00
doctest.py Merge typo and grammar fixes from 3.4 into 3.5 2015-11-14 01:14:25 +00:00
dummy_threading.py
enum.py revert change 87a9dff5106c: pure Enum members again evaluate to True; 2016-01-15 15:01:33 -08:00
filecmp.py
fileinput.py Issue #23883: Missing fileinput.__all__ APIs; patch by Mauro SM Rodrigues 2016-01-16 06:26:54 +00:00
fnmatch.py
formatter.py Issue #25407: Drop the mention of the formatter module being removed 2015-10-16 12:09:33 -07:00
fractions.py Issue #25971: Optimized creating Fractions from floats by 2 times and from 2015-12-29 22:34:23 +02:00
ftplib.py Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 2015-11-14 12:46:42 +00:00
functools.py Removed redundant call of update_wrapper(). 2015-10-24 09:51:53 +03:00
genericpath.py
getopt.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
getpass.py remove duplicated imports (closes #25502) 2015-10-28 23:15:13 -07:00
gettext.py Merge from 3.4 2015-04-14 10:35:43 -04:00
glob.py Issue #25584: Added "escape" to the __all__ list in the glob module. 2015-11-09 23:18:19 +02:00
gzip.py Issue #22341: Drop Python 2 workaround and document CRC initial value 2015-12-11 05:19:29 +00:00
hashlib.py Removed duplicated words in in comments and docs. 2014-12-01 18:28:43 +02:00
heapq.py
hmac.py
imaplib.py #21815: violate IMAP RFC to be compatible with, e.g., gmail 2016-01-02 17:18:34 -05:00
imghdr.py
imp.py Upgrade the imp module's deprecation to DeprecationWarning. 2015-10-16 12:21:37 -07:00
inspect.py Issue #25486: Resurrect inspect.getargspec in 3.6. Backout a565aad5d6e1. 2016-01-11 15:15:01 -05:00
io.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
ipaddress.py Issue #16261: Converted some bare except statements to except statements 2015-05-20 10:33:40 +03:00
keyword.py
linecache.py Issue #23838: linecache now clears the cache and returns an empty result on 2015-04-01 16:56:13 +03:00
locale.py locale.delocalize(): only call localeconv() once 2015-11-03 14:34:51 +01:00
lzma.py Issue #23529: Limit the size of decompressed data when reading from 2015-04-11 00:31:01 +02:00
macpath.py Issue #23780: Improved error message in os.path.join() with single argument. 2015-05-19 11:00:07 +03:00
macurl2path.py
mailbox.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
mailcap.py
mimetypes.py Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls 2015-03-10 13:17:21 -07:00
modulefinder.py Issue #25487: Fix tests not updated when the imp module moved to a 2015-10-30 14:41:06 -07:00
netrc.py
nntplib.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
ntpath.py Issue #23780: Improved error message in os.path.join() with single argument. 2015-05-19 11:00:07 +03:00
nturl2path.py Issue21160: Correct comments in nturl2path. Patch by Jurko Gospodnetić. 2015-10-24 17:39:36 +03:00
numbers.py Issue #21408: The default __ne__() now returns NotImplemented if __eq__() 2015-01-26 09:57:07 +02:00
opcode.py Issue 25483: Add an opcode to make f-string formatting more robust. 2015-11-03 12:45:05 -05:00
operator.py Issue #24379: Revert the operator.subscript patch (dccc4e63aef5) pending resolution of the related refcnt leak. 2015-11-02 00:39:56 -05:00
optparse.py Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 2015-11-14 12:46:42 +00:00
os.py Issue #25860: os.fwalk() no longer skips remaining directories when error occurs. 2015-12-23 00:08:24 +02:00
pathlib.py Add another try/except PermissionError to avoid depending on listdir order. Fix issues #24120 and #26012. (Merge 3.4->3.5) 2016-01-07 10:57:37 -08:00
pdb.py merge from 3.4 2015-09-05 19:17:24 -04:00
pickle.py Issue #25761: Improved detecting errors in broken pickle data. 2015-12-06 22:01:35 +02:00
pickletools.py merge 3.5 (#25502) 2015-10-28 23:15:22 -07:00
pipes.py
pkgutil.py Upgrade the imp module's deprecation to DeprecationWarning. 2015-10-16 12:21:37 -07:00
platform.py Merge from 3.4 2015-09-22 17:35:42 -07:00
plistlib.py
poplib.py #21804: Add RFC 6856 (UTF8) support to poplib. 2015-05-16 15:05:53 -04:00
posixpath.py Issue #23780: Improved error message in os.path.join() with single argument. 2015-05-19 11:00:07 +03:00
pprint.py Issue #18682: Optimized pprint functions for builtin scalar types. 2015-05-16 21:38:05 +03:00
profile.py
pstats.py
pty.py
py_compile.py Issue #23911: Move path-based bootstrap code to a separate frozen module. 2015-05-02 19:15:18 -06:00
pyclbr.py
pydoc.py Issue #18010: Merge pydoc web search fix from 3.5 2015-11-06 01:08:34 +00:00
queue.py
quopri.py Issue #23681: Fixed Python 2 to 3 poring bugs. 2015-03-20 16:46:19 +02:00
random.py
re.py Issue #22364: Improved some re error messages using regex for hints. 2015-03-25 21:03:47 +02:00
reprlib.py
rlcompleter.py Issue #25663: Merge rlcompleter fix from 3.5 2015-11-24 00:19:10 +00:00
runpy.py Issue #19771: Omit irrelevant message if package could not be initialized 2015-12-12 06:58:55 +00:00
sched.py Issue #24878: Add docstrings to selected namedtuples 2015-08-17 22:04:45 -07:00
selectors.py Issue #24878: Add docstrings to selected namedtuples 2015-08-17 22:04:45 -07:00
shelve.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
shlex.py Issue #24113: Remove unreachable code in shlex. 2015-05-04 22:45:47 -04:00
shutil.py Issue #24982: shutil.make_archive() with the "zip" format now adds entries 2015-09-08 05:53:42 +03:00
signal.py Issue #25523: Further a-to-an corrections new in 3.5 2015-11-02 04:20:33 +00:00
site.py site: error on sitecustomize import error 2016-01-22 12:22:07 +01:00
smtpd.py #25328: add missing raise keyword in decode_data+SMTPUTF8 check. 2015-10-09 10:19:33 -04:00
smtplib.py #25446: Fix regression in smtplib's AUTH LOGIN support. 2015-11-08 01:03:52 -05:00
sndhdr.py Issue #24878: Add docstrings to selected namedtuples 2015-08-17 22:04:45 -07:00
socket.py merge 3.4 (#25471) 2015-10-24 20:07:08 -07:00
socketserver.py Issue #23285: PEP 475 -- Retry system calls failing with EINTR. 2015-02-07 13:27:50 +00:00
sre_compile.py Issue #24426: Fast searching optimization in regular expressions now works 2015-06-21 14:06:55 +03:00
sre_constants.py Issue #22831: Use "with" to avoid possible fd leaks. 2015-04-04 11:01:02 +03:00
sre_parse.py Issue #25554: Got rid of circular references in regular expression parsing. 2015-11-05 17:49:26 +02:00
ssl.py issue23673 2015-03-18 17:27:57 -07:00
stat.py
statistics.py Issue #25177: Fixed problem with the mean of very small and very large numbers. 2015-12-01 19:59:53 +11:00
string.py Issue #25034: Merge from 3.5. 2015-09-29 10:30:47 -04:00
stringprep.py
struct.py
subprocess.py subprocess._optim_args_from_interpreter_flags() 2016-01-18 12:15:08 +01:00
sunau.py Corrected docstrings of audio modules. writeframes() accepts bytes, not str. 2015-07-10 22:13:40 +03:00
symbol.py Issue 24297: Update symbol.py. See also issue 24017. 2015-05-27 11:08:19 -04:00
symtable.py remove the concept of an unoptimized function scope from the compiler, since it can't happen anymore 2015-04-27 21:44:22 -04:00
sysconfig.py - Issue #24705: Fix sysconfig._parse_makefile not expanding ${} vars 2016-01-11 21:41:40 +01:00
tabnanny.py
tarfile.py Issue #23883: Add missing APIs to tarfile.__all__ 2016-01-16 06:59:13 +00:00
telnetlib.py #25485: Add context manager support to Telnet class. 2015-11-28 12:24:52 -05:00
tempfile.py Issue #25064: Adjust documentation according to new mkstemp signature 2015-11-07 00:32:50 +00:00
textwrap.py Issue #21827: Fixed textwrap.dedent() for the case when largest common 2015-10-28 21:43:12 +02:00
this.py
threading.py Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 2015-11-14 12:46:42 +00:00
timeit.py Merge with 3.5. 2015-10-06 18:52:52 +03:00
token.py PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
tokenize.py Issue #25977: Fix typos in Lib/tokenize.py 2015-12-30 01:42:43 +02:00
trace.py Issue22642 - Convert trace module's option handling mechanism from getopt to argparse. 2016-01-13 07:46:54 -08:00
traceback.py Issue #25111: Fixed comparison of traceback.FrameSummary. 2015-09-29 22:34:16 +03:00
tracemalloc.py Issue #23731: Implement PEP 488. 2015-04-13 14:21:02 -04:00
tty.py
turtle.py Issue #6639: Module-level turtle functions no longer raise TclError after 2015-02-22 17:25:33 +02:00
types.py Issue #24400: Resurrect inspect.isawaitable() 2015-07-03 13:11:35 -04:00
typing.py Add Awaitable, AsyncIterable, AsyncIterator to typing.py. 2015-12-03 17:31:24 -08:00
uu.py
uuid.py always use os.urandom for the uuid4 algorithm (closes #25515) 2015-10-29 20:38:04 -07:00
warnings.py Issue #24305: Prevent import subsystem stack frames from being counted 2015-09-06 00:39:37 -07:00
wave.py Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 2015-11-14 12:46:42 +00:00
weakref.py Issue #22958: Constructor and update method of weakref.WeakValueDictionary 2015-09-29 23:52:42 +03:00
webbrowser.py Issue #25005: Backout fix for #8232 because of use of unsafe subprocess.call(shell=True) 2015-09-05 11:57:47 -07:00
xdrlib.py
zipapp.py #23657 Don't explicitly do an isinstance check for str in zipapp 2015-03-22 15:32:36 +00:00
zipfile.py Issue #22341: Drop Python 2 workaround and document CRC initial value 2015-12-11 05:19:29 +00:00