cpython/Lib
Raymond Hettinger 277842eff1 Issue #21424: Optimize heaqp.nlargest() to make fewer tuple comparisons.
Consolidates the logic for nlargest() into a single function so that
decoration tuples (elem,order) or (key, order, elem) only need to
be formed when a new element is added to the heap.  Formerly, a tuple
was created for every element regardless of whether it was added to
the heap.

The change reduces the number of tuples created, the number of ordering
integers created, and total number of tuple comparisons.
2014-05-11 01:55:46 -07:00
..
asyncio asyncio: Upstream issue #167: remove dead code, by Marc Schlaich. 2014-05-10 15:47:15 -07:00
collections Issue #19414: Have the OrderedDict mark deleted links as unusable. 2014-05-03 21:58:45 -07:00
concurrent Issue #20319: concurrent.futures.wait() can block forever even if Futures have completed 2014-02-01 11:49:04 +11:00
ctypes Issue #21093: Prevent failures of ctypes test_macholib on OS X if a 2014-03-29 00:08:44 -07:00
curses
dbm make operations on closed dumb databases raise a consistent exception (closes #19385) 2014-04-26 16:56:52 -04:00
distutils Reindent long line 2014-05-10 13:24:58 -04:00
email #21300: Clean up the docs for the email "policy" arguments. 2014-05-06 21:33:18 -04:00
encodings Issue #21171: Fixed undocumented filter API of the rot13 codec. 2014-04-13 17:08:51 +03:00
ensurepip Close #20757: return success for skipped pip uninstall 2014-02-28 23:35:05 +10:00
html #20288: merge with 3.3. 2014-02-01 21:22:26 +02:00
http merge from 3.4 2014-04-14 13:10:05 -04:00
idlelib Merge with 3.4 2014-04-22 01:27:06 -04:00
importlib Issue #21156: importlib.abc.InspectLoader.source_to_code() is now a 2014-05-09 12:28:22 -04:00
json improve the command-line interface of json.tool (closes #21000) 2014-03-21 23:17:29 -05:00
lib2to3 teach 2to3 about 'yield from' 2014-04-10 00:23:18 -04:00
logging Closes #21203: Updated fileConfig and dictConfig to remove inconsistencies. Thanks to Jure Koren for the patch. 2014-04-15 14:24:53 +01:00
msilib
multiprocessing do not generate pipe names in the temporary dir 2014-04-14 12:24:37 -04: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 Regenerate pydoc_topics, fix markup errors, in preparation for 3.4.0 final. 2014-03-15 22:29:19 -07:00
site-packages
sqlite3 merge 3.3 (#20901) 2014-03-12 21:52:19 -05:00
test Issue #21424: Optimize heaqp.nlargest() to make fewer tuple comparisons. 2014-05-11 01:55:46 -07:00
tkinter Closes #18604: Merge with 3.4 2014-05-02 10:52:12 -05:00
turtledemo Issue #10291: Cleanup turtledemo to use docstrings for help. 2014-04-19 19:14:29 -07:00
unittest Issue #9815: assertRaises now tries to clear references to local variables in the exception's traceback. 2014-04-29 01:25:07 +02:00
urllib urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser) 2014-04-20 09:41:29 -07:00
venv Issue #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX. 2014-04-15 11:18:10 +01:00
wsgiref Update docstring to mention correct PEP number. 2014-01-26 14:59:30 -08:00
xml #12220: improve minidom error when URI contains spaces. 2014-04-20 00:46:05 -04:00
xmlrpc Issue #20627: xmlrpc.client.ServerProxy is now a context manager. 2014-03-21 11:24:40 -04:00
__future__.py
__phello__.foo.py
_bootlocale.py Fix wrong exception in _bootlocale (apparently this error condition is never triggered) 2013-10-12 15:00:44 +02:00
_collections_abc.py Issue #21421: Add __slots__ to the MappingViews ABCs. 2014-05-03 19:06:32 -07:00
_compat_pickle.py Fix issue #19834: Support unpickling of exceptions pickled by Python 2. 2013-12-02 11:41:01 +01:00
_dummy_thread.py Issue #18808: Thread.join() now waits for the underlying thread state to be destroyed before returning. 2013-09-07 23:38:37 +02:00
_markupbase.py
_osx_support.py Issue #21311: Avoid exception in _osx_support with non-standard compiler 2014-04-19 13:25:29 -07:00
_pyio.py Issue #20404: reject non-text encodings early in TextIOWrapper. 2014-03-02 09:18:31 +01:00
_sitebuiltins.py #9364: Improve the text printed by help(pydoc) and help(help). 2014-04-19 12:59:30 -04:00
_strptime.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
_threading_local.py
_weakrefset.py Issue #20006: Fix sporadic failures in test_weakset. 2013-12-18 00:28:36 +01:00
abc.py #16832: s/integer/object/ in docs/docstring, and add whatsnew entry. 2013-12-24 16:13:32 -05:00
aifc.py Issue #19623: Fixed writing to unseekable files in the aifc module. 2013-12-14 20:42:22 +02:00
antigravity.py
argparse.py Issue #13107: argparse and optparse no longer raises an exception when output 2014-01-09 23:18:41 +02:00
ast.py
asynchat.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
asyncore.py fix isuse #13248: remove previously deprecated asyncore.dispatcher __getattr__ cheap inheritance hack. 2014-04-29 02:03:40 +02:00
base64.py Issue #20879: Delay the initialization of encoding and decoding tables for 2014-03-17 22:38:41 +01:00
bdb.py Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier de Gaye. 2013-11-21 11:30:06 -08:00
binhex.py
bisect.py
bz2.py Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. 2013-12-04 23:29:51 +01:00
calendar.py
cgi.py remove unused argument (closes #21135) 2014-04-03 10:22:10 -04:00
cgitb.py
chunk.py
cmd.py
code.py Closes #17730: in code.interact(), when banner="", do not print anything. 2013-10-13 21:49:06 +02:00
codecs.py Issue #19619: Blacklist non-text codecs in method API 2014-02-24 14:43:03 +02:00
codeop.py
colorsys.py
compileall.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
configparser.py Issue #20363. Fixed BytesWarning triggerred by test suite. 2014-02-06 22:52:23 +02:00
contextlib.py Merge removal of issue 20317 debugging code from 3.3 2014-01-24 23:07:16 +10:00
copy.py improve idioms (closes #20642) 2014-05-03 20:22:00 -04:00
copyreg.py Issue #17810: Implement PEP 3154, pickle protocol 4. 2013-11-23 18:59:12 +01:00
cProfile.py
crypt.py
csv.py #19449: Handle non-string keys when generating 'fieldnames' error. 2013-11-19 13:16:20 -05:00
datetime.py remove the ability of datetime.time to be considered false (closes #13936) 2014-03-20 18:00:35 -05:00
decimal.py Issue #10650: Remove the non-standard 'watchexp' parameter from the 2014-04-30 19:15:38 +02:00
difflib.py (Merge 3.4) Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:22:39 +01:00
dis.py Close #17916: dis.Bytecode based replacement for distb 2013-11-23 00:57:00 +10:00
doctest.py #15916: if there are no docstrings, make empty suite, not an error. 2014-04-14 20:28:36 -04:00
dummy_threading.py
enum.py Close issue20653: improve functional API docs; minor code changes 2014-03-03 12:42:52 -08:00
filecmp.py shallow defaults to 'True' not '1' (closes #21355) 2014-04-26 13:36:21 -04:00
fileinput.py Issue #15204: Silence and check the 'U' mode deprecation warnings in tests. 2013-11-24 23:13:26 +02:00
fnmatch.py
formatter.py Issue #19165: The formatter module graduates to full deprecation. 2014-03-21 10:52:33 -04:00
fractions.py Issue #21136: Avoid unnecessary normalization in Fractions resulting from power and other operations. 2014-04-05 09:29:00 +01:00
ftplib.py Issue #20978: pyflakes: fix undefined names 2014-03-20 08:50:52 +01:00
functools.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
genericpath.py
getopt.py
getpass.py #21169: add comment and doc update for getpass change. 2014-04-14 10:28:58 -04:00
gettext.py
glob.py Issue #8402: Added the escape() function to the glob module. 2013-11-18 13:06:43 +02:00
gzip.py Issue #20875: Merge from 3.3 2014-03-09 14:47:58 -07:00
hashlib.py * Issue #16113: Remove sha3 module again. 2014-01-03 14:05:06 +01:00
heapq.py Issue #21424: Optimize heaqp.nlargest() to make fewer tuple comparisons. 2014-05-11 01:55:46 -07:00
hmac.py Issue #18775: Add name and block_size attribute to HMAC object. They now 2013-11-20 17:35:06 +01:00
imaplib.py #20013: don't raise socket error when selected mailbox deleted. 2014-02-07 13:47:40 -05:00
imghdr.py Issue #20331: Fixed possible FD leaks in various modules: 2014-01-25 19:43:56 +02:00
imp.py Issue #15204: Deprecated the 'U' mode in file-like objects. 2013-11-23 22:12:06 +02:00
inspect.py inspect: Make Signature and Parameter hashable. Issue #20334. 2014-04-08 11:46:50 -04:00
io.py #21225: copy docstrings from base classes 2014-04-25 09:29:30 -04:00
ipaddress.py Issue #20480: Add ipaddress.reverse_pointer. Patch by Leon Weber. 2014-04-14 12:58:07 -04:00
keyword.py
linecache.py
locale.py Issue #20046: Locale alias table no longer contains entities which can be 2013-12-27 00:56:53 +02:00
lzma.py Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. 2013-12-04 23:29:51 +01:00
macpath.py
macurl2path.py Increase the coverage of macurl2path. Patch by Colin Williams. 2013-10-23 21:50:56 -07:00
mailbox.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
mailcap.py Issue #20331: Fixed possible FD leaks in various modules: 2014-01-25 19:43:56 +02:00
mimetypes.py Issue #20331: Fixed possible FD leaks in various modules: 2014-01-25 19:43:56 +02:00
modulefinder.py merge for issue #20778 2014-02-28 10:50:34 -05:00
netrc.py Merge #14984: only import pwd on POSIX. 2013-09-18 08:59:47 -04:00
nntplib.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
ntpath.py Issue #6815: os.path.expandvars() now supports non-ASCII environment 2014-02-13 10:14:48 +02:00
nturl2path.py
numbers.py
opcode.py PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) 2014-04-09 23:55:56 -04:00
operator.py PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) 2014-04-09 23:55:56 -04:00
optparse.py Issue #20315: Removed support for backward compatibility with early 2.x versions. 2014-01-20 21:29:31 +02:00
os.py merge 3.3 (#21082) 2014-04-01 19:18:48 -04:00
pathlib.py Issue #21127: Path objects can now be instantiated from str subclass instances (such as numpy.str_). 2014-04-23 00:34:15 +02:00
pdb.py Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier de Gaye. 2013-11-21 11:30:06 -08:00
pickle.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
pickletools.py Issue #6784: Strings from Python 2 can now be unpickled as bytes objects. 2013-12-07 01:09:27 -08:00
pipes.py
pkgutil.py Issue #21200: Return None from pkgutil.get_loader() when __spec__ is missing. 2014-04-19 00:13:23 -06:00
platform.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
plistlib.py Issue #14455: fix handling of unsigned long long values for binary plist files 2014-02-06 11:19:18 +01:00
poplib.py Issue #19784: poplib now supports SSLContext.check_hostname and server name 2013-12-02 20:10:50 +01:00
posixpath.py Fixed typo in previous commit (issue #6815). 2014-02-13 10:45:48 +02:00
pprint.py Remove builtin "caching" in pprint 2013-10-03 21:29:36 +02:00
profile.py
pstats.py
pty.py
py_compile.py
pyclbr.py Issue 19944: Fix importlib.find_spec() so it imports parents as needed. 2014-01-25 15:32:46 -07:00
pydoc.py #9364: Improve the text printed by help(pydoc) and help(help). 2014-04-19 12:59:30 -04:00
queue.py
quopri.py
random.py Issue #19218: Rename collections.abc to _collections_abc in order to speed up interpreter start 2013-10-13 02:04:20 +02:00
re.py Issue #20426: When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache. 2014-02-03 21:01:35 +01:00
reprlib.py
rlcompleter.py
runpy.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
sched.py
selectors.py Fix issue 18931: selectors module now supports /dev/poll on Solaris. 2014-03-20 21:43:41 +01:00
shelve.py
shlex.py
shutil.py #20744: don't try running an external 'zip' in shutil.make_archive() 2014-03-20 16:11:16 -04:00
signal.py Issue #21076: sigpending() is not available on Windows 2014-04-04 16:57:24 +02:00
site.py Issue #16047: Fix module exception list and __file__ handling in freeze. 2014-03-30 21:07:25 +02:00
smtpd.py Issue #18922: Now The Lib/smtpd.py and Tools/i18n/msgfmt.py scripts write 2013-09-05 17:44:53 +03:00
smtplib.py #17498: Defer SMTPServerDisconnected errors until the next command. 2014-04-14 18:21:38 -04:00
sndhdr.py
socket.py Provide a more readable representation of socket on repr(). 2013-10-03 21:01:43 +02:00
socketserver.py Issue #21040: socketserver: Use the selectors module. 2014-03-24 22:25:39 +00:00
sre_compile.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
sre_constants.py Issue #13592: Improved the repr for regular expression pattern objects. 2013-11-23 22:42:43 +02:00
sre_parse.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
ssl.py Issue #20951: SSLSocket.send() now raises either SSLWantReadError or SSLWantWriteError on a non-blocking socket if the operation would block. Previously, it would return 0. 2014-04-29 10:03:28 +02:00
stat.py
statistics.py Close #20536: correctly handle Decimal exponents in statistics 2014-02-08 23:55:14 +10:00
string.py Issue #13598: Add auto-numbering of replacement fields to string.Formatter. 2014-04-14 16:43:50 -04:00
stringprep.py
struct.py
subprocess.py subprocess's Popen.wait() is now thread safe so that multiple threads 2014-04-23 00:38:22 -07:00
sunau.py Issue #16685: Added support for writing any bytes-like objects in the aifc, 2013-11-16 14:01:31 +02:00
symbol.py
symtable.py merge 3.3 (#19393) 2013-10-26 13:22:08 -04:00
sysconfig.py Issue #19760: Silence sysconfig's 'SO' key deprecation warnings in tests. 2013-11-26 17:08:24 +02:00
tabnanny.py
tarfile.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
telnetlib.py Fixes Issue #17200: telnetlib's read_until and expect timeout was broken by the 2013-12-10 18:25:21 -08:00
tempfile.py Issue #21058: Fix a leak of file descriptor in tempfile.NamedTemporaryFile(), 2014-03-25 09:18:04 +01:00
textwrap.py Add shorten to __all_ (issues #18585 and #18725). 2013-10-16 13:07:53 +03:00
this.py
threading.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
timeit.py Issue #19936: Added executable bits or shebang lines to Python scripts which 2014-01-16 17:33:23 +02:00
token.py PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) 2014-04-09 23:55:56 -04:00
tokenize.py PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) 2014-04-09 23:55:56 -04:00
trace.py Issue #19936: Added executable bits or shebang lines to Python scripts which 2014-01-16 17:33:23 +02:00
traceback.py Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. 2014-01-22 01:16:25 +01:00
tracemalloc.py tracemalloc: filter_traces() raises a TypeError if filters is not an iterable 2014-03-10 11:05:07 +01:00
tty.py
turtle.py Issue #11571: Ensure that the turtle window becomes the topmost window 2014-04-19 19:11:14 -07:00
types.py Close #19030: inspect.getmembers and inspect.classify_class_attrs 2013-10-18 00:27:39 -07:00
uu.py
uuid.py Merge #19855: restore use of LC_ALL, not LC_MESSAGES 2014-01-18 15:02:00 -05:00
warnings.py Close #19379: Lazily import linecache in the warnings module, to make startup with warnings faster until a warning gets printed. 2013-10-24 22:23:42 +02:00
wave.py Issue #19641: Added the audioop.byteswap() function to convert big-endian 2013-11-23 22:26:01 +02:00
weakref.py
webbrowser.py Issue #19936: Added executable bits or shebang lines to Python scripts which 2014-01-16 17:33:23 +02:00
xdrlib.py
zipfile.py Issue #20262: Warnings are raised now when duplicate names are added in the 2014-01-20 21:59:33 +02:00