Commit Graph

98662 Commits

Author SHA1 Message Date
Miss Islington (bot) cae6e4775b [3.6] bpo-31655: Validate keyword names in SimpleNamespace constructor. (GH-3909) (#3920)
(cherry picked from commit 79ba471488)
2017-10-07 23:52:57 +03:00
Miss Islington (bot) 5f396dba1d bpo-31720: msilib documentation, change MsiError into MSIError (GH-3914) (GH-3917)
(cherry picked from commit 28f713601d)
2017-10-07 09:00:27 -07:00
Rohit Balasubramanian 93c0885dc8 bpo-31507 Add docstring to parseaddr function in email.utils.parseaddr (GH-3647) (GH-3733)
(cherry picked from commit 9e7b9b21fe)
2017-10-06 22:27:36 -07:00
Miss Islington (bot) 051295a8c5 [3.6] bpo-31523: Reliability improvements to the Windows build files (GH-3900) (#3902)
(cherry picked from commit 2084b30e54)
2017-10-05 14:09:30 -07:00
Miss Islington (bot) 8aafd5fd79 [3.6] remove tabs from getcompiler.c (GH-3892) (#3893)
(cherry picked from commit a8ed11742b)
2017-10-05 08:41:06 -07:00
Miss Islington (bot) fae0512e58 [3.6] bpo-31178: Mock os.waitpid() in test_subprocess (GH-3896) (#3897)
Fix test_exception_errpipe_bad_data() and
test_exception_errpipe_normal() of test_subprocess: mock os.waitpid()
to avoid calling the real os.waitpid(0, 0) which is an unexpected
side effect of the test.
(cherry picked from commit 11045c9d8a)
2017-10-05 07:10:59 -07:00
Serhiy Storchaka de5427a8f7 [3.6] bpo-30872: Update the curses docs to Python 3. (GH-2620) (#3887)
(cherry picked from commit 300dd552b1)
2017-10-05 09:35:45 +03:00
Miss Islington (bot) ed77fbffa5 [3.6] bpo-31667: Fix gettext related links. (GH-3860) (#3886)
* Fix incorrect links.
* Remove redundant links.
* Add signatures and index entries for gettext related
functions in the locale module.
(cherry picked from commit c02a1f4ad8)
2017-10-04 21:06:09 +03:00
Ned Deily 598c4d1c10 Remove retired and security branches from active docs (#3880) 2017-10-03 23:03:52 -04:00
Miss Islington (bot) a65b2420f6 [3.6] bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() (GH-3866) (#3874)
when pass a string larger than 2 GiB.

Decrease memory requirements for Tcl's bigmem tests.
(cherry picked from commit 27c623c845)
2017-10-03 23:50:46 +03:00
Serhiy Storchaka fcc832a4fa [3.6] bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). (GH-3864). (#3873)
(cherry picked from commit 929b40a601)
2017-10-03 22:39:37 +03:00
Miss Islington (bot) b5a630f3dd [3.6] bpo-31619: Fixed a ValueError when convert a string with large number of underscores (GH-3827) (#3863)
to integer with binary base.
(cherry picked from commit 85c0b8941f)
2017-10-03 15:38:46 +03:00
Ned Deily ec47aff13a Bump version to 3.6.3+ 2017-10-03 04:46:04 -04:00
Ned Deily e925c4f299 Python 3.6.3
-----BEGIN PGP SIGNATURE-----
 
 iQIcBAABCgAGBQJZ0yZmAAoJEC00fqaqZUId+AkP/jmhnWRFOx8pljdbhUDqMpAh
 WKtlafbAM4p9YDW1y0uB5Shb0vYoETbtwl+1bPh95ybyypFHoFUWBM3WmM3vofLp
 WOASXQkVflW+aj7iuR8xa/SPGgyYahdxGAsZ50z7gRUHTn0BUj1OOdbvDSncxaRN
 7O+Klv4lG3sIOhq9r/q2jqCYymehDuDioUETJkh1BAbk03lXd9j7xLsTaaJnXPxB
 hGc65KxmI0ZL18yvj348O+QgKR97UgmwsebhmCsikRAi5BL1aIH+B8OjMcHeAB2b
 Z0qhXZrdI2uPFiqTxAHQllR71h5T9Df9K8JQMNd/dPxZsxpn+JzddrqU6LfKCHIL
 gLX/uMUOGOcPD33vm7X3Nr1dvZnb6hxpoInhkaqI22L2MxkBKAbNFzdkbN+Qx3Z2
 mjccmKBlEYSbJQHcAc+QFMhouOzNFTp4zsaY62bHuBQnHvuJhll0/uw2VLhy8qTw
 hz9LHJYKjAkMhjsKc8Ac0g6iwKcvmalzPLzXdDMjAn0vVY6A4UMbf1EeT4i8WP9Z
 pnm3dDqTv0Rr1kyjl3v/i2nNFmrMwb07yrvXjI1sf2AuOFUzu0z6ORePex+V774z
 S3x1Bq4OP1MclEVWkJkFbl/MN5lUQsSi6+wxeN+/VnEe9+qDAUAzxYNbEYCGgwFa
 MDXdYCwMBkuprbbThNmV
 =r7O9
 -----END PGP SIGNATURE-----

Merge v3.6.3 into 3.6 branch
2017-10-03 04:42:24 -04:00
Ned Deily 2c5fed86e0 Bump to 3.6.3 2017-10-03 01:52:02 -04:00
Ned Deily 33bd6fdf3f Update NEWS blurbs for 3.6.3 final 2017-10-03 01:36:12 -04:00
Ned Deily fa8421dbb4 Improve/fix some Misc/NEWS entries 2017-10-03 01:26:32 -04:00
Ned Deily 22b131305a Add NEWS entries for 3.6.3 final cherrypicks. 2017-10-03 01:07:42 -04:00
Miss Islington (bot) a51c760ddd [3.6] bpo-31662: Fix typos in uploadrelease.bat script (#3858)
(cherry picked from commit efb560eee2)
2017-10-03 00:47:16 -04:00
Miss Islington (bot) 2e3fd03796 [3.6] bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()` (GH-3830) (#3831)
This was possible before.  GH-1560 introduced a regression after 3.6.2 got
released where only sequences were accepted now.  This commit addresses this
problem.
(cherry picked from commit 574562c5dd)
2017-10-02 20:32:03 -04:00
Zachary Ware a74ce09c73 [3.6] bpo-31423: Fix building the PDF documentation (GH-3693) (GH-3699)
Use prefixed macro names for the `authoraddress` function, add T2A to the font encoding in LaTeX sources to support Cyrillic characters in the PDF documentation, and replace the deprecated `font_size` config option with `pointsize`.
(cherry picked from commit da9b4cfb48)
2017-10-02 20:28:02 -04:00
Steve Dower 564747d91b Fix build issues in Doc/make.bat (#3663) 2017-10-02 20:27:33 -04:00
Miss Islington (bot) d6201cb0e8 [3.6] bpo-31662: Fix typos in uploadrelease.bat script (#3858)
(cherry picked from commit efb560eee2)
2017-10-02 09:20:28 -07:00
Miss Islington (bot) ac6245a31f [3.6] bpo-31516: current_thread() should not return a dummy thread at shutdown (GH-3673) (#3856)
bpo-31516: current_thread() should not return a dummy thread at shutdown
(cherry picked from commit 1023dbbcb7)
2017-10-02 17:20:01 +02:00
Miss Islington (bot) 66fb5ef3bb [3.6] bpo-31158: Fix nondeterministic read in test_pty (GH-3808) (GH-3852)
(cherry picked from commit e6f62f69f0)
2017-10-02 02:57:56 -07:00
Terry Jan Reedy c041816045 [3.6] IDLE: make filetypes a tuple constant. (GH-3847) (#3848)
Save a bit of code, plus non-tuples get converted anyway to tuples by tkinter for the tk call.
(cherry picked from commit 5961e7c156)
2017-10-01 19:37:19 -04:00
Terry Jan Reedy c8198c9232 [3.6] bpo-31460: Simplify the API of IDLE's Module Browser. (GH-3842) (#3843)
Passing a widget instead of an flist with a root widget opens the option of
creating a browser frame that is only part of a window. Passing a full file
name instead of pieces assumed to come from a .py file opens the possibility
of browsing python files that do not end in .py.
(cherry picked from commit d6bb65f)
2017-09-30 20:32:29 -04:00
Terry Jan Reedy 40c54d5e1a [3.6] bpo-31649: Make IDLE's _htest, _utest parameters keyword-only. (GH-3839) (#3841)
(cherry picked from commit bfebfd8)
2017-09-30 18:45:53 -04:00
Miss Islington (bot) d9c21a45fd [3.6] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3837)
(cherry picked from commit f4ea642cb6)
2017-09-30 22:52:00 +03:00
Miss Islington (bot) a4dfe1c9ea [3.6] bpo-31592: Fix an assertion failure in Python parser in case of a bad unicodedata.normalize(). (GH-3767) (#3836)
(cherry picked from commit 7dc46d8cf5)
2017-09-30 22:51:37 +03:00
Miss Islington (bot) 9ef28b6ad3 [3.6] bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()` (GH-3830) (#3831)
This was possible before.  GH-1560 introduced a regression after 3.6.2 got
released where only sequences were accepted now.  This commit addresses this
problem.
(cherry picked from commit 574562c5dd)
2017-09-29 15:07:01 -07:00
Miss Islington (bot) 66c2b9f13e [3.6] bpo-31285: Remove splitlines identifier from Python/_warnings.c (GH-3803) (#3829)
(forgot to remove it in GH-3219)
(cherry picked from commit 8b4ff53c44)
2017-09-29 22:26:45 +03:00
Miss Islington (bot) a5610e0746 [3.6] bpo-25351: avoid activate failure on strict shells (GH-3804) (#3820)
(cherry picked from commit 90f1d98959)
2017-09-29 05:34:43 -07:00
Miss Islington (bot) 641494ec31 bpo-31621: Fix typo in Simple Statements documentation (GH-3809) (GH-3810)
Replace "restriction" with "restrictions".
(cherry picked from commit 8d59aca4a9)
2017-09-28 13:00:17 -07:00
Victor Stinner 7d6ddb96b3 bpo-28129: fix ctypes crashes (#386) (#3799)
* init commit, with initial tests for from_param and fields __set__ and __get__, and some additions to from_buffer and from_buffer_copy

* added the rest of tests and patches. probably only a first draft.

* removed trailing spaces

* replace ctype with ctypes in error messages

* change back from ctypes instance to ctype instance

(cherry picked from commit 1bea762d9e)
2017-09-28 07:32:11 -07:00
Miss Islington (bot) ec3d34c5b2 [3.6] bpo-31536: Avoid wholesale rebuild after `make regen-all` (GH-3678) (#3797)
bpo-31536: Avoid wholesale rebuild after `make regen-all`
2017-09-28 13:21:32 +02:00
Serhiy Storchaka befc956acf [3.6] bpo-31478: Fix an assertion failure in random.seed() in case a seed has a bad __abs__() method. (GH-3596) (#3794)
(cherry picked from commit d780b2d588)
2017-09-28 12:17:51 +03:00
Benjamin Peterson 68b131d5b6 [3.6] closes bpo-22140: Prevent double substitution of prefix in python-config.sh (GH-3769) (#3793)
Fix the logic in python-config.sh to avoid attempting to substitute
prefix in a variable that might have already been subject to
substitution. This e.g. happened if @exec_prefix@ was defined as
"${prefix}" (which is the default of the configure script) -- in which
case the exec_prefix_build variable was initialized with
already-subtituted prefix, and then another round of substitution was
performed which might have resulted in duplicate prefix.

To avoid that, rename the variables so that the variables matching
likely configure names (prefix, exec_prefix) retain their original
values and a '_real' suffix is used for the real values of prefix.

Furthermore, replace the unnecessary prefix and exec_prefix
substitutions with direct prefix_real references since the sed
always replaced the whole string anyway by design.
(cherry picked from commit 14086cfc5e)
2017-09-27 20:27:41 -07:00
Miss Islington (bot) 084f80b82c [3.6] bpo-31588: Validate return value of __prepare__() methods (GH-3790)
Class execution requires that __prepare__() methods return
a proper execution namespace. Check for that immediately
after calling __prepare__(), rather than passing it through
to the code execution machinery and potentially triggering
SystemError (in debug builds) or a cryptic TypeError
(in release builds).

Patch by Oren Milman.
(cherry picked from commit 5837d0418f)
2017-09-28 02:21:33 +10:00
Victor Stinner fdcf3e9629 bpo-31593: test_socketserver waits child processes (#3766) 2017-09-27 02:21:12 -07:00
Serhiy Storchaka 02c3cdcef8 [3.6] bpo-25532: Protect against infinite loops in inspect.unwrap() (GH-1717) (#3778)
Some objects (like test mocks) auto-generate new objects on
attribute access, which can lead to an infinite loop in
inspect.unwrap().

Ensuring references are retained to otherwise temporary objects
and capping the size of the memo dict turns this case into a
conventional exception instead..
(cherry picked from commit f9169ce6b4)
2017-09-27 09:34:44 +03:00
Miss Islington (bot) 680429b133 [3.6] point to the module-level get_ident function rather than the one in _thread (GH-3782) (#3783)
(cherry picked from commit 236329ed9f)
2017-09-26 23:17:51 -07:00
Miss Islington (bot) 7c24e99c99 [3.6] bpo-31505: Fix an assertion failure in json, in case _json.make_encoder() received a bad encoder() argument. (GH-3643) (#3777)
(cherry picked from commit 2b382dd612)
2017-09-27 08:21:47 +03:00
Serhiy Storchaka 90fe25a051 [3.6] bpo-31285: Fix an assertion failure and a SystemError in warnings.warn_explicit. (GH-3219) (#3775)
(cherry picked from commit 91fb0afe18)
2017-09-27 07:38:03 +03:00
Miss Islington (bot) bdb215b18a [3.6] bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ attr is defined only outside _fields_. (GH-3615) (#3774)
(cherry picked from commit 30b61b51e0)
2017-09-27 07:37:37 +03:00
Serhiy Storchaka f0db2dfda7 [3.6] bpo-31492: Fix assertion failures in case of a module with a bad __name__ attribute. (GH-3620). (#3773)
(cherry picked from commit 6db7033192)
2017-09-27 07:33:00 +03:00
Miss Islington (bot) a1c49f6f09 [3.6] bpo-31586: Use _count_element fast path for real dicts. (#3776)
(cherry picked from commit 31aca4bf79)
2017-09-26 20:45:57 -07:00
Miss Islington (bot) 69b2dc8637 [3.6] bpo-30347: Stop crashes when concurrently iterate over itertools.groupby() iterators. (GH-1557) (#3770)
(cherry picked from commit c740e4fe8a)
2017-09-26 22:20:22 +03:00
Serhiy Storchaka d6a356209a [3.6] bpo-31579: Fixed a possible leak in enumerate() with large indices. (GH-3753). (#3760)
(cherry picked from commit 0e950dd22b)
2017-09-26 09:11:34 +03:00
Miss Islington (bot) 26b940f762 bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691) (GH-3754)
- Remove the second mention about the `u` prefix
- Remove the second mention about numeric literals do not include a sign
(cherry picked from commit 4a2d00cb45)
2017-09-25 16:23:33 -07:00