summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Update NEWS and pydoc topics.Ned Deily2017-12-051-15/+5
|
* [3.6] bpo-31380: Skip test_httpservers test_undecodable_file on macOS. ↵Miss Islington (bot)2017-12-051-1/+2
| | | | | | (GH-4720) (#4721) The undecodable file name cannot be created on macOS APFS file systems. (cherry picked from commit b3edde8dd44c878e9f039a2165d00ff075157d4b)
* [bpo-28556] Minor fixes for typing module (GH-4710) (#4713)Miss Islington (bot)2017-12-052-10/+52
| | | (cherry picked from commit 29bc19321018ec6e58f9f4da9c18c42e9a9c580e)
* bpo-32207: Improve tk event exception tracebacks in IDLE. (GH-4703) (#4705)Miss Islington (bot)2017-12-041-5/+9
| | | | | | | | When tk event handling is driven by IDLE's run loop, a confusing and distracting queue.EMPTY traceback context is no longer added to tk event exception tracebacks. The traceback is now the same as when event handling is driven by user code. Patch based on a suggestion by Serhiy Storchaka. (cherry picked from commit 1e2fcac4972530aa2c963d7e4011021df5ba866e)
* bpo-30928: Update idlelib/NEWS.txt to 2017 Dec 3. (GH-4701) (#4702)Miss Islington (bot)2017-12-041-0/+16
| | | | Patches are in 3.7.0a3 even if this update is not. (cherry picked from commit 21255fc3932a60c064f85c0fe68f2840f390ebe4)
* bpo-27240 Rewrite the email header folding algorithm. (GH-3488) (#4693)Miss Islington (bot)2017-12-045-563/+508
| | | | | | | | | | | | | | | | | | | | | The original algorithm tried to delegate the folding to the tokens so that those tokens whose folding rules differed could specify the differences. However, this resulted in a lot of duplicated code because most of the rules were the same. The new algorithm moves all folding logic into a set of functions external to the token classes, but puts the information about which tokens can be folded in which ways on the tokens...with the exception of mime-parameters, which are a special case (which was not even implemented in the old folder). This algorithm can still probably be improved and hopefully simplified somewhat. Note that some of the test expectations are changed. I believe the changes are toward more desirable and consistent behavior: in general when (re) folding a line the canonical version of the tokens is generated, rather than preserving errors or extra whitespace. (cherry picked from commit 85d5c18c9d83a1d54eecc4c2ad4dce63194107c6)
* [3.6] bpo-32176: Set CO_NOFREE in the code object constructor (GH-4684)Nick Coghlan2017-12-031-0/+45
| | | | | | | | | Previously, CO_NOFREE was set in the compiler, which meant it could end up being set incorrectly when code objects were created directly. Setting it in the constructor based on freevars and cellvars ensures it is always accurate, regardless of how the code object is defined. (cherry picked from commit 078f1814f1a4413a2a0fdb8cf4490ee0fc98ef34)
* bpo-20891: Fix PyGILState_Ensure() (#4650) (#4655)Victor Stinner2017-11-301-9/+37
| | | | | | | | | | | | | | | When PyGILState_Ensure() is called in a non-Python thread before PyEval_InitThreads(), only call PyEval_InitThreads() after calling PyThreadState_New() to fix a crash. Add an unit test in test_embed. Enhance also embedded tests, backport from master: * Add test_pre_initialization_api() * Set PYTHONIOENCODING environment variable in test_forced_io_encoding() (cherry picked from commit b4d1e1f7c1af6ae33f0e371576c8bcafedb099db)
* bpo-32072: Fix issues with binary plists. (GH-4455) (#4654)Miss Islington (bot)2017-11-302-36/+106
| | | | | | | * Fixed saving bytearrays. * Identical objects will be saved only once. * Equal references will be load as identical objects. * Added support for saving and loading recursive data structures. (cherry picked from commit a897aeeef647259a938a36cb5eb6680c86021c6a)
* bpo-28416: Break reference cycles in Pickler and Unpickler subclasses ↵Miss Islington (bot)2017-11-301-2/+63
| | | | | | (GH-4080) (#4653) with the persistent_id() and persistent_load() methods. (cherry picked from commit 986375ebde0dd5ff2b7349e445a06bd28a3a8ee2)
* Skip test_socket.test_sha256() on linux < 4.5 (GH-4643) (#4645)Miss Islington (bot)2017-11-301-0/+3
| | | | bpo-31705. (cherry picked from commit 86afc1f2a7fb3afe00779c6426bc141bc795d9a3)
* bpo-32030: Fix test_sys.test_getallocatedblocks() (#4637)Victor Stinner2017-11-291-0/+4
| | | Skip the test if PYTHONMALLOC environment variable is set.
* [3.6] bpo-32107 - Backport bitmask check fix (GH-4576) (#4591)Barry Warsaw2017-11-291-14/+12
| | | Remove a flakey test and rewrite another one for readability.
* bpo-32139: test_strftime does not anymore modify the locale (GH-4569) (#4635)Miss Islington (bot)2017-11-291-2/+4
| | | (cherry picked from commit cc55e78acab93a495c974b9a2ea71c8bb9cc2f5d)
* bpo-32164: Delete unused file idlelib/tabbedpages.py (GH-4628) (#4631)Miss Islington (bot)2017-11-291-498/+0
| | | (cherry picked from commit 041efd292ebff46060fc1680b0608b1d4c876a48)
* bpo-30781: Remove unused imports in idlelib.configdialog. (GH-4627) (#4630)Miss Islington (bot)2017-11-291-4/+3
| | | (cherry picked from commit e8f7c78a868834bb53fa0ac903fc87785112f49e)
* bpo-32100: Delete unneeded import in idlelib.pathbrowser. (GH-4626) (#4629)Miss Islington (bot)2017-11-291-1/+0
| | | (cherry picked from commit fd6f8c56b9a757210e8ceaea9edc50e502dc2085)
* bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) ↵Miss Islington (bot)2017-11-292-5/+21
| | | | | | | (#4622) characters/bytes for non-negative n. This makes it compatible with read() methods of other file-like objects. (cherry picked from commit 219c2de5ad0fdac825298bed1bb251f16956c04a)
* bpo-32155: Bugfixes found by flake8 F841 warnings (#4619)Victor Stinner2017-11-281-1/+1
| | | | | | | | | | * turtledemo: wait until macOS osascript command completes to not create a zombie process * Tools/scripts/treesync.py: declare 'default_answer' and 'create_files' as globals to modify them with the command line arguments. Previously, -y, -n, -f and -a options had no effect. flake8 warning: "F841 local variable 'p' is assigned to but never used".
* asyncio: Fix BaseSelectorEventLoopTests (GH-4595) (#4599)Miss Islington (bot)2017-11-281-0/+2
| | | | | Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X dev). (cherry picked from commit 92f9339a58a613a56683510499509d1b702921a8)
* asyncio: Remove unused Future._tb_logger attribute (GH-4596) (#4598)Miss Islington (bot)2017-11-281-8/+1
| | | | | It was only used on Python 3.3, now only Future._log_traceback is used. (cherry picked from commit c16bacec3c2f08a74e4dc282f7d84f17ec70d0d5)
* pythoninfo: add Py_DEBUG (#4198) (#4580)Victor Stinner2017-11-271-0/+8
| | | (cherry picked from commit afd055a59fe0291881fc2459215ce106e424da51)
* bpo-32128: Skip test_nntplib.test_article_head_body() (GH-4552) (#4553)Miss Islington (bot)2017-11-251-0/+1
| | | | | | The NNTP server currently has troubles with SSL, whereas we don't have the control on this server. This test blocks all CIs, so disable it until a fix can be found. (cherry picked from commit 706cb3162e15271ecfeba15909ed48a3a437009f)
* [3.6] bpo-12239: Make GetProperty() return None for VT_EMPTY (GH-4539)Berker Peksag2017-11-241-0/+7
| | | | | | | | | The previous behavior was to raise an exception NotImplementedError: result of type 0 when the value of the property is VT_EMPTY. (cherry picked from commit 19fb134185ce155bc53f517116fca73093ba55e9)
* bpo-12382: Make OpenDatabase() raise better exception messages (GH-4528)Miss Islington (bot)2017-11-241-0/+12
| | | | | | | | | | | Previously, 'msilib.OpenDatabase()' function raised a cryptical exception message when it couldn't open or create an MSI file. For example: Traceback (most recent call last): File "<stdin>", line 1, in <module> _msi.MSIError: unknown error 6e (cherry picked from commit 4864a619dc1cc9092780ccf5a6327e8abf66133d)
* bpo-31325: Fix usage of namedtuple in RobotFileParser.parse() (GH-4529) (#4533)Miss Islington (bot)2017-11-232-8/+10
| | | (cherry picked from commit 3df02dbc8e197053105f9dffeae40b04ec66766e)
* [3.6] bpo-31324: Optimize support._match_test() (#4523)Victor Stinner2017-11-234-15/+118
| | | | | | | | | | | | | | | | | | | * bpo-31324: Optimize support._match_test() (#4421) * Rename support._match_test() to support.match_test(): make it public * Remove support.match_tests global variable. It is replaced with a new support.set_match_tests() function, so match_test() doesn't have to check each time if patterns were modified. * Rewrite match_test(): use different code paths depending on the kind of patterns for best performances. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 803ddd8ce22f0de3ab42fb98a225a704c000ef06) * bpo-31324: Fix test.support.set_match_tests(None) (#4505) (cherry picked from commit bb11c3c967afaf263e00844d4ab461b7fafd6d36)
* bpo-1102: View.Fetch() now returns None when it's exhausted (GH-4459)Berker Peksag2017-11-231-1/+39
| | | | (cherry picked from commit bdb8315c21825487b54852ff0511fb4881ea2181)
* [3.6] bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (GH-4484) (#4512)Terry Jan Reedy2017-11-235-27/+88
| | | | Patch mostly by Cheryl Sabella. (cherry picked from commit 20d48a44a54ed5e4a6df00e89ae27e3983128265)
* bpo-30904: Removed duplicated Host: header. (GH-4465) (#4468)Miss Islington (bot)2017-11-191-1/+3
| | | (cherry picked from commit e96ba183c43ad6633b5d014b3dc57433e2802faf)
* bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812) ↵Miss Islington (bot)2017-11-191-1/+1
| | | | | | (GH-4466) TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed. (cherry picked from commit afad147b59fe84b12317f7340ddd2deeecb22321)
* bpo-31701: faulthandler: ignore MSC and COM Windows exception (#3929) (#4416)Victor Stinner2017-11-161-0/+16
| | | (cherry picked from commit 6e3d6b5dc22cd06d8c4d44a38a8a3415e4bebb16)
* bpo-32034: Make IncompleteReadError & LimitOverrunError pickleable GH-4409 ↵Miss Islington (bot)2017-11-162-0/+24
| | | | | (#4411) (cherry picked from commit 43605e6bfa8d49612df4a38460d063d6ba781906)
* bpo-32011: Revert "Issue GH-15480: Remove the deprecated and unused ↵Miss Islington (bot)2017-11-151-0/+23
| | | | | | | | TYPE_INT64 code from marshal." (GH-4381) (#4405) Simplify the reverted code. This reverts commit e9bbe8b87ba2874efba0474af5cc7d5941dbf742. (cherry picked from commit 00987f6230fcdbecc8d9ab4b2b9fae8f99a1a4a9)
* [3.6] bpo-31949: Fixed several issues in printing tracebacks ↵Serhiy Storchaka2017-11-151-0/+33
| | | | | | | | | | | | (PyTraceBack_Print()). (GH-4289) (#4406) * Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks. * Setting sys.tracebacklimit to None now causes using the default limit. * Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using the limit LONG_MAX rather than the default limit. * Fixed integer overflows in the case of more than 2**31 traceback items on Windows. * Fixed output errors handling.. (cherry picked from commit edad8eebeee3c99e324a7f1ac5073167c2b0b54d)
* bpo-32032: Test both implementations of module-level pickle API. (GH-4401) ↵Miss Islington (bot)2017-11-153-18/+25
| | | | | (#4403) (cherry picked from commit 6545256df93ba54f811206107274cfa5a6d76b86)
* [3.6] bpo-32015: Asyncio looping during simultaneously socket read/write ↵Andrew Svetlov2017-11-142-32/+71
| | | | | | | | | | | | | | an… (GH-4386) (#4393) * bpo-32015: Asyncio cycling during simultaneously socket read/write and reconnection * Tests fix * Tests fix * News add * Add new unit tests. (cherry picked from commit e1d62e0b7cc842d6b75b4d480391f4a94e503255)
* [3.6] bpo-28759: Skip some tests on PermissionError raised by Android ↵xdegaye2017-11-127-35/+50
| | | | | | (GH-4350) (#4380) (cherry picked from commit 92c2ca7633c881a56157f2fb8b2e1b8c7114e5fb)
* [3.6] bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160). ↵xdegaye2017-11-121-0/+62
| | | | | (#4379) (cherry picked from commit e0582a37c8d1776a2fd4968e9216f3a05f780276)
* bpo-31999: Fix test_venv in case the zlib module is not available. (GH-4359) ↵Miss Islington (bot)2017-11-101-1/+2
| | | | | (#4360) (cherry picked from commit 5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9)
* bpo-31222: Make (datetime|date|time).replace return subclass type in Pure ↵Miss Islington (bot)2017-11-102-3/+17
| | | | | Python (GH-4176) (#4356) (cherry picked from commit 191e993365ac3206f46132dcf46236471ec54bfa)
* bpo-31620: have asyncio/queues not leak memory when you've exceptions during ↵Miss Islington (bot)2017-11-072-0/+23
| | | | | waiting (GH-3813) (#4326) (cherry picked from commit c62f0cb3b1f6f9ca4ce463b1c99b0543bdfa38d6)
* [3.6] bpo-31970: Reduce performance overhead of asyncio debug mode. ↵Antoine Pitrou2017-11-076-7/+37
| | | | | | (GH-4314) (#4322) * bpo-31970: Reduce performance overhead of asyncio debug mode.. (cherry picked from commit 921e9432a1461bbf312c9c6dcc2b916be6c05fa0)
* bpo-31960: Fix asyncio.Future documentation for thread (un)safety. (GH-4319) ↵Miss Islington (bot)2017-11-071-1/+3
| | | | | (#4320) (cherry picked from commit 22b1128559bdeb96907da5840960691bb050d11a)
* Fix the sizeof test for dicts with shared keys. (GH-4311) (#4312)Miss Islington (bot)2017-11-071-5/+10
| | | | | By accident the size of the empty dict keys object matched the size of values array. (cherry picked from commit 39a156c505b7dc431a0a4cffcbefca577848db38)
* bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Miss Islington (bot)2017-11-071-0/+3
| | | | | object is uninitialized (GH-3958) (#4303) (cherry picked from commit edb13ae48c17210fa4b2d40a6833ca09db5c121b)
* bpo-31770: Prevent a crash and refleaks when calling ↵Miss Islington (bot)2017-11-071-0/+18
| | | | | sqlite3.Cursor.__init__() more than once (GH-3968) (#4301) (cherry picked from commit e56ab746a965277ffcc4396d8a0902b6e072d049)
* [3.6] Fix miscellaneous typos in idlelib (GH-4275) (#4291)Terry Jan Reedy2017-11-064-5/+5
| | | Manual partial backport of patch that fixed nearly 50 other files.
* bpo-9678: Fix determining the MAC address in the uuid module. (GH-4264) (#4269)Miss Islington (bot)2017-11-041-2/+16
| | | | | | | * Using ifconfig on NetBSD and OpenBSD. * Using arp on Linux, FreeBSD, NetBSD and OpenBSD. Based on patch by Takayuki Shimizukawa. (cherry picked from commit ee1a9a2b78d5b6bb1a8148fc5fcf365e6d4e9e67)
* bpo-31924: Fix test_curses on NetBSD 8. (GH-4228) (#4259)Miss Islington (bot)2017-11-031-2/+4
| | | (cherry picked from commit a7723d8b09f516a2b75837a3527b8cc7bee89fad)