summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bump to 3.6.4rc1v3.6.4rc1Ned Deily2017-12-052-6/+6
|
* Update NEWS and pydoc topics.Ned Deily2017-12-05112-280/+1147
|
* Tidy NEWS entry.Ned Deily2017-12-051-10/+2
|
* Add a missing space in tkinter documentation. (GH-4692) (GH-4722)Miss Islington (bot)2017-12-051-1/+1
| | | (cherry picked from commit ae342cf7deebdcf2035f4064609b32b2102dadcf)
* [3.6] bpo-31380: Skip test_httpservers test_undecodable_file on macOS. ↵Miss Islington (bot)2017-12-052-1/+3
| | | | | | (GH-4720) (#4721) The undecodable file name cannot be created on macOS APFS file systems. (cherry picked from commit b3edde8dd44c878e9f039a2165d00ff075157d4b)
* bpo-28791: Update Windows builds to use SQLite 3.21.0. (GH-4246). (GH-4717)Mariatta2017-12-054-3/+4
| | | (cherry picked from commit 31af650ee25f65794b75d4dfefed6fe4758781c1)
* [3.6] bpo-31392: Update macOS installer to use OpenSSL 1.0.2m (GH-4715) (#4716)Miss Islington (bot)2017-12-052-4/+4
| | | (cherry picked from commit 24e046987b8e34bb4f1f3fd9bd31f1d605e347dc)
* [bpo-28556] Minor fixes for typing module (GH-4710) (#4713)Miss Islington (bot)2017-12-053-10/+55
| | | (cherry picked from commit 29bc19321018ec6e58f9f4da9c18c42e9a9c580e)
* [3.6] bpo-28791: Update macOS installer to use SQLite 3.21.0. (#4245) (#4711)Ned Deily2017-12-052-3/+4
|
* bpo-32207: Improve tk event exception tracebacks in IDLE. (GH-4703) (#4705)Miss Islington (bot)2017-12-042-5/+15
| | | | | | | | 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-046-563/+511
| | | | | | | | | | | | | | | | | | | | | 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)
* bpo-31619: Fixed integer overflow in converting huge strings to int. ↵Miss Islington (bot)2017-12-031-3/+11
| | | | | (GH-3884) (#4690) (cherry picked from commit 29ba688034fc4eef0693b86002cf7bee55d692af)
* [3.6] bpo-32176: Set CO_NOFREE in the code object constructor (GH-4684)Nick Coghlan2017-12-034-13/+59
| | | | | | | | | 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)
* [3.6] bpo-31589 : Build PDF using xelatex for better UTF8 support. (GH-3940) ↵Miss Islington (bot)2017-12-021-3/+2
| | | | | | (#4683) Also addresses doc build failures documented in bpo-32200. (cherry picked from commit 7324b5ce8e7c031a0a3832a6a8d7c639111ae0ff)
* Don't hide unexpected errors in PyErr_WarnExplicitObject(). (GH-4585) (#4662)Miss Islington (bot)2017-12-011-9/+10
| | | (cherry picked from commit a561862048555d555fa4850eaf832ae5474c7e1f)
* bpo-32186: Release the GIL during lseek and fstat (GH-4652) (#4661)Miss Islington (bot)2017-12-012-1/+8
| | | | | | | In _io_FileIO_readall_impl(), lseek() and _Py_fstat_noraise() were called without releasing the GIL. This can cause all threads to hang for unlimited time when calling FileIO.read() and the NFS server is not accessible. (cherry picked from commit 6a89481680b921e7b317c29877bdda9a6031e5ad)
* bpo-20891: Fix PyGILState_Ensure() (#4650) (#4655)Victor Stinner2017-11-304-26/+174
| | | | | | | | | | | | | | | 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)
* [3.6] make tags: index also Modules/_ctypes/ (#4648) (#4659)Victor Stinner2017-11-303-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `make tags` fixes (GH-717) * Fix `make tags` warnings `make tags` target tries to find C sources and headers in "Grammar" and "Mac" folders and generates these warnings: ctags: Warning: cannot open source file "Grammar/*.[ch]" : No such file or directory ctags: Warning: cannot open source file "Mac/*.[ch]" : No such file or directory This commit changes $SRCDIRS variable in configure.ac to remote these directories. This variable is used only for tags generation. Also, "configure" was regenerated with `autoreconf`. * Fix `make tags` fail on non-default tag names When ctags overrides default tags filename (e.g. `-f .tags`) `make tags` is failed because it assumes to see default `tags` filename: sort: cannot read: tags: No such file or directory This commit explicitly specifies "tags" filename for tags generation. (cherry picked from commit 8a543c0bc7347d5b333f334d157bf4a7cd33c14a) * make tags: index also Modules/_ctypes/ (#4648) Avoid also "cd $(srcdir)" to not change the current directory. (cherry picked from commit 3be3b97a9709d3cd5303175ddbffa7dcca57ac3e)
* bpo-32072: Fix issues with binary plists. (GH-4455) (#4654)Miss Islington (bot)2017-11-303-36/+112
| | | | | | | * 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-303-40/+164
| | | | | | (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-302-0/+6
| | | | bpo-31705. (cherry picked from commit 86afc1f2a7fb3afe00779c6426bc141bc795d9a3)
* [3.6] bpo-30923, bpo-31279: Fix GCC warnings (#4620)Victor Stinner2017-11-292-1/+10
| | | | | | | | | | * bpo-30923: Silence fall-through warnings in libexpat build. (#3205) (cherry picked from commit 9e1e6f528f3fec16b9bd99f5ee38048ffec04a81) * bpo-31279: Silence -Wstringop-overflow warning. (#3207) (cherry picked from commit dce6502059f46a04f90938b9d832394c8215397b)
* 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-292-498/+2
| | | (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-293-5/+24
| | | | | | | (#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-282-2/+2
| | | | | | | | | | * 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".
* Use raw strings in the re module examples. (GH-4616) (#4617)Miss Islington (bot)2017-11-281-4/+4
| | | (cherry picked from commit c615be5166ed338c052fa67fe781b9bfe0dfb78c)
* bpo-31440: Changed default module search path for windows (#4613)Miss Islington (bot)2017-11-281-2/+2
| | | (cherry picked from commit 08d2b86a1058b733bb7f1ae2b55818dd9687d21c)
* 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-32051: Fix name shadowing in multiprocessing docs (GH-4469)Miss Islington (bot)2017-11-271-2/+2
| | | (cherry picked from commit c172fc5031a4035986bef0b2fcef906706d7abf3)
* bpo-29879: Update typing documentation. (GH-4573) (GH-4574)Miss Islington (bot)2017-11-262-1/+13
| | | | | - Add "version added: 3.5.2" note where it was missing. - Remove the mention that Reversible is new in 3.5.2 (cherry picked from commit 0cd2e81bea639828d7c9a7afc61fb1da9699492c)
* bpo-32059: setup.py now also searches the sysroot paths (GH-4452) (#4562)Miss Islington (bot)2017-11-252-7/+39
| | | | | detect_modules() in setup.py now also searches the sysroot paths when cross-compiling. (cherry picked from commit 77f5139954a878b856b0ac4c76486b27b6f4ec26)
* [Doc] Update opcode for var-positional arguments (GH-4446) (#4457)Miss Islington (bot)2017-11-251-1/+1
| | | | `BUILD_MAP_UNPACK_WITH_CALL` was duplicated as the opcode for both var-positional and var-keyword arguments. The opcode for the former was updated as `BUILD_TUPLE_UNPACK_WITH_CALL`. (cherry picked from commit 0c71653cb8231f176d02140fdef3706de2e93b9f)
* Improve Scheduler Objects documentation. (GH-4556) (GH-4557)Miss Islington (bot)2017-11-251-1/+1
| | | | Mention that the lower the priority number, the higher priority it represents. (cherry picked from commit 9d5ec808de2c1359f434cc2fa8378458e4339c96)
* bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443) ↵Miss Islington (bot)2017-11-251-3/+3
| | | | | | (GH-4554) The provided code example was supposed to find repeated words, however it returned false results. (cherry picked from commit 610e5afdcbe3eca906ef32f4e0364e20e1b1ad23)
* 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)
* Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414) (GH-4549)Miss Islington (bot)2017-11-251-2/+2
| | | (cherry picked from commit f8802d80b32dbc64f9e0e72270695d24ac50e246)
* Improve the String tutorial docs (GH-4541) (GH-4545)Miss Islington (bot)2017-11-241-7/+7
| | | | | | The paragraph that contains example of string literal concatenation was placed after the section about concatenation using the '+' sign. Moved the paragraph to the appropriate section. (cherry picked from commit 78a5722ae950b80a4b3d13377957f3932195aef3)
* [3.6] bpo-12239: Make GetProperty() return None for VT_EMPTY (GH-4539)Berker Peksag2017-11-243-0/+11
| | | | | | | | | 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-243-0/+20
| | | | | | | | | | | 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)
* Extending Python Doc minor updates (GH-4518) (GH-4535)Miss Islington (bot)2017-11-242-4/+4
| | | | | Move footnote markers to be closer to the related terminology: before the end of the sentence, instead of after. (cherry picked from commit cdfe910e746e1d0fc43429b8cc3384a65a19b358)
* bpo-31325: Fix usage of namedtuple in RobotFileParser.parse() (GH-4529) (#4533)Miss Islington (bot)2017-11-234-12/+19
| | | (cherry picked from commit 3df02dbc8e197053105f9dffeae40b04ec66766e)
* bpo-30456: Clarify example for duplicates in second argument of isinstance ↵Berker Peksag2017-11-231-1/+2
| | | | | (GH-1699) (cherry picked from commit 26248ef58dcf49619930ffa2e050ffa687a88601)