Commit Graph

98671 Commits

Author SHA1 Message Date
Miss Islington (bot) 4e09c0c858 pythoninfo: add time.time and datetime.datetime.now (GH-5214) (#5219)
(cherry picked from commit 7d91c02504)
2018-01-17 17:36:04 +01:00
Miss Islington (bot) c2740e8a26 Skip test_readline.test_nonascii() on C locale (GH-5203) (#5204)
bpo-29240: On FreeBSD, if the LC_CTYPE locale is "C" or "POSIX",
writing and reading non-ASCII bytes into/from a TTY works,
but readline or ncurses ignores non-ASCII bytes on read.
(cherry picked from commit c495e799ed)
2018-01-16 18:27:29 +01:00
Miss Islington (bot) e7dbd06583 bpo-26163: Frozenset hash improvement (GH-5194) (#5198)
(cherry picked from commit b44c5169f6)
2018-01-16 02:27:15 -08:00
Victor Stinner b92c159efa
[3.6] bpo-32555: Fix locale encodings (#5193)
On FreeBSD and Solaris, os.strerror() now always decode the byte
string from the current locale encoding, rather than using
ASCII/surrogateescape in some cases.

Changes:

* Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() which has an
  additional current_locale parameter.
* PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and
* PyUnicode_EncodeLocale() now always use the current locale
* encoding, instead of using Py_DecodeLocale()/Py_EncodeLocale().
* Document encoding in Py_DecodeLocale() and Py_EncodeLocale()
  documentations.
* Add USE_FORCE_ASCII define to not define
  decode_ascii_surrogateescape() on Android.
2018-01-15 23:43:24 +01:00
Victor Stinner 5f959c4f9e
[3.6] bpo-31900: Fix localeconv() encoding for LC_NUMERIC (#4174) (#5192)
* Add _Py_GetLocaleconvNumeric() function: decode decimal_point and
  thousands_sep fields of localeconv() from the LC_NUMERIC encoding,
  rather than decoding from the LC_CTYPE encoding.
* Modify locale.localeconv() and "n" formatter of str.format() (for
  int, float and complex to use _Py_GetLocaleconvNumeric()
  internally.

(cherry picked from commit cb064fc232)
2018-01-15 23:23:47 +01:00
Miss Islington (bot) fb8569e36f bpo-26330: Update shutil.disk_usage() documentation (GH-5184) (GH-5188)
Clarify that on Windows, path must be a directory.
On Unix, path can be a file or a directory.
(cherry picked from commit ee3b83547c)
2018-01-15 06:32:11 -08:00
Miss Islington (bot) bb80645d06 bpo-15221: Update os.path.is*() documentation (GH-5185) (GH-5186)
`os.path.is*()` can return False if the file can't be accessed.
The behaviour is documented in details in `os.path.exists()`.
Link to `os.path.exists()` from `os.path.is*()`.
(cherry picked from commit b3dd18d403)
2018-01-14 21:44:49 -08:00
Miss Islington (bot) cf4cd4bccb Add itertools recipe for directly finding the n-th combination (GH-5161) (#5174)
(cherry picked from commit d37258dd2e)
2018-01-13 11:21:15 -08:00
Miss Islington (bot) 29b1aff718 Improve enum.Flag code example (GH-5167) (GH-5171)
The code example that demonstrate how to use enum.Flag was missing
the import of enum.auto.
(cherry picked from commit 0f31c74fcf)
2018-01-12 20:23:21 -08:00
Miss Islington (bot) d55d6825d7 [3.6] bpo-32521: nis libtirpc (GH-5137) (#5165)
glibc has removed Sun RPC. Use replacement libtirpc headers and library in
nis module

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit f3031b8a7a)
2018-01-12 16:29:35 +01:00
Miss Islington (bot) a91662affe bpo-32473: Improve ABCMeta._dump_registry() readability (GH-5091)
(cherry picked from commit ae12f5d4c9)
2018-01-12 19:47:36 +09:00
Miss Islington (bot) 22b1050672 Lexical Analysis ref doc: Fix a typo in the string concatenation internal link (GH-5157) (GH-5160)
In lexical analysis reference documentation, the internal link to
the string literal concatenation section was written as`.. _string-catenation:`.
Changed that to `.. _string-concatenation:`.
(cherry picked from commit 3764bb075a)
2018-01-11 22:50:45 -08:00
Zachary Ware 9c99fd163d
Fix version in AppVeyor config (GH-5125) 2018-01-07 13:00:33 -06:00
Miss Islington (bot) 94a3facc0e bpo-31802: Fix importing native path module before importing os. (GH-4017) (#5129)
(cherry picked from commit 3460198f6b)
2018-01-07 18:35:28 +02:00
Zachary Ware 157be7ca1d
[3.6] Kill the AppVeyor file whitelist (GH-5122)
It's more trouble than it's worth, since AppVeyor only checks the HEAD commit of a PR rather than the full diff against the base branch to decide which files changed.
(cherry picked from commit 7f7de371f9)
2018-01-06 21:16:33 -06:00
Miss Islington (bot) e29573910c advance copyright years to 2018 (GH-5094) (#5104)
(cherry picked from commit 65f2a6dcc2)
2018-01-05 23:12:14 -08:00
Miss Islington (bot) 78e43a59ac Fix outdated comment in typeobject.c (GH-5090)
The comment was added in 3abca127fe.
In d78448e912, it was changed to
use PyArg_ParseTuple instead.

(cherry picked from commit 78e24d4415)
2018-01-04 14:06:47 +03:00
Miss Islington (bot) a70d5ff992 bpo-32482: Fix suspicious code in tests for syntax and grammar. (GH-5086) (#5095)
(cherry picked from commit 0cc99c8cd7)
2018-01-04 11:32:53 +02:00
Serhiy Storchaka 1e6d8525f9
bpo-32211: Document the existing bug in re.findall() and re.finditer(). (#4695) 2018-01-04 11:08:24 +02:00
Miss Islington (bot) f24c1857a8 bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) (#5081)
Updates documentation for generator expressions in classes tutorial: Clarify usage of ambiguous term "brackets" by replacing with "square brackets". Updated subsequent lines to respect line breaks. (GH-5079)
(cherry picked from commit f190eb59e6)
2018-01-02 08:36:06 -05:00
Miss Islington (bot) aea95c2fbd bpo-32478: Add tests for 'break' and 'return' inside 'finally' clause. (GH-5078) (#5083)
(cherry picked from commit 7cc42c356b)
2018-01-02 10:20:12 +02:00
Miss Islington (bot) 439ce8a939 bpo-32416: Add two new tests in test_sys_settrace. (GH-5072) (#5073)
Move other test to more proper place.
(cherry picked from commit e8ed96550c)
2018-01-01 20:51:30 +02:00
Zachary Ware fe90efdc07
Add missing backslashes in PCbuild bat files (GH-5056) (GH-5057)
(cherry picked from commit 6c6d3a4608)
2017-12-30 17:54:31 -06:00
Miss Islington (bot) 1b2812a7b4 remove unused import (GH-5040) (#5042)
(cherry picked from commit e325608740)
2017-12-28 23:48:10 -08:00
Miss Islington (bot) 85f71aa9d6 make PatternCompiler use the packaged grammar if possible (more bpo-24960) (GH-5034) (#5036)
(cherry picked from commit e5f7dccefa)
2017-12-28 18:12:41 -08:00
Miss Islington (bot) 6eb232c52a bpo-32440: Update the docs URL to https in help() (GH-5030) (GH-5031)
In pydoc.py, the reference to Python' documentation was in http.
The link has been updated to use https.
(cherry picked from commit e5681b9822)
2017-12-28 07:16:39 -08:00
Serhiy Storchaka ea98eba346
[3.6] bpo-32416: Refactor tests for the f_lineno setter and add new tests. (GH-4991). (#5016)
(cherry picked from commit 53f9135667)
2017-12-27 21:31:47 +02:00
Miss Islington (bot) 32518b439b bpo-26133: Fix typos (GH-5010) (#5014)
* Fix typos
* Change warning text
* Add test
(cherry picked from commit a8f4e15f3d)
2017-12-26 12:29:29 +02:00
Miss Islington (bot) d62b7412c1 bpo-29084: Exclude C API for OrderedDict from the limited C API. (GH-4900) (#5007)
(cherry picked from commit 1b3029ac83)
2017-12-25 09:40:27 +02:00
Miss Islington (bot) 5ff5d1167d bpo-26133: Clear signals list on interpreter finalizing (GH-5002) (#5003)
(cherry picked from commit 4f146f9ed1)
2017-12-24 14:30:57 +02:00
Miss Islington (bot) 6ba0637727 correct wording (GH-4983) (#4984)
(cherry picked from commit d11e8e0d11)
2017-12-22 21:49:35 -08:00
Miss Islington (bot) c1b8eb8006 bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files (GH-4977) (#4979)
This is more complicated than it should be because we need to preserve the
useful mtime-based regeneration feature that lib2to3.pgen2.driver.load_grammar
has. We only look for the pickled grammar file with pkgutil.get_data and only if
the source file does not exist.
(cherry picked from commit 8a5877165e)
2017-12-22 12:51:46 -08:00
Victor Stinner 2e1ef00171
bpo-20891: Skip test_embed.test_bpo20891() (#4967) (#4969)
Skip the test failing randomly because of known race condition.

Skip the test to fix macOS buildbots until a decision is made on the
proper fix for the race condition.

(cherry picked from commit 550ee051d6)
2017-12-22 00:32:27 +01:00
Miss Islington (bot) 3bc68cff5b bpo-26133: Dont unsubscribe signals in UNIX even loop on interpreter shutdown (GH-4956) (#4962)
(cherry picked from commit 4a02543cf9)
2017-12-21 19:42:32 +02:00
Miss Islington (bot) fdb148f949 bpo-32323: urllib.parse.urlsplit() must not lowercase() IPv6 scope value (GH-4867) (#4959)
(cherry picked from commit fbd605151f)
2017-12-21 14:54:45 +02:00
Miss Islington (bot) 45588c6dd1 Fix trivial typo in pickle.rst (GH-4955) (#4958)
(cherry picked from commit a8d25a1645)
2017-12-21 11:11:06 +02:00
Miss Islington (bot) 020668b8e1 correct the typos (GH-4950) (#4951)
(cherry picked from commit 83cb778b4a)
2017-12-21 07:43:11 +02:00
Miss Islington (bot) 4aa84e7285 bpo-32306: Clarify c.f.Executor.map() documentation (GH-4947) (#4948)
The built-in map() function collects function arguments lazily, but concurrent.futures.Executor.map() does so eagerly.
(cherry picked from commit a7a751dd7b)
2017-12-20 19:19:18 +01:00
Miss Islington (bot) 75d1ca26b0 Improve the F-strings and format specifier documentation (GH-4931) (GH-4933)
Mention that the format-specifier mini language in f-strings
is the same one used by str.format.
(cherry picked from commit f4e21a2a72)
2017-12-19 13:09:19 -08:00
Miss Islington (bot) dc5770b161 bpo-32377: improve __del__ docs and fix mention about resurrection (GH-4927) (#4929)
* Fix GH-32377: improve __del__ docs and fix mention about resurrection

* Mention that CPython only calls __del__ once.
(cherry picked from commit 4b965930e8)
2017-12-19 20:00:13 +01:00
Ned Deily 86816ecb98 3.6.4+ 2017-12-19 02:56:06 -05:00
Ned Deily fb301cb703 Python 3.6.4
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAlo4m+sACgkQLTR+pqpl
 Qh3oPhAAu+gAOZRzRLZ6P5tuICKMzBQmMSbVd5XZyXRlgW8yiNRzsRcS+6uJqDZO
 c6/BZYPYpIATZZlffY9jKSPUa/HgKt1r3d3TTeOcOrdj+pfr0xBwFGa0Wns1+BrU
 cm1NMnMDevn5SHf3+wRX+RBe/3BN4u4XEvsO3IgBguT0PqNG90cRTwdt583YB66Q
 0M0G9Sd3w5o6DJLyJzvT/zneU2SgRO+cf/8IIKO1YGgrgbjEvws3Fp1AVBnRZ4B3
 SIYaSWro+o7c4xvbXKZu1Rjtf9mgbms9qwqmFI0cIB3azYwMM6lqiofNFsmKOl+G
 yGpgBxL14zdWVYdR0VfsYpUs/3O9npRCQCoXnAMDN7nPvEI7QAKKOLlJKXkPdaV8
 SOuqat1cPyXJrOttuU6xO4Kq0k/drKiEt390iuvi7Kvfo0CbGG5L7/Z+wJJVvsSM
 XDd3zsC2/SYpGTXlSkybB8P4o72RXc5ehg/u3DfzwM6RMOWFvPjG5HL9HacX7BXE
 zgeQqjAyRspnSof2Kvpr7QSqfk4OxxkN90To6R+AAZs9wuZzfj8L8//oOp6XCbIk
 qwl8lJ6eBjdqvufB7fdj9gbnlSK+/QechCVqNE5jTjNKRaPzcXz5BNsFN+tB0Da+
 n9hmSBiv76Xj5qKak+vBHC1vszWPe9e/0uLpyzWNkMYJD3fZcxI=
 =zrPM
 -----END PGP SIGNATURE-----

Merge tag 'v3.6.4' into 3.6
2017-12-19 02:46:01 -05:00
Ned Deily d48ecebad5 Update to 3.6.4 2017-12-18 23:53:56 -05:00
Ned Deily c7d7f7729e Update NEWS for 3.6.4 final 2017-12-18 23:50:55 -05:00
Miss Islington (bot) 898a3e4901 bpo-32284: Fix documentation of BinaryIO and TextIO (GH-4832) (#4833)
(cherry picked from commit c3e070f849)
2017-12-18 23:25:37 -05:00
Miss Islington (bot) 638f68c8bc Allows non-critical upload steps to fail (GH-4742) (#4743)
(cherry picked from commit 9ab11b3a02)
2017-12-18 23:25:18 -05:00
Miss Islington (bot) 5659743b56 bpo-32365: Fix a reference leak when compile __debug__. (GH-4916) (#4918)
It was introduced in bpo-27169.
(cherry picked from commit bd6ec4d79e)
2017-12-18 15:11:51 +02:00
Yury Selivanov 572636d425
bpo-27456: Ensure TCP_NODELAY is set on linux (#4231) (#4898)
(cherry picked from commit e796b2fe26)
2017-12-15 21:53:08 -05:00
Miss Islington (bot) dab4cf210c Minor wording tweak for itertools documentation (GH-4893) (#4894)
(cherry picked from commit 6693d7af66)
2017-12-15 13:28:50 -08:00
Miss Islington (bot) 5a9f379435 F-strings docs: link to Format Specifiers (GH-4888) (GH-4889)
Link to the Format Specification Mini Language section from f-strings' documentation.
(cherry picked from commit d924fa523d)
2017-12-15 10:11:17 -08:00