summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.5] bpo-27945: Fixed various segfaults with dict. (GH-1657) (#1678)Serhiy Storchaka2017-05-202-0/+5
| | | | Based on patches by Duane Griffin and Tim Mitchell. (cherry picked from commit 753bca3934a7618a4fa96e107ad1c5c18633a683)
* [3.5] bpo-25794: Fix `type.__setattr__()` for non-interned attribute names. ↵Serhiy Storchaka2017-05-201-0/+3
| | | | | | | (GH-1652) (#1674) Based on patch by Eryk Sun. (cherry picked from commit d896985bb2de49046f9b6879e906d1e4db255e23)
* bpo-30301: Fix AttributeError when using SimpleQueue.empty() (#1601) (#1627)Xiang Zhang2017-05-171-0/+3
| | | | Under *spawn* and *forkserver* start methods, SimpleQueue.empty() could raise AttributeError due to not setting _poll in __setstate__.
* bpo-30357: test_thread now uses threading_cleanup() (#1592) (#1623)Victor Stinner2017-05-172-0/+6
| | | | | | | | test_thread: setUp() now uses support.threading_setup() and support.threading_cleanup() to wait until threads complete to avoid random side effects on following tests. Co-Authored-By: Grzegorz Grzywacz <grzegorz.grzywacz@nazwa.pl> (cherry picked from commit 79ef7f8e88a4972c4aecf95cfc5cd934f1861e08)
* bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1621)Victor Stinner2017-05-161-0/+4
| | | | | | | Catch the Windows socket WSAEINVAL error (code 10022) in imaplib and poplib on shutdown(SHUT_RDWR): An invalid operation was attempted This error occurs sometimes on SSL connections. (cherry picked from commit 83a2c2879839da2e10037f5e4af1bd1dafbf1a52)
* [3.5] bpo-30375: Correct the stacklevel of regex compiling warnings. ↵Serhiy Storchaka2017-05-161-0/+4
| | | | | | | | (GH-1595) (#1605) Warnings emitted when compile a regular expression now always point to the line in the user code. Previously they could point into inners of the re module if emitted from inside of groups or conditionals.. (cherry picked from commit c7ac7280c321b3c1679fe5f657a6be0f86adf173)
* bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1547)INADA Naoki2017-05-121-0/+3
| | | | | | | | | | | | | | | | | | * bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1097) when there are no more `await` or `yield (from)` before return in coroutine, cancel was ignored. example: async def coro(): asyncio.Task.current_task().cancel() return 42 ... res = await coro() # should raise CancelledError (cherry picked from commit 991adca012f5e106c2d4040ce619c696ba6f9c46) * fix test
* [3.5] bpo-29243: Fix Makefile with respect to --enable-optimizations ↵torsava2017-05-092-0/+5
| | | | | | | | | | | | | | | (GH-1478) (#1520) * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash. (cherry picked from commit a1054c3b0037d4c2a5492e79fc193f36245366c7)
* bpo-29990: Fix range checking in GB18030 decoder (#1495) (#1508)Xiang Zhang2017-05-091-0/+2
| | | When decoding a 4-byte GB18030 sequence, the first and third byte cannot exceed 0xFE.
* [3.5] Revert bpo-26293 for zipfile breakage. See also bpo-29094. (GH-1484). ↵Serhiy Storchaka2017-05-061-0/+2
| | | | | (#1486) (cherry picked from commit 3763ea865cee5bbabcce11cd577811135e0fc747)
* [3.5] bpo-30243: Fixed the possibility of a crash in _json. (GH-1420) (#1470)Serhiy Storchaka2017-05-051-0/+4
| | | | | | It was possible to get a core dump by using uninitialized _json objects. Now __new__ methods create initialized objects. __init__ methods are removed.. (cherry picked from commit 76a3e51a403bc84ed536921866c86dd7d07aaa7e)
* bpo-23404: make touch becomes make regen-all (#1405) (#1461) (#1465)Victor Stinner2017-05-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-23404: make touch becomes make regen-all (#1405) Don't rebuild generated files based on file modification time anymore, the action is now explicit. Replace "make touch" with "make regen-all". Changes: * Remove "make touch", Tools/hg/hgtouch.py and .hgtouch * Add a new "make regen-all" command to rebuild all generated files * Add subcommands to only generate specific files: - regen-ast: Include/Python-ast.h and Python/Python-ast.c - regen-grammar: Include/graminit.h and Python/graminit.c - regen-importlib: Python/importlib_external.h and Python/importlib.h - regen-opcode: Include/opcode.h - regen-opcode-targets: Python/opcode_targets.h - regen-typeslots: Objects/typeslots.inc * Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN * pgen is now only built by by "make regen-grammar" * Add $(srcdir)/ prefix to paths to source files to handle correctly compilation outside the source directory Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make" default target building Python. (cherry picked from commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b) * bpo-30273: Update sysconfig (#1464) The AST_H_DIR variable was removed from Makefile.pre.in by the commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b (bpo-23404). AST_H_DIR was hardcoded to "Include", so replace the removed variable by its content. Remove also ASDLGEN variable from sysconfig example since this variable was also removed. (cherry picked from commit b109a1d3360fc4bb87b9887264e3634632d392ca) (cherry picked from commit 9d02f562961efd12d3c8317a10916db7f77330cc)
* [3.5] bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (GH-1319) ↵Antoine Pitrou2017-05-041-0/+3
| | | | | | | | (#1455) * bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver * Tweak comment. (cherry picked from commit 6dd4d734ed207ba16b017e38f8909de7ef187e29)
* [3.5] bpo-28556: Routine updates to typing (GH-1366) (#1417)Mariatta2017-05-031-0/+4
| | | | | | - Add NoReturn type - Use WrapperDescriptorType (original PR by Jim Fasarakis-Hilliard) - Minor bug-fixes (cherry picked from commit f06e0218ef6007667f5d61184b85a81a0466d3ae)
* [3.6] bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS ↵Victor Stinner2017-05-031-0/+4
| | | | | | | | | (#463) (#1424) Skip some tests of select.poll when running on macOS due to unresolved issues with the underlying system poll function on some macOS versions. (cherry picked from commit de04644627f82d9dc48b3423def7ff5b4aa1926a) (cherry picked from commit 1d391f926b37484b8d4b326003a72c0084db19ec)
* Backport bpo-30205 to 3.5 (#1404)Antoine Pitrou2017-05-021-0/+2
|
* [3.5] bpo-30197: Enhance functions swap_attr() and swap_item() in ↵Serhiy Storchaka2017-04-281-0/+6
| | | | | | | | | | | test.support. (#1341) (#1346) They now work when delete replaced attribute or item inside the with statement. The old value of the attribute or item (or None if it doesn't exist) now will be assigned to the target of the "as" clause, if there is one. (cherry picked from commit d1a1def7bf221b04dcf3fc3a67aa19aa2f622f83)
* [3.5] bpo-30070: Fixed leaks and crashes in errors handling in the parser ↵Serhiy Storchaka2017-04-191-0/+2
| | | | | module. (GH-1131). (#1185) (cherry picked from commit a79f4c219531c05fc8f670c1e4bbf12c081935d3)
* [3.5] bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() ↵Serhiy Storchaka2017-04-191-0/+5
| | | | | | | | | (GH-1096) (GH-1180) (#1182) raised an error. (cherry picked from commit bf623ae8843dc30b28c574bec8d29fc14be59d86) (cherry picked from commit 680fea4067537a9b9c79aadd44a3a19e83cd2dbf)
* [3.5] bpo-29943: Do not replace the function PySlice_GetIndicesEx() with a ↵Serhiy Storchaka2017-04-161-2/+2
| | | | | macro (#1049) if Py_LIMITED_API is not defined.
* bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is ↵Xiang Zhang2017-04-151-3/+5
| | | | present (#1130) (#1151)
* [3.5] bpo-29694: race condition in pathlib mkdir with flags parents=True ↵Mariatta2017-04-141-0/+4
| | | | | (GH-1089). (GH-1127) (cherry picked from commit 22a594a0047d7706537ff2ac676cdc0f1dcb329c)
* [3.5] bpo-29692: contextlib.contextmanager may incorrectly unchain ↵Mariatta2017-04-131-0/+3
| | | | | | | | | | | RuntimeError (GH-949) (#1107) contextlib._GeneratorContextManager.__exit__ includes a special case to deal with PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context manager body. Previously this check was too permissive, and undid one level of chaining on *all* RuntimeError instances, not just those that wrapped a StopIteration instance. (cherry picked from commit 00c75e9a45ff0366c185e9e8a2e23af5a35481b0)
* bpo-26985: Add missing info of code object in inspect documentation ↵Xiang Zhang2017-04-131-0/+2
| | | | (GH-1090) (GH-1100)
* bpo-29506: Clarify deep copy note in copy moduleNick Coghlan2017-04-091-0/+1
| | | | | | | The reference to administrative data was confusing to readers, so this simplifies the note to explain that deep copying may copy more then you intended, such as data that you expected to be shared between copies. (cherry picked from commit 19e04942562a980ad2519f6ff79c455a7472783b)
* bpo-29998: Pickling and copying ImportError now preserves name and path ↵Serhiy Storchaka2017-04-081-0/+3
| | | | | | (#1010) (#1043) attributes. (cherry picked from commit b785396ab451b0c9d6ae9ee5a9e56c810209a6cb)
* [3.5] bpo-19225: Lack of c api exceptions doc (#965)cocoatomo2017-04-061-0/+1
| | | | | | * Keep the c-api exception doc up-to-date cherry-pick'ed from ec1f5df..e3d6db3 and fix conflict
* Miscellaneous minor fixes of Misc/NEWS formatting. (#1002) (#1006)Serhiy Storchaka2017-04-051-9/+9
| | | (cherry picked from commit a0157b5f11e621f2196af4e918b9f07688a6cd1c)
* bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#912)T. Wouters2017-03-301-0/+3
| | | | | | Fix the use of recursion in itertools.chain.from_iterable. Using recursion is unnecessary, and can easily cause stack overflows, especially when building in low optimization modes or with Py_DEBUG enabled. (cherry picked from commit 5466d4af5fe76ec0a5fbc8a05675287d9e8e9d14)
* bpo-29935: Fixed error messages in the index() method of tuple, list and ↵Serhiy Storchaka2017-03-301-0/+3
| | | | | | | deque (#887) (#907) (#909) when pass indices of wrong type. (cherry picked from commit d4edfc9abffca965e76ebc5957a92031a4d6c4d4) (cherry picked from commit bf4bb2e43030661e568d5d4b046e8b9351cc164c)
* bpo-27863: Fixed multiple crashes in ElementTree. (#765) (#904)Serhiy Storchaka2017-03-301-0/+3
| | | (cherry picked from commit 576def096ec7b64814e038f03290031f172886c3)
* bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-884)Xiang Zhang2017-03-291-0/+4
| | | | an exception raised at the very first of an iterable would cause pools behave abnormally (swallow the exception or hang)
* bpo-29643: Fix check for --enable-optimizations (GH-871)INADA Naoki2017-03-281-0/+5
| | | | | | The presence of the ``--enable-optimizations`` flag is indicated by the value of ``$enableval``, but the configure script was checking ``$withval``, resulting in the ``--enable-optimizations`` flag being effectively ignored. (cherry picked from commit 8cea5929f52801b0ce5928b46ef836e99a24321a)
* bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805) ↵Serhiy Storchaka2017-03-241-0/+3
| | | | | | | (#807) when the OS gives priority to errors such as EACCES over EEXIST. (cherry picked from commit af7b9ec5c855366feef4c67dc492d64b3baf84ca)
* bpo-29861: release references to multiprocessing Pool tasks (#743) (#801)Antoine Pitrou2017-03-241-0/+3
| | | | | | | | | | | | | | | | * bpo-29861: release references to multiprocessing Pool tasks (#743) * bpo-29861: release references to multiprocessing Pool tasks Release references to tasks, their arguments and their results as soon as they are finished, instead of keeping them alive until another task arrives. * Comments in test (cherry picked from commit 8988945cdc27ffa86ba8c624e095b51c459f5154) * Fix Misc/NEWS??
* faulthandler: Restore the old sigaltstack during teardown (GH-777) (GH-796)Christophe Zeitouny2017-03-242-0/+4
| | | (cherry picked from commit 20fbf8accd494fd15b0fc4c84928178c71ead4d1)
* bpo-28876: bool of large range raises OverflowError (#699) (#735)Serhiy Storchaka2017-03-201-0/+3
| | | | (cherry picked from commit e46fb8611867fa3b407a813f53137929b7cb4a10)
* bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. ↵Serhiy Storchaka2017-03-191-0/+2
| | | | | (#514) (#727) (cherry picked from commit a5af6e1af77ee0f9294c5776478a9c24d9fbab94)
* bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords ↵Michael Seifert2017-03-152-0/+4
| | | | are not strings (#649) (#672)
* bpo-29742: asyncio get_extra_info() throws exception (#525) (#646)Yury Selivanov2017-03-121-0/+3
|
* Fix wrapping into StopIteration of return values in generators and ↵Yury Selivanov2017-03-121-0/+2
| | | | coroutines (#644) (#648)
* [3.5] bpo-8256: Fixed possible failing or crashing input() (#642)Serhiy Storchaka2017-03-121-0/+3
| | | | | | | if attributes "encoding" or "errors" of sys.stdin or sys.stdout are not set or are not strings. (cherry picked from commit c2cf12857187aa147c268651f10acd6da2c9cb74)
* bpo-28298: make array 'Q', 'L' and 'I' accept big intables as elementsorenmn2017-03-091-0/+3
|
* bpo-29537: Also cover 3.5.2 in NEWS entryNick Coghlan2017-03-081-1/+1
|
* [3.5] bpo-29537: Tolerate legacy invalid bytecode (#169)Nick Coghlan2017-03-081-0/+6
| | | | | | | | | | | | | | | | | | bpo-27286 fixed a problem where BUILD_MAP_UNPACK_WITH_CALL could be emitted with an incorrect oparg value, causing the eval loop to access the wrong stack entry when attempting to read the function name. The associated magic number change caused significant problems when attempting to upgrade to 3.5.3 for anyone that relies on pre-cached bytecode remaining valid across maintenance releases. This patch restores the ability to import legacy bytecode generated by 3.5.0, 3.5.1 or 3.5.2, and modifies the eval loop to avoid any harmful consequences from the potentially malformed legacy bytecode. Original import patch by Petr Viktorin, eval loop patch by Serhiy Storchaka, and tests and integration by Nick Coghlan.
* bpo-29615: backport to 3.5 (#479)Petr Motejlek2017-03-051-0/+4
|
* [3.5] bpo-27593: Get SCM build info from git instead of hg. (#446) (#454) (#455)Ned Deily2017-03-041-5/+0
| | | | | | | | | | | | * bpo-27593: Get SCM build info from git instead of hg. (#446) sys.version and the platform module python_build(), python_branch(), and python_revision() functions now use git information rather than hg when building from a repo. Based on original patches by Brett Cannon and Steve Dower. (cherry picked from commit 5c4b0d063aba0a68c325073f5f312a2c9f40d178) (cherry picked from commit 95c50e5aed9e5683676e18349dd94b11901a66b3)
* bpo-29572: Update Windows build to OpenSSL 1.0.2k (GH-443)Zachary Ware2017-03-031-0/+5
|
* bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405)Seth M. Larson2017-03-031-0/+3
|
* bpo-29703: asyncio: Fix creating new event loops in child processes. (#411)Yury Selivanov2017-03-031-0/+3
|