Commit Graph

98544 Commits

Author SHA1 Message Date
Ned Deily ff69423492 Python 3.6.4rc1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAlomWJMACgkQLTR+pqpl
 Qh2zrg/+Pt0zn4IwkN/Kjd8K/anUMiNtLfhXalFXgYuyK0kkhkQD58Uh2jGD3zfq
 zrDT2dsFSmLMthIIrHade1kznnQ752+uIAL4Ohytk71vTo2Pjmfd38wWRtE8unHm
 8WKHDraR7mQa5HeALOAiwdKZvfMW17SqUiffhbBcz6dOY1sgnR8LfvsgM8BR/IQK
 oBm2Ywpl8tJ7BNRTmKG9HvxZURhV/6D5MGEJA1W7cQHS9RAdZ5zqlTbqB6K2tCl4
 o91DXAfKatCi9gBJfx3vPS+Cw557wPFkVcwRSUrgns3l0hrFS5n77uHoJpKlT2lx
 e0YYx/EilES2UpgtCqPswNpvNIs0wui83ZSJFvDy5OTPnDAImZ0v8iNc1c729bbD
 JsOPXNXv9mxtkrmbWEzuDJp0vI4VrjLbCiIOtLbbQD8n01FqgimoUPyPGpPr2Gwl
 8a7eUs5l3a1fr8S4urxn4W+aVxLo2txtP5j+zRtw0o1OPX1qnJ2ajOS9gr6Q0Oip
 1crR/Um7YIP8YqXqhq54YqYvVDjOg4/Y9F77fUNTiKRP4N8Ungl5GXv2yG8bJ5Fl
 lWDa7o+WWJIOPZMW9ItTexvZy/4oiGSShN/i0qeiBNLvA9kUby+POxCzk4ipPymP
 4DQPWU+e+OEvyILzBuRPyV+4buONMml1TUuQQPUJv+IkoeJ5OAo=
 =2R3W
 -----END PGP SIGNATURE-----

Merge tag 'v3.6.4rc1' into 3.6
2017-12-05 20:39:16 -05:00
Miss Islington (bot) 7a6f28f280 bpo-30928: update idlelib/NEWS.txt. (GH-4706) (#4707)
(cherry picked from commit 2c0c68d927)
2017-12-05 13:44:09 -05:00
Ned Deily 3398dcb14f Bump to 3.6.4rc1 2017-12-05 03:26:08 -05:00
Ned Deily de4c3f312c Update NEWS and pydoc topics. 2017-12-05 03:17:05 -05:00
Ned Deily 0da25972fd Tidy NEWS entry. 2017-12-05 02:41:31 -05:00
Miss Islington (bot) 3b55416700 Add a missing space in tkinter documentation. (GH-4692) (GH-4722)
(cherry picked from commit ae342cf7de)
2017-12-04 21:16:20 -08:00
Miss Islington (bot) d9cadc5f59 [3.6] bpo-31380: Skip test_httpservers test_undecodable_file on macOS. (GH-4720) (#4721)
The undecodable file name cannot be created on macOS APFS file systems.
(cherry picked from commit b3edde8dd4)
2017-12-05 00:03:29 -05:00
Mariatta e2ba552319
bpo-28791: Update Windows builds to use SQLite 3.21.0. (GH-4246). (GH-4717)
(cherry picked from commit 31af650ee2)
2017-12-04 20:09:57 -08:00
Miss Islington (bot) 0bec5e147a [3.6] bpo-31392: Update macOS installer to use OpenSSL 1.0.2m (GH-4715) (#4716)
(cherry picked from commit 24e046987b)
2017-12-04 22:54:43 -05:00
Miss Islington (bot) b0576278b2 [bpo-28556] Minor fixes for typing module (GH-4710) (#4713)
(cherry picked from commit 29bc193210)
2017-12-04 22:02:02 -05:00
Ned Deily a72e7bf563
[3.6] bpo-28791: Update macOS installer to use SQLite 3.21.0. (#4245) (#4711) 2017-12-04 21:29:30 -05:00
Miss Islington (bot) 9da33c8212 bpo-32207: Improve tk event exception tracebacks in IDLE. (GH-4703) (#4705)
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 1e2fcac497)
2017-12-04 17:02:32 -05:00
Miss Islington (bot) 6e687948b0 bpo-30928: Update idlelib/NEWS.txt to 2017 Dec 3. (GH-4701) (#4702)
Patches are in 3.7.0a3 even if this update is not.
(cherry picked from commit 21255fc393)
2017-12-04 15:23:18 -05:00
Miss Islington (bot) a87ba60fe5 bpo-27240 Rewrite the email header folding algorithm. (GH-3488) (#4693)
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 85d5c18c9d)
2017-12-03 19:46:23 -05:00
Miss Islington (bot) 30a6bc8429 bpo-31619: Fixed integer overflow in converting huge strings to int. (GH-3884) (#4690)
(cherry picked from commit 29ba688034)
2017-12-03 23:27:21 +02:00
Nick Coghlan c8f32aae0a
[3.6] bpo-32176: Set CO_NOFREE in the code object constructor (GH-4684)
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 078f1814f1)
2017-12-03 23:32:54 +10:00
Miss Islington (bot) 2ad350a713 [3.6] bpo-31589 : Build PDF using xelatex for better UTF8 support. (GH-3940) (#4683)
Also addresses doc build failures documented in bpo-32200.
(cherry picked from commit 7324b5ce8e)
2017-12-02 17:35:08 -05:00
Miss Islington (bot) 9881e4e538 Don't hide unexpected errors in PyErr_WarnExplicitObject(). (GH-4585) (#4662)
(cherry picked from commit a561862048)
2017-12-01 09:21:45 +02:00
Miss Islington (bot) 8bcd41040a bpo-32186: Release the GIL during lseek and fstat (GH-4652) (#4661)
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 6a89481680)
2017-12-01 07:26:31 +01:00
Victor Stinner e10c9de9d7
bpo-20891: Fix PyGILState_Ensure() (#4650) (#4655)
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 b4d1e1f7c1)
2017-11-30 23:36:49 +01:00
Victor Stinner 29cb50ba34
[3.6] make tags: index also Modules/_ctypes/ (#4648) (#4659)
* `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 8a543c0bc7)

* make tags: index also Modules/_ctypes/ (#4648)

Avoid also "cd $(srcdir)" to not change the current directory.

(cherry picked from commit 3be3b97a97)
2017-11-30 23:34:21 +01:00
Miss Islington (bot) 8cd31082fb bpo-32072: Fix issues with binary plists. (GH-4455) (#4654)
* 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 a897aeeef6)
2017-12-01 00:15:30 +02:00
Miss Islington (bot) c91bf742e5 bpo-28416: Break reference cycles in Pickler and Unpickler subclasses (GH-4080) (#4653)
with the persistent_id() and persistent_load() methods.
(cherry picked from commit 986375ebde)
2017-11-30 23:30:39 +02:00
Miss Islington (bot) 92a2c07b71 Skip test_socket.test_sha256() on linux < 4.5 (GH-4643) (#4645)
bpo-31705.
(cherry picked from commit 86afc1f2a7)
2017-11-30 14:43:43 +01:00
Victor Stinner dedcbee04c
[3.6] bpo-30923, bpo-31279: Fix GCC warnings (#4620)
* bpo-30923: Silence fall-through warnings in libexpat build. (#3205)

(cherry picked from commit 9e1e6f528f)

* bpo-31279: Silence -Wstringop-overflow warning. (#3207)

(cherry picked from commit dce6502059)
2017-11-30 00:00:35 +01:00
Victor Stinner 06be9daf6f
bpo-32030: Fix test_sys.test_getallocatedblocks() (#4637)
Skip the test if PYTHONMALLOC environment variable is set.
2017-11-29 23:51:41 +01:00
Barry Warsaw 23cc8c0f9e
[3.6] bpo-32107 - Backport bitmask check fix (GH-4576) (#4591)
Remove a flakey test and rewrite another one for readability.
2017-11-29 10:35:02 -05:00
Miss Islington (bot) b0df786258 bpo-32139: test_strftime does not anymore modify the locale (GH-4569) (#4635)
(cherry picked from commit cc55e78aca)
2017-11-29 16:18:22 +01:00
Miss Islington (bot) 957aef7c41 bpo-32164: Delete unused file idlelib/tabbedpages.py (GH-4628) (#4631)
(cherry picked from commit 041efd292e)
2017-11-29 01:07:21 -05:00
Miss Islington (bot) a8de696ddd bpo-30781: Remove unused imports in idlelib.configdialog. (GH-4627) (#4630)
(cherry picked from commit e8f7c78a86)
2017-11-28 22:46:32 -05:00
Miss Islington (bot) 38ecf57306 bpo-32100: Delete unneeded import in idlelib.pathbrowser. (GH-4626) (#4629)
(cherry picked from commit fd6f8c56b9)
2017-11-28 22:15:06 -05:00
Miss Islington (bot) 230ffeae0a bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4622)
characters/bytes for non-negative n.  This makes it compatible with
read() methods of other file-like objects.
(cherry picked from commit 219c2de5ad)
2017-11-29 02:06:53 +02:00
Victor Stinner 6979fcdc91
bpo-32155: Bugfixes found by flake8 F841 warnings (#4619)
* 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".
2017-11-28 23:04:12 +01:00
Miss Islington (bot) 5f6d2bb8cf Use raw strings in the re module examples. (GH-4616) (#4617)
(cherry picked from commit c615be5166)
2017-11-28 23:21:09 +02:00
Miss Islington (bot) cb79c22039 bpo-31440: Changed default module search path for windows (#4613)
(cherry picked from commit 08d2b86a10)
2017-11-28 18:18:26 +01:00
Miss Islington (bot) 4237939805 asyncio: Fix BaseSelectorEventLoopTests (GH-4595) (#4599)
Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X
dev).
(cherry picked from commit 92f9339a58)
2017-11-28 10:32:53 +01:00
Miss Islington (bot) f54e405200 asyncio: Remove unused Future._tb_logger attribute (GH-4596) (#4598)
It was only used on Python 3.3, now only Future._log_traceback is
used.
(cherry picked from commit c16bacec3c)
2017-11-28 10:32:28 +01:00
Victor Stinner d5c71b0c98
pythoninfo: add Py_DEBUG (#4198) (#4580)
(cherry picked from commit afd055a59f)
2017-11-27 10:44:53 +01:00
Miss Islington (bot) 8a957534f5 bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)
(cherry picked from commit c172fc5031)
2017-11-27 04:22:50 +03:00
Miss Islington (bot) cceb0f8d7b bpo-29879: Update typing documentation. (GH-4573) (GH-4574)
- 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 0cd2e81bea)
2017-11-26 14:27:44 -08:00
Miss Islington (bot) 04af8ace86 bpo-32059: setup.py now also searches the sysroot paths (GH-4452) (#4562)
detect_modules() in setup.py now also searches the sysroot paths when
cross-compiling.
(cherry picked from commit 77f5139954)
2017-11-25 17:52:20 +01:00
Miss Islington (bot) 6bce8ace76 [Doc] Update opcode for var-positional arguments (GH-4446) (#4457)
`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 0c71653cb8)
2017-11-25 17:57:41 +02:00
Miss Islington (bot) db897b1961 Improve Scheduler Objects documentation. (GH-4556) (GH-4557)
Mention that the lower the priority number, the higher priority it represents.
(cherry picked from commit 9d5ec808de)
2017-11-24 21:48:26 -08:00
Miss Islington (bot) 3e60747025 bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443) (GH-4554)
The provided code example was supposed to find repeated words, however it returned false results.
(cherry picked from commit 610e5afdcb)
2017-11-24 21:03:04 -08:00
Miss Islington (bot) dde38b9cb3 bpo-32128: Skip test_nntplib.test_article_head_body() (GH-4552) (#4553)
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 706cb3162e)
2017-11-25 03:02:47 +01:00
Miss Islington (bot) 05ee12153f Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414) (GH-4549)
(cherry picked from commit f8802d80b3)
2017-11-24 16:07:37 -08:00
Miss Islington (bot) 7b909a93bf Improve the String tutorial docs (GH-4541) (GH-4545)
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 78a5722ae9)
2017-11-24 09:35:08 -08:00
Berker Peksag 412f00b839
[3.6] bpo-12239: Make GetProperty() return None for VT_EMPTY (GH-4539)
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 19fb134185)
2017-11-24 19:04:40 +03:00
Miss Islington (bot) bfa89b21e1 bpo-12382: Make OpenDatabase() raise better exception messages (GH-4528)
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 4864a619dc)
2017-11-24 13:31:21 +03:00
Miss Islington (bot) 90abbee7aa Extending Python Doc minor updates (GH-4518) (GH-4535)
Move footnote markers to be closer to the related terminology:
before the end of the sentence, instead of after.
(cherry picked from commit cdfe910e74)
2017-11-24 00:55:23 -08:00