cpython/Lib
Serhiy Storchaka ada5d99306
[3.6] bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931) (GH-8584)
* Fix integer overflow in os.readv(), os.writev() and in os.sendfile()
  with headers or trailers arguments (on BSD-based OSes and MacOS).

* Fix sending the part of the file in os.sendfile() on MacOS.
  Using the trailers argument could cause sending more bytes from
  the input file than was specified.

Thanks Ned Deily for testing on 32-bit MacOS.
(cherry picked from commit 9d5727326a)
2018-07-31 12:58:58 +03:00
..
asyncio bpo-27500: Fix static version of getaddrinfo to resolve IPv6 (GH-7993) 2018-06-28 19:22:39 -07:00
collections Backport docstring improvements to OrderedDict. (GH-3470) 2017-09-10 18:11:18 -07:00
concurrent [3.6] bpo-31641: Allow arbitrary iterables in concurrent.futures.as_completed() (GH-3830) (#3831) 2017-09-29 15:07:01 -07:00
ctypes Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191) 2018-07-09 08:54:27 -07:00
curses Issue #13051: Fixed recursion errors in large or resized curses.textpad.Textbox. 2016-12-28 10:16:06 +02:00
dbm Issue #28847: dbm.dumb now supports reading read-only files and no longer 2016-12-07 11:00:06 +02:00
distutils bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464) 2018-07-29 10:02:16 +01:00
email bpo-33476: Fix _header_value_parser when address group is missing final ';' (GH-7484) 2018-07-28 08:59:18 -07:00
encodings Revert #27959: ImportError within an encoding module should also skip the encoding 2016-09-09 08:56:37 -07:00
ensurepip Improve ensurepip's --help (GH-4686) (GH-7239) 2018-05-30 13:56:19 +02:00
html #27364: fix "incorrect" uses of escape character in the stdlib. 2016-09-08 13:59:53 -04:00
http bpo-33365: print the header values beside the keys (GH-6611) 2018-06-19 06:52:44 -07:00
idlelib [3.6] bpo-34162: idlelib/NEWS.txt entries to 2018-7-20 (GH-8345) (GH-8348) 2018-07-20 02:49:15 -04:00
importlib Revert "[3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) (#5504)" (#5911) 2018-02-26 11:23:24 -08:00
json bpo-30877: Fix clearing a cache in the the JSON decoder. (GH-7048) 2018-05-22 06:26:43 -07:00
lib2to3 bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758) (GH-6529) 2018-04-18 22:09:51 -07:00
logging [3.6] bpo-33978: Close existing handlers before logging (re-)configuration. (GH-8008). (GH-8045) 2018-07-02 10:35:52 +01:00
msilib #27364: fix "incorrect" uses of escape character in the stdlib. 2016-09-08 13:59:53 -04:00
multiprocessing bpo-34054: multiprocessing uses time.monotonic() (GH-8118) 2018-07-06 05:14:33 -07:00
pydoc_data 3.6.6rc1 2018-06-12 00:24:03 -04:00
site-packages Issue #29283: Delete accidentally added Lib/site-packages/README 2017-01-30 13:55:49 +03:00
sqlite3 bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is uninitialized (GH-3958) (#4303) 2017-11-06 16:45:19 -08:00
test [3.6] bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931) (GH-8584) 2018-07-31 12:58:58 +03:00
tkinter [3.6] bpo-34189: Add simple tests for new Tk widget options. (GH-8396) (GH-8399) 2018-07-22 22:14:45 +03:00
turtledemo bpo-14117: Make minor tweaks to turtledemo (GH-8002) 2018-06-28 22:32:16 -07:00
unittest bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) 2018-06-20 02:54:32 -07:00
urllib [3.7] bpo-32861: urllib.robotparser fix incomplete __str__ methods. (GH-5711) (GH-6795) (GH-6818) 2018-05-15 01:03:56 +03:00
venv bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5766) 2018-02-19 18:18:43 -08:00
wsgiref Issue #26721: Change StreamRequestHandler.wfile to BufferedIOBase 2016-06-29 10:12:22 +00:00
xml [3.6] bpo-32297: Fix misspellings in Python source code comments (GH-4803) (#4864) 2017-12-14 16:19:51 +02:00
xmlrpc [3.6] bpo-32297: Fix misspellings in Python source code comments (GH-4803) (#4864) 2017-12-14 16:19:51 +02:00
__future__.py
__phello__.foo.py
_bootlocale.py
_collections_abc.py bpo-31942: Document optional support of start and stop attributes in Sequence.index method (GH-4277) (#4811) 2017-12-12 11:58:26 +01:00
_compat_pickle.py Issue #15767: Add ModuleNotFoundError. 2016-09-07 15:42:32 -07:00
_compression.py
_dummy_thread.py
_markupbase.py
_osx_support.py Fix misplaced positional argument in OS X support library (#1137) 2017-04-14 17:44:34 +03:00
_pydecimal.py Issue #27348: Merge exception formatting fix from 3.5 into 3.6 2016-09-22 10:33:21 +00:00
_pyio.py [3.6] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918). (GH-8012) 2018-06-29 22:30:07 +03:00
_sitebuiltins.py
_strptime.py Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by 2016-03-12 10:53:09 +02:00
_threading_local.py Delete a broken threading.local example (GH-5870) 2018-02-25 07:56:56 -08:00
_weakrefset.py
abc.py bpo-32473: Improve ABCMeta._dump_registry() readability (GH-5091) 2018-01-12 19:47:36 +09:00
aifc.py bpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is not found (GH-5240) 2018-02-20 14:17:30 -08:00
antigravity.py Issue #28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam. 2016-09-16 13:48:10 +02:00
argparse.py bpo-11874: fix assertion failure in argparse metavar handling (GH-1826) 2018-06-08 04:05:58 -07:00
ast.py Add ast.Constant 2016-01-26 00:40:57 +01:00
asynchat.py Issue #25002: Back out asyncore/asynchat deprecation. 2016-10-25 18:42:51 -07:00
asyncore.py bpo-30980: Fix double close in asyncore.file_wrapper (#2789) (#2898) 2017-07-27 01:27:08 +02:00
base64.py [3.6] bpo-34164: Fix handling of incorrect padding in base64.b32decode(). (GH-8351) (GH-8436) 2018-07-24 15:06:59 +03:00
bdb.py [3.6] bpo-32650 Add support for async generators and more test for coroutines in pdb (GH-5403). (#5411) 2018-01-29 08:51:07 +02:00
binhex.py
bisect.py
bz2.py Issue #28225: bz2 module now supports pathlib 2016-10-02 20:07:06 +03:00
calendar.py Issue #28255: calendar.TextCalendar().prmonth() no longer prints a space 2016-10-25 15:02:36 +03:00
cgi.py Issue #27105: Add cgi.test() to __all__, based on Jacek Kołodziej’s patch 2016-06-06 01:53:28 +00:00
cgitb.py bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442) 2018-04-29 12:10:39 -07:00
chunk.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
cmd.py
code.py Issue #27573 make the exit message configurable. 2016-08-24 01:42:15 +10:00
codecs.py bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4622) 2017-11-29 02:06:53 +02:00
codeop.py
colorsys.py
compileall.py Issue #28485: Merge single-threading fix from 3.5 into 3.6 2016-11-05 01:35:25 +00:00
configparser.py [3.6] bpo-29623: Make PathLike objects work with ConfigParser.read() (#242) (#432) 2017-03-03 20:48:37 +03:00
contextlib.py bpo-30266: support "= None" pattern in AbstractContextManager (GH-1448) (GH-2054) 2017-06-09 20:36:28 -07:00
copy.py Issue #26167: Minimized overhead in copy.copy() and copy.deepcopy(). 2016-03-06 14:56:57 +02:00
copyreg.py [3.6] bpo-31107: Fix copyreg mangled slot names calculation. (GH-2989) (#3003) 2017-08-05 18:01:10 +03:00
cProfile.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 [3.6] bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601) (GH-5603) 2018-02-10 00:01:40 +02:00
datetime.py [3.6] bpo-29097: Forego fold detection on windows for low timestamp values (GH-2385) (GH-8498) 2018-07-27 10:59:27 -04:00
decimal.py
difflib.py bpo-33224: PEP 479 fix for difflib.mdiff() (GH-6381) (GH-6391) 2018-04-05 12:18:02 -07:00
dis.py Issue #28317: The disassembler now decodes FORMAT_VALUE argument. 2016-10-08 12:34:25 +03:00
doctest.py #27364: fix "incorrect" uses of escape character in the stdlib. 2016-09-08 13:59:53 -04:00
dummy_threading.py
enum.py bpo-31947: remove None default for names param in Enum._create_ GH-4288 (GH-6485) 2018-05-15 08:19:50 -07:00
filecmp.py
fileinput.py Issue #25788: fileinput.hook_encoded() now supports an "errors" argument 2016-04-27 23:13:46 +03:00
fnmatch.py Issue #22493: Inline flags now should be used only at the start of the 2016-09-11 12:50:02 +03:00
formatter.py Issue #25407: Drop the mention of the formatter module being removed 2015-10-16 12:09:33 -07:00
fractions.py Issue #27832: Make _normalize parameter to Fraction.__init__ keyword-only. 2016-08-23 16:16:52 +01:00
ftplib.py [3.6] bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command (#1214) (#2886) 2017-07-26 14:11:25 +02:00
functools.py bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184) 2018-07-10 01:00:35 -07:00
genericpath.py Issue #26027, #27524: Add PEP 519/__fspath__() support to os and 2016-08-26 14:44:48 -07:00
getopt.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
getpass.py getpass: update docstrings (GH-49) (GH-419) 2017-03-02 21:56:06 -08:00
gettext.py [3.6] bpo-29755: Fixed the lgettext() family of functions in the gettext module. (GH-2266) (#2297) 2017-06-20 18:06:35 +03:00
glob.py Issue #27998: Removed workarounds for supporting bytes paths on Windows in 2016-10-05 23:17:10 +03:00
gzip.py Issue #28227: gzip now supports pathlib 2016-10-02 13:47:58 +03:00
hashlib.py Issue #16113: Add SHA-3 and SHAKE support to hashlib module. 2016-09-07 11:58:24 +02:00
heapq.py Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc 2016-04-15 02:14:19 +00:00
hmac.py Use sequence repetition instead of bytes constructor with integer argument. 2016-09-11 14:41:02 +03:00
imaplib.py bpo-33336, imaplib: Legalize MOVE command (GH-6569) 2018-07-23 06:17:25 -07:00
imghdr.py Issue #28228: imghdr now supports pathlib 2016-10-01 05:01:54 +03:00
imp.py [3.6] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) (#2364) 2017-06-23 11:23:36 -07:00
inspect.py bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) (#7205) 2018-05-29 11:59:27 -04:00
io.py Issue #1602: Windows console doesn't input or print Unicode (PEP 528) 2016-08-30 21:22:36 -07:00
ipaddress.py bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016) 2018-03-20 18:49:41 -07:00
keyword.py
linecache.py
locale.py [3.6] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708) (GH-6714) 2018-05-06 10:20:42 +03:00
lzma.py Issue #28229: lzma module now supports pathlib 2016-10-04 20:41:20 +03:00
macpath.py bpo-31802: Fix importing native path module before importing os. (GH-4017) (#5129) 2018-01-07 18:35:28 +02:00
macurl2path.py
mailbox.py Issue #28764: Fix a test_mailbox failure on Android API 24 when run as a non-root user. 2016-12-12 09:55:57 +01:00
mailcap.py #14977: Make mailcap respect the order of the lines in the mailcap file. 2016-09-09 20:04:23 -04:00
mimetypes.py [3.6] bpo-30824: Add mimetype for .json (GH-3048) (#3401) 2017-09-06 20:04:14 -04:00
modulefinder.py Issue #26881: Restored the name of scan_opcodes_25(). 2016-05-11 22:19:49 +03:00
netrc.py bpo-30806: Fix netrc.__repr__() format (GH-2491) 2017-11-03 14:36:45 +09:00
nntplib.py Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc 2016-04-15 02:14:19 +00:00
ntpath.py bpo-31802: Fix importing native path module before importing os. (GH-4017) (#5129) 2018-01-07 18:35:28 +02:00
nturl2path.py Issue21160: Correct comments in nturl2path. Patch by Jurko Gospodnetić. 2015-10-24 17:39:36 +03:00
numbers.py
opcode.py [3.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522) 2018-02-03 21:00:24 -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 Merge doc and comment fixes from 3.5 2016-04-19 23:23:16 +00:00
os.py [3.6] bpo-32297: Fix misspellings in Python source code comments (GH-4803) (#4864) 2017-12-14 16:19:51 +02:00
pathlib.py bpo-31972: Improve docstrings for pathlib classes (GH-5310) 2018-02-18 16:37:00 -08:00
pdb.py Issue #20766: Merge with 3.5. 2016-10-12 20:16:05 +02:00
pickle.py Issue #17711: Fixed unpickling by the persistent ID with protocol 0. 2016-07-17 11:35:35 +03:00
pickletools.py Use sequence repetition instead of bytes constructor with integer argument. 2016-09-11 14:41:02 +03:00
pipes.py
pkgutil.py Issue #17211: Yield a namedtuple in pkgutil. 2016-09-07 18:37:17 -07:00
platform.py bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684). (GH-8193) (GH-8195) 2018-07-09 14:38:27 +03:00
plistlib.py bpo-32072: Fix issues with binary plists. (GH-4455) (#4654) 2017-12-01 00:15:30 +02:00
poplib.py [3.6] bpo-32981: Fix catastrophic backtracking vulns (GH-5955) 2018-03-03 22:59:12 -08:00
posixpath.py bpo-31802: Fix importing native path module before importing os. (GH-4017) (#5129) 2018-01-07 18:35:28 +02:00
pprint.py Issue #26778: Fixed "a/an/and" typos in code comment and documentation. 2016-04-17 08:32:47 +03:00
profile.py
pstats.py bpo-29554: Improve docs for pstat module and profile. (#88) (#227) 2017-02-22 04:55:33 +03:00
pty.py
py_compile.py
pyclbr.py Removed unused imports. 2016-04-25 00:12:32 +03:00
pydoc.py bpo-940286: Fix pydoc to show cross refs correctly (GH-8390) 2018-07-22 23:51:28 -07:00
queue.py
quopri.py
random.py bpo-24567: Random subnormal.diff (GH-7954) (GH-7956) 2018-06-27 02:37:17 -07:00
re.py Issue #28637: Reapply changeset 223731925d06 2016-11-14 12:35:55 +01:00
reprlib.py Issue #26634: recursive_repr() now sets __qualname__ of wrapper. 2016-04-26 09:30:44 +03:00
rlcompleter.py Merge 3.5 2016-02-04 14:08:23 -05:00
runpy.py [backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder". 2016-09-07 00:52:20 -07:00
sched.py Issue #5830: Remove old comment. Add empty slots. 2016-10-24 07:31:55 -07:00
secrets.py Issue #29061: secrets.randbelow() would hang with a negative input 2016-12-29 22:54:25 -07:00
selectors.py Issue #27759: Fix selectors incorrectly retain invalid file descriptors. 2016-10-06 14:03:03 -04:00
shelve.py Fix misleading docsting of shelve.open(). (GH-6427) 2018-04-09 08:06:25 -07:00
shlex.py Fixed #29132: Updated shlex to work better with punctuation chars in POSIX mode. 2017-01-15 10:06:52 +00:00
shutil.py Issue #14061: Misc fixes and cleanups in archiving code in shutil. 2016-12-16 19:00:55 +02:00
signal.py Issue #25523: Further a-to-an corrections new in 3.5 2015-11-02 04:20:33 +00:00
site.py bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) (GH-7607) 2018-06-10 21:23:41 -04:00
smtpd.py Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek Kołodziej 2016-06-06 02:03:11 +00:00
smtplib.py bpo-32727: smtplib's SMTP.send_message behaves differently with from_addr and to_addrs (GH-5451) (#5455) 2018-01-31 15:54:09 -05:00
sndhdr.py
socket.py [3.6] bpo-31234, socket.create_connection(): Fix ref cycle (GH-3546) (#3552) 2017-09-13 15:54:34 -07:00
socketserver.py bpo-33540, socketserver: Add _block_on_close for tests (GH-7317) 2018-06-01 16:24:43 +02:00
sre_compile.py Issue #433028: Added support of modifier spans in regular expressions. 2016-09-10 00:57:55 +03:00
sre_constants.py [3.6] bpo-30398: Add a docstring for re.error. (GH-1647) (#1830) 2017-05-27 16:37:40 +03:00
sre_parse.py [3.6] bpo-30605: Fix compiling binary regexs with BytesWarnings enabled. (GH-2016) (#2214) 2017-06-15 16:55:22 +03:00
ssl.py [3.6] bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3 (GH-1363) (#3444) 2017-09-07 20:23:52 -07:00
stat.py
statistics.py Issue #27181 remove geometric_mean and defer for 3.7. 2016-10-05 03:24:45 +11:00
string.py bpo-31672: Fix string.Template accidentally matched non-ASCII identifiers (GH-3872) 2017-10-14 14:21:59 +09:00
stringprep.py
struct.py
subprocess.py [3.6] bpo-22635: Update the getstatusoutput docstring. (GH-3435) (#3439) 2017-09-07 16:44:58 -07:00
sunau.py
symbol.py Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations. 2016-09-08 20:50:03 -07:00
symtable.py Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations. 2016-09-08 20:50:03 -07:00
sysconfig.py Issue #28046: get_sysconfigdata_name() uses the _PYTHON_SYSCONFIGDATA_NAME 2016-09-11 22:22:24 +02:00
tabnanny.py fix function name in tabnanny documentation (GH-762) 2017-03-22 15:26:53 +08:00
tarfile.py bpo-34010: Fix tarfile read performance regression (GH-8020) 2018-07-04 01:43:42 -07:00
telnetlib.py #25485: Add context manager support to Telnet class. 2015-11-28 12:24:52 -05:00
tempfile.py bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925) 2018-05-17 09:46:00 -04:00
textwrap.py Issue #20491: The textwrap.TextWrapper class now honors non-breaking spaces. 2016-10-25 14:44:54 +03:00
this.py
threading.py bpo-33556: Remove reference to thread module from docstring (GH-6963) 2018-05-18 12:32:12 -07:00
timeit.py bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331) (GH-353) 2017-02-28 11:28:44 +08:00
token.py
tokenize.py [3.6] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (GH-8134) 2018-07-06 13:22:25 +03:00
trace.py bpo-31908: Fix output of cover files for trace module command-line tool. (GH-4205) 2018-04-30 22:03:29 -07:00
traceback.py [3.6] bpo-28603: Fix formatting tracebacks for unhashable exceptions (GH-4014) (#4024) 2017-10-18 01:14:19 +03:00
tracemalloc.py tracemalloc now supports domains 2016-03-22 12:58:23 +01:00
tty.py
turtle.py Correct spelling in documentation and code comment 2016-09-10 10:38:28 +00:00
types.py Issue #28003: Implement PEP 525 -- Asynchronous Generators. 2016-09-08 22:01:51 -07:00
typing.py Backport recent typing updates (GH-6759) 2018-05-10 23:15:14 -04:00
uu.py
uuid.py [3.6] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7014) 2018-05-21 15:20:55 +03:00
warnings.py Issue #28835: Tidy previous showwarning changes based on review comments. 2016-12-06 17:12:47 -05: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 Fix #29519: weakref spewing exceptions during interp finalization 2017-02-10 00:14:55 -08:00
webbrowser.py bpo-34019: Fix wrong arguments for Opera Browser (GH-8047) 2018-07-03 05:16:56 -07:00
xdrlib.py
zipapp.py Issue #26778: Fixed "a/an/and" typos in code comment and documentation. 2016-04-17 08:32:47 +03:00
zipfile.py [3.6] Revert bpo-26293 for zipfile breakage. See also bpo-29094. (GH-1484). (#1485) 2017-05-06 15:10:50 +03:00