]> granicus.if.org Git - python/log
python
6 years agobpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is...
Zackery Spytz [Tue, 20 Feb 2018 21:06:11 +0000 (14:06 -0700)]
bpo-31848: Fix broken error handling in Aifc_read.initfp() when the SSND chunk is not found (#5240)

Initialize self._ssnd_chunk so that aifc.Error is raised as intended,
not AttributeError.

6 years agobpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length...
Zackery Spytz [Tue, 20 Feb 2018 17:24:29 +0000 (10:24 -0700)]
bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() (GH-5767)

Dropped the part that says: "For objects that do not provide sequence protocol".

6 years agocloses bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)
Alexey Izbyshev [Tue, 20 Feb 2018 07:25:46 +0000 (10:25 +0300)]
closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)

os.dup2() tests for dup3() system call availability at runtime,
but doesn't remember the result across calls, repeating
the test on each call with inheritable=False.

Since the caller of os.dup2() is expected to hold the GIL,
fix this by making the variable holding the test result static.

6 years agobpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)
Steve Dower [Tue, 20 Feb 2018 01:25:24 +0000 (17:25 -0800)]
bpo-32409: Ensures activate.bat can handle Unicode contents (GH-5757)

6 years agobpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)
Zachary Ware [Mon, 19 Feb 2018 20:02:38 +0000 (14:02 -0600)]
bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)

6 years agobpo-32682: Improve libz version parsing in test_zilb (GH-5347)
pmp-p [Mon, 19 Feb 2018 03:45:11 +0000 (04:45 +0100)]
bpo-32682: Improve libz version parsing in test_zilb (GH-5347)

6 years agobpo-31972: Improve docstrings for pathlib classes (#5310)
chason [Sun, 18 Feb 2018 23:36:32 +0000 (08:36 +0900)]
bpo-31972: Improve docstrings for pathlib classes (#5310)

6 years agoImprove error message for "setup.py upload" without dist files (#21060)
Éric Araujo [Sun, 18 Feb 2018 23:14:54 +0000 (18:14 -0500)]
Improve error message for "setup.py upload" without dist files (#21060)

6 years agobpo-31333: Fix typo in whatsnew/3.7.rst (GH-5744)
Terry Jan Reedy [Sun, 18 Feb 2018 21:46:49 +0000 (16:46 -0500)]
bpo-31333: Fix typo in whatsnew/3.7.rst (GH-5744)

6 years agobpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (#5739)
Alexey Izbyshev [Sun, 18 Feb 2018 17:57:24 +0000 (20:57 +0300)]
bpo-32869: Fix incorrect dst buffer size for MultiByteToWideChar (#5739)

This function expects the destination buffer size to be given
in wide characters, not bytes.

6 years agoCorrect venv doc (fix #32540) (#5736)
TROUVERIE Joachim [Sun, 18 Feb 2018 16:52:36 +0000 (17:52 +0100)]
Correct venv doc (fix #32540) (#5736)

6 years agoClean up Travis config (GH-5727)
Zachary Ware [Sun, 18 Feb 2018 16:19:37 +0000 (10:19 -0600)]
Clean up Travis config (GH-5727)

6 years agobpo-31333: Re-implement ABCMeta in C (#5273)
Ivan Levkivskyi [Sun, 18 Feb 2018 12:41:58 +0000 (12:41 +0000)]
bpo-31333: Re-implement ABCMeta in C (#5273)

This adds C versions of methods used by ABCMeta that
improve performance of various ABC operations.

6 years agoAdd missing backslashes to get_externals.bat (GH-5731)
Steve Dower [Sun, 18 Feb 2018 03:58:57 +0000 (19:58 -0800)]
Add missing backslashes to get_externals.bat (GH-5731)

6 years agoImproves the ability to build in CI (GH-5728)
Steve Dower [Sun, 18 Feb 2018 02:59:03 +0000 (18:59 -0800)]
Improves the ability to build in CI (GH-5728)

6 years agobpo-30638: Add clinic to `make regen-all` (GH-5671)
Zachary Ware [Sat, 17 Feb 2018 23:58:57 +0000 (17:58 -0600)]
bpo-30638: Add clinic to `make regen-all` (GH-5671)

Also, use PYTHON_FOR_REGEN for clinic and blake2s_impl.c rather than PYTHON_FOR_BUILD, and update .travis.yml to make use of the change.

6 years agoFix a typo in asyncio docs (#5721)
Andrew Svetlov [Sat, 17 Feb 2018 17:44:35 +0000 (19:44 +0200)]
Fix a typo in asyncio docs (#5721)

6 years agobpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)
Kyle Altendorf [Sat, 17 Feb 2018 06:32:37 +0000 (22:32 -0800)]
bpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)

6 years agoDOC: fix documentation for copyright and credits (GH-5706)
Gerrit Holl [Sat, 17 Feb 2018 03:48:57 +0000 (03:48 +0000)]
DOC: fix documentation for copyright and credits (GH-5706)

Adapt documentation for `copyright` and `credits` to reality.  Previously, the documentation implied that all each of `copyright`,
`credits`, and `license`, would print a message to call the object in order to see the full text.  In reality, only `license` exhibits this
behaviour, and `copyright` and `credit` print their full text either when printed, displayed, or called.

6 years agobpo-32860: Fix a missing asterisk in the documentation for glob.iglob() (GH-5712)
Zackery Spytz [Sat, 17 Feb 2018 03:39:51 +0000 (20:39 -0700)]
bpo-32860: Fix a missing asterisk in the documentation for glob.iglob() (GH-5712)

6 years agobpo-32604: Clean up created subinterpreters before runtime finalization. (gh-5709)
Eric Snow [Sat, 17 Feb 2018 01:53:40 +0000 (18:53 -0700)]
bpo-32604: Clean up created subinterpreters before runtime finalization. (gh-5709)

6 years agobpo-32436: Add docs for contextvars (#5685)
Yury Selivanov [Fri, 16 Feb 2018 16:47:54 +0000 (11:47 -0500)]
bpo-32436: Add docs for contextvars (#5685)

6 years agoCorrect the code example in Python 3.7's What's New (GH-5696)
xpvpc [Fri, 16 Feb 2018 16:46:39 +0000 (17:46 +0100)]
Correct the code example in Python 3.7's What's New (GH-5696)

There was an extra dash in the example for re.sub().

6 years agoUpdate and sync importlib.resources documentation (#5694)
Barry Warsaw [Fri, 16 Feb 2018 15:45:39 +0000 (10:45 -0500)]
Update and sync importlib.resources documentation (#5694)

6 years agoUpdate comment in posixmodule.c (GH-5681)
ngie-eign [Wed, 14 Feb 2018 19:54:28 +0000 (11:54 -0800)]
Update comment in posixmodule.c (GH-5681)

A closing parentheses was missing.

Signed-off-by: Ngie Cooper <yaneurabeya@gmail.com>
6 years agobpo-32841: Fix cancellation in awaiting asyncio.Condition (#5665)
Bar Harel [Wed, 14 Feb 2018 09:18:11 +0000 (11:18 +0200)]
bpo-32841: Fix cancellation in awaiting asyncio.Condition (#5665)

6 years agoFix installation instructions for *nix (GH-5605)
Eitan Adler [Wed, 14 Feb 2018 02:44:01 +0000 (18:44 -0800)]
Fix installation instructions for *nix (GH-5605)

Remove pkg_add -r python from FreeBSD installation section.
Moved to OpenBSD.

6 years agoremove mercurial dot files (GH-5558)
Benjamin Peterson [Wed, 14 Feb 2018 02:11:34 +0000 (18:11 -0800)]
remove mercurial dot files (GH-5558)

6 years agobpo-27846: Delete incorrect note in base64 docs (GH-5666)
Zackery Spytz [Wed, 14 Feb 2018 00:08:54 +0000 (17:08 -0700)]
bpo-27846: Delete incorrect note in base64 docs (GH-5666)

This note incorrectly stated that "Base64 has an expansion factor of 6
to 4" (it is actually 4 to 3). It was decided to remove the note.

6 years agobpo-31787: Skip refleak check when _hashlib is not available (GH-5660)
INADA Naoki [Tue, 13 Feb 2018 14:41:19 +0000 (23:41 +0900)]
bpo-31787: Skip refleak check when _hashlib is not available (GH-5660)

6 years agobpo-29803: remove a redandunt op and fix a comment in unicodeobject.c (#660)
Xiang Zhang [Tue, 13 Feb 2018 10:33:32 +0000 (18:33 +0800)]
bpo-29803: remove a redandunt op and fix a comment in unicodeobject.c (#660)

6 years agobpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)
Oren Milman [Tue, 13 Feb 2018 10:28:33 +0000 (12:28 +0200)]
bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995)

6 years agobpo-30579: Docs for dynamic traceback creation (GH-5653)
Nick Coghlan [Tue, 13 Feb 2018 08:10:58 +0000 (18:10 +1000)]
bpo-30579: Docs for dynamic traceback creation (GH-5653)

6 years agobpo-32370: Use the correct encoding for ipconfig output in the uuid module. (GH-5608)
Segev Finer [Tue, 13 Feb 2018 06:29:54 +0000 (08:29 +0200)]
bpo-32370: Use the correct encoding for ipconfig output in the uuid module. (GH-5608)

6 years agobpo-32827: Fix usage of _PyUnicodeWriter_Prepare() in decoding errors handler. (GH...
Serhiy Storchaka [Tue, 13 Feb 2018 06:27:33 +0000 (08:27 +0200)]
bpo-32827: Fix usage of _PyUnicodeWriter_Prepare() in decoding errors handler. (GH-5636)

6 years agobpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)
Terry Jan Reedy [Mon, 12 Feb 2018 22:42:41 +0000 (17:42 -0500)]
bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)

Using the system and place-dependent default encoding for open()
is a bad idea for IDLE's system and location-independent files.

6 years agobpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)
Terry Jan Reedy [Mon, 12 Feb 2018 19:58:26 +0000 (14:58 -0500)]
bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)

GUI test test_file_buttons() only looks at initial ascii-only lines,
but failed on systems where open() defaults to 'ascii' because
readline() internally reads and decodes far enough ahead to encounter
a non-ascii character in CREDITS.txt.

6 years agobpo-32221: makeipaddr(): remove interface part + speedup (GH-5449) (#5449)
Коренберг Марк [Mon, 12 Feb 2018 19:47:42 +0000 (00:47 +0500)]
bpo-32221: makeipaddr(): remove interface part + speedup (GH-5449) (#5449)

6 years agobpo-29248: Fix os.readlink() on Windows (GH-5577)
SSE4 [Mon, 12 Feb 2018 17:10:35 +0000 (00:10 +0700)]
bpo-29248: Fix os.readlink() on Windows (GH-5577)

The PrintNameOffset field of the reparse data buffer
was treated as a number of characters instead of bytes.

6 years agoFix AppVeyor doc short-circuit (GH-5632)
Zachary Ware [Sun, 11 Feb 2018 21:35:09 +0000 (15:35 -0600)]
Fix AppVeyor doc short-circuit (GH-5632)

6 years agobpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622)
Pablo Galindo [Sun, 11 Feb 2018 20:58:23 +0000 (20:58 +0000)]
bpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622)

Describe *text* as an alias for *universal_newlines* in more places that people are likely to be referred to.

6 years agoAdd short-circuit for doc changes to AppVeyor (GH-5519)
Zachary Ware [Sun, 11 Feb 2018 17:19:51 +0000 (11:19 -0600)]
Add short-circuit for doc changes to AppVeyor (GH-5519)

6 years agobpo-32604: Make _xxsubinterpreters build on Windows (GH-5516)
Zachary Ware [Sun, 11 Feb 2018 16:43:48 +0000 (10:43 -0600)]
bpo-32604: Make _xxsubinterpreters build on Windows (GH-5516)

This is not the ideal solution; this means that a test module is now
always included in the main python3x.dll.  However, we're already
including xxsubtype, so why not?

6 years agoCode beautification using f-strings (#5618)
Raymond Hettinger [Sun, 11 Feb 2018 16:00:11 +0000 (08:00 -0800)]
Code beautification using f-strings (#5618)

6 years agobpo-11015: Update test.support documentation (GH-5610)
Cheryl Sabella [Sun, 11 Feb 2018 13:10:42 +0000 (08:10 -0500)]
bpo-11015: Update test.support documentation (GH-5610)

6 years agobpo-32792: Preserve mapping order in ChainMap() (GH-5586)
Raymond Hettinger [Sun, 11 Feb 2018 08:30:31 +0000 (00:30 -0800)]
bpo-32792: Preserve mapping order in ChainMap() (GH-5586)

7 years agobpo-32800: Update link to w3c doc for xml default namespaces (GH-5609)
sblondon [Sat, 10 Feb 2018 22:39:43 +0000 (23:39 +0100)]
bpo-32800: Update link to w3c doc for xml default namespaces (GH-5609)

The new link is given in a red box on the old page.

7 years agotravis: Use -O3 option (GH-5599)
INADA Naoki [Sat, 10 Feb 2018 11:35:17 +0000 (20:35 +0900)]
travis: Use -O3 option (GH-5599)

We don't use debugger on Travis.

7 years agobpo-30688: Import unicodedata only when needed. (GH-5606)
Zhou Fangyi [Sat, 10 Feb 2018 06:59:29 +0000 (06:59 +0000)]
bpo-30688: Import unicodedata only when needed. (GH-5606)

Importing unicodedata in sre_parse leads to failure in compilation.
unicodedata is unused during compilation, and is not compiled when this
file is imported. The error occurs when generating posix variables,
pprint is required. The dependency chain goes on like this:

sysconfig -> pprint -> re -> sre_compile -> sre_parse (this file)

This commits fixes compilation issues introduced by
2272cec13b53c405d86c45d404f035f201c0baef.
(Issue 30688, GH-5588)

7 years agobpo-30688: Support \N{name} escapes in re patterns. (GH-5588)
Serhiy Storchaka [Fri, 9 Feb 2018 22:08:17 +0000 (00:08 +0200)]
bpo-30688: Support \N{name} escapes in re patterns. (GH-5588)

Co-authored-by: Jonathan Eunice <jonathan.eunice@gmail.com>
7 years agobpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601)
Serhiy Storchaka [Fri, 9 Feb 2018 18:00:49 +0000 (20:00 +0200)]
bpo-30157: Fix csv.Sniffer.sniff() regex pattern. (GH-5601)

Co-authored-by: Jake Davis <jcdavis@awedge.net>
7 years agoFix some warnings produced by different compilers. (#5593)
Serhiy Storchaka [Fri, 9 Feb 2018 15:31:26 +0000 (17:31 +0200)]
Fix some warnings produced by different compilers. (#5593)

7 years agoMake formatting of some return codes conforming to the general style. (#5587)
Serhiy Storchaka [Fri, 9 Feb 2018 11:31:19 +0000 (13:31 +0200)]
Make formatting of some return codes conforming to the general style. (#5587)

7 years agobpo-32775: Fix regular expression warnings in fnmatch. (#5583)
Serhiy Storchaka [Fri, 9 Feb 2018 11:30:19 +0000 (13:30 +0200)]
bpo-32775: Fix regular expression warnings in fnmatch. (#5583)

fnmatch.translate() no longer produces patterns which contain set
operations.

Sets starting with '[' or containing '--', '&&', '~~' or '||' will
be interpreted differently in regular expressions in future versions.
Currently they emit warnings. fnmatch.translate() now avoids producing
patterns containing such sets by accident.

7 years agoCleanup inspect
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) [Fri, 9 Feb 2018 09:59:19 +0000 (15:29 +0530)]
Cleanup inspect

* use isinstance(..)  instead of type(..)
* use  '.. not in ..'  instead of 'not .. in .. '

7 years agobpo-32585: Add tkinter.ttk.Spinbox. (#5221)
Alan D Moore [Fri, 9 Feb 2018 00:03:55 +0000 (18:03 -0600)]
bpo-32585: Add tkinter.ttk.Spinbox. (#5221)

7 years agobpo-32802: Fix Travis build (GH-5589)
Stéphane Wirtel [Thu, 8 Feb 2018 19:14:59 +0000 (20:14 +0100)]
bpo-32802: Fix Travis build (GH-5589)

Fix bug in travis configuration where it did not run the tests when
a change includes both code and doc changes.

7 years agobpo-6135: Fix subprocess.check_output doc to mention changes in 3.6 (GH-5564)
Brice Gros [Wed, 7 Feb 2018 00:46:29 +0000 (01:46 +0100)]
bpo-6135: Fix subprocess.check_output doc to mention changes in 3.6 (GH-5564)

Fixes the documentation for `subprocess.check_output()` not mentioning that the encoding and errors parameters were added in 3.6.

7 years agoFix typo in Include/objimpl.h, the word "has" was missing (GH-5568)
Alexey [Tue, 6 Feb 2018 23:07:30 +0000 (02:07 +0300)]
Fix typo in Include/objimpl.h, the word "has" was missing (GH-5568)

It now reads: ...be aware that Python has no control over...

7 years agobpo-30693: Fix tarfile test cleanup on MSWindows (#5557)
Bernhard M. Wiedemann [Tue, 6 Feb 2018 18:08:53 +0000 (19:08 +0100)]
bpo-30693: Fix tarfile test cleanup on MSWindows (#5557)

it was using our mocked listdir to check when the files were gone.

7 years agobpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560)
Alexey Izbyshev [Tue, 6 Feb 2018 06:09:34 +0000 (09:09 +0300)]
bpo-32777: Fix _Py_set_inheritable async-safety in subprocess (GH-5560)

Fix a rare but potential pre-exec child process deadlock in subprocess on POSIX systems when marking file descriptors inheritable on exec in the child process.  This bug appears to have been introduced in 3.4 with the inheritable file descriptors support.

This also changes Python/fileutils.c `set_inheritable` to use the "slow" two `fcntl` syscall path instead of the "fast" single `ioctl` syscall path when asked to be async signal safe (by way of being asked not to raise exceptions).  `ioctl` is not a POSIX async-signal-safe approved function.

ref: http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html

7 years agoAdd What's new entry for datetime.fromisoformat (#5559)
Paul Ganssle [Tue, 6 Feb 2018 02:28:46 +0000 (21:28 -0500)]
Add What's new entry for datetime.fromisoformat (#5559)

Documents bpo-15873

7 years agobpo-32749: Make dbm.dumb databases more cosistent with other dbm databases. (#5497)
Serhiy Storchaka [Mon, 5 Feb 2018 20:47:31 +0000 (22:47 +0200)]
bpo-32749: Make dbm.dumb databases more cosistent with other dbm databases. (#5497)

7 years agoFix typo in whatsnew/3.7.rst (GH-5551)
Dag Heyman [Mon, 5 Feb 2018 14:39:33 +0000 (15:39 +0100)]
Fix typo in whatsnew/3.7.rst (GH-5551)

now longer -> no longer

7 years agobpo-32720: Fixed the replacement field grammar documentation. (GH-5544)
Mariatta [Mon, 5 Feb 2018 09:29:02 +0000 (04:29 -0500)]
bpo-32720: Fixed the replacement field grammar documentation. (GH-5544)

`arg_name` and `element_index` are defined as `digit`+ instead of `integer`.

7 years agobpo-8722: Document __getattr__ behavior with AttributeError in property (GH-4754)
Cheryl Sabella [Mon, 5 Feb 2018 02:03:22 +0000 (21:03 -0500)]
bpo-8722: Document __getattr__ behavior with AttributeError in property (GH-4754)

When `__getattr__` is implemented, attribute lookup will always fall back to that,
even if the initial failure comes from `__getattribute__` or a descriptor's `__get__`
method (including property methods).

7 years agoAdd entry for uniform lower context; add 'since' to be explicit. (GH-5539)
Terry Jan Reedy [Mon, 5 Feb 2018 00:07:16 +0000 (19:07 -0500)]
Add entry for uniform lower context; add 'since' to be explicit. (GH-5539)

7 years agobpo-32765: Update configdialog General tab create page docstring (GH-5529)
Cheryl Sabella [Sun, 4 Feb 2018 23:15:21 +0000 (18:15 -0500)]
bpo-32765: Update configdialog General tab create page docstring (GH-5529)

Add new entries to the widget list.

7 years agoTry to fix the AppVeyor cache mechanism (GH-5536)
Zachary Ware [Sun, 4 Feb 2018 20:36:43 +0000 (14:36 -0600)]
Try to fix the AppVeyor cache mechanism (GH-5536)

7 years agoFix version in AppVeyor (GH-5535)
Zachary Ware [Sun, 4 Feb 2018 20:09:29 +0000 (14:09 -0600)]
Fix version in AppVeyor (GH-5535)

7 years agoFix typo -- missing "not" (GH-5528)
Raymond Hettinger [Sun, 4 Feb 2018 17:15:01 +0000 (09:15 -0800)]
Fix typo -- missing "not" (GH-5528)

7 years agoUse assertTrue() instead of deprecated assert_(). (#5526)
Serhiy Storchaka [Sun, 4 Feb 2018 16:14:47 +0000 (18:14 +0200)]
Use assertTrue() instead of deprecated assert_(). (#5526)

7 years agobpo-10544: Disallow "yield" in comprehensions and generator expressions. (GH-4564)
Serhiy Storchaka [Sun, 4 Feb 2018 08:53:48 +0000 (10:53 +0200)]
bpo-10544: Disallow "yield" in comprehensions and generator expressions. (GH-4564)

7 years agobpo-32720: Fixed the definition for width and precision in format mini-language doc...
nathankerr96 [Sun, 4 Feb 2018 05:42:08 +0000 (21:42 -0800)]
bpo-32720: Fixed the definition for width and precision in format mini-language doc (GH-5482)

Changed the definition of width and precision from "integer" to "digit+" in format mini-language doc.

7 years agobpo-32746: Fix multiple typos (GH-5144)
Leo Arias [Sun, 4 Feb 2018 00:36:10 +0000 (18:36 -0600)]
bpo-32746: Fix multiple typos (GH-5144)

Fix typos found by codespell in docs, docstrings, and comments.

7 years agobpo-32739: Show default value for rotate() (GH-5485)
Raymond Hettinger [Sat, 3 Feb 2018 16:46:28 +0000 (08:46 -0800)]
bpo-32739: Show default value for rotate() (GH-5485)

7 years agobpo-32691: Use mod_spec.parent when running modules with pdb (GH-5474)
Mario Corchero [Sat, 3 Feb 2018 06:40:11 +0000 (06:40 +0000)]
bpo-32691: Use mod_spec.parent when running modules with pdb (GH-5474)

Previously the module name was used, which broke relative imports when pdb was run against a plain module or submodule.

7 years agobpo-32604: Fix memory leaks in the new _xxsubinterpreters module. (#5507)
Eric Snow [Sat, 3 Feb 2018 04:49:49 +0000 (21:49 -0700)]
bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. (#5507)

7 years agobpo-32734: Fix asyncio.Lock multiple acquire safety issue (GH-5466)
Bar Harel [Fri, 2 Feb 2018 22:04:00 +0000 (00:04 +0200)]
bpo-32734: Fix asyncio.Lock multiple acquire safety issue (GH-5466)

7 years agobpo-32614: Modify re examples to use a raw string to prevent warning (GH-5265)
Cheryl Sabella [Fri, 2 Feb 2018 21:16:27 +0000 (16:16 -0500)]
bpo-32614: Modify re examples to use a raw string to prevent warning (GH-5265)

Modify RE examples in documentation to use raw strings to prevent DeprecationWarning.
Add text to REGEX HOWTO to highlight the deprecation.  Approved by Serhiy Storchaka.

7 years agobpo-32303 - Consistency fixes for namespace loaders (#5481)
Barry Warsaw [Fri, 2 Feb 2018 20:15:58 +0000 (15:15 -0500)]
bpo-32303 - Consistency fixes for namespace loaders (#5481)

* Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages.
* Make sure ``__spec__.origin` matches ``__file__`` for namespace packages.

https://bugs.python.org/issue32303
https://bugs.python.org/issue32305

7 years agoRevert "bpo-31356: Add context manager to temporarily disable GC GH-5495
Yury Selivanov [Fri, 2 Feb 2018 14:31:06 +0000 (09:31 -0500)]
Revert "bpo-31356: Add context manager to temporarily disable GC GH-5495

This reverts commit 72a0d218dcc94a3cc409a9ef32dfcd5a7bbcb43c.

The reverted commit had a few issues so it was unanimously decided
to undo it. See the bpo issue for details.

7 years agobpo-32747: Remove trailing spaces in docstrings. (GH-5491)
oldk [Fri, 2 Feb 2018 08:52:55 +0000 (16:52 +0800)]
bpo-32747: Remove trailing spaces in docstrings. (GH-5491)

7 years agobpo-32733: Make test_coroutines robust against -Werror (GH-5487)
Nathaniel J. Smith [Fri, 2 Feb 2018 04:55:55 +0000 (20:55 -0800)]
bpo-32733: Make test_coroutines robust against -Werror (GH-5487)

7 years agobpo-32674: Improve the docstring for __import__ (GH-5339)
oldk [Fri, 2 Feb 2018 04:20:00 +0000 (12:20 +0800)]
bpo-32674: Improve the docstring for __import__ (GH-5339)

Clarify that the level argument is used to determine whether to
perform absolute or relative imports: 0 is absolute, while a positive number
is the number of parent directories to search relative to the current module.

7 years agobpo-32436: Fix compiler warning (#5483)
Yury Selivanov [Fri, 2 Feb 2018 03:24:56 +0000 (22:24 -0500)]
bpo-32436: Fix compiler warning (#5483)

7 years agoFix typo in hamt.c comments (#5478)
Dmitry Alimov [Fri, 2 Feb 2018 02:59:48 +0000 (05:59 +0300)]
Fix typo in hamt.c comments (#5478)

7 years agoImplement TimerHandle.when() (#5473)
Andrew Svetlov [Thu, 1 Feb 2018 17:59:32 +0000 (19:59 +0200)]
Implement TimerHandle.when() (#5473)

7 years agobpo-32711: Fix warnings for Python/ast_unparse.c (#5426)
Stéphane Wirtel [Thu, 1 Feb 2018 16:59:27 +0000 (17:59 +0100)]
bpo-32711: Fix warnings for Python/ast_unparse.c (#5426)

* bpo-32711: Fix warnings for Python/ast_unparse.c

7 years ago[3.8] bpo-31508: Remove support of arguments in tkinter.ttk.Treeview.selection. ...
Serhiy Storchaka [Thu, 1 Feb 2018 16:49:21 +0000 (18:49 +0200)]
[3.8] bpo-31508: Remove support of arguments in tkinter.ttk.Treeview.selection. (GH-3651)

It was deprecated in 3.6.

7 years agobpo-32565: Add missed versionadded directives for all new opcodes. (#5199)
Serhiy Storchaka [Thu, 1 Feb 2018 11:48:33 +0000 (13:48 +0200)]
bpo-32565: Add missed versionadded directives for all new opcodes. (#5199)

7 years agobpo-32722: Remove useless example in the Classes tutorial (#5446)
Stéphane Wirtel [Thu, 1 Feb 2018 07:31:07 +0000 (08:31 +0100)]
bpo-32722: Remove useless example in the Classes tutorial (#5446)

In the tutorial about the Generator expression, there is an example with
a dict comprehension and not with a generator expression, just removed
the code.

7 years agoUpdate Doc build to 3.8
Ned Deily [Wed, 31 Jan 2018 23:12:38 +0000 (18:12 -0500)]
Update Doc build to 3.8

7 years agoStart of 3.8.0a0
Ned Deily [Wed, 31 Jan 2018 22:44:09 +0000 (17:44 -0500)]
Start of 3.8.0a0

7 years agoUpdate NEWS, docs, and patchlevel for 3.7.0b1
Ned Deily [Tue, 30 Jan 2018 23:48:26 +0000 (18:48 -0500)]
Update NEWS, docs, and patchlevel for 3.7.0b1

7 years agobpo-32726: Build macOS 10.9+ installer with private copy of Tcl/Tk 8.6
Ned Deily [Tue, 30 Jan 2018 22:29:53 +0000 (17:29 -0500)]
bpo-32726: Build macOS 10.9+ installer with private copy of Tcl/Tk 8.6

7 years agobpo-32735: Fix typo in f-strings datetime format specifier example (GH-5464)
Cheryl Sabella [Wed, 31 Jan 2018 21:37:51 +0000 (16:37 -0500)]
bpo-32735: Fix typo in f-strings datetime format specifier example (GH-5464)

The f-string example for using datetime format specifier does not match the given output.
Changed the format from %b to %B so it matches the output of "January".

7 years agobpo-25988: Emit a warning when use or import ABCs from 'collections'. (#5460)
Serhiy Storchaka [Wed, 31 Jan 2018 17:19:33 +0000 (19:19 +0200)]
bpo-25988: Emit a warning when use or import ABCs from 'collections'. (#5460)

7 years agoMake site documentation more clear (#5461)
Xiang Zhang [Wed, 31 Jan 2018 15:50:50 +0000 (23:50 +0800)]
Make site documentation more clear (#5461)

Mention only ImportError caused by importing sitecustomize.py/usercustomize.py
themselves will be silently ignored.

7 years agobpo-32583: Fix possible crashing in builtin Unicode decoders (#5325)
Xiang Zhang [Wed, 31 Jan 2018 12:48:05 +0000 (20:48 +0800)]
bpo-32583: Fix possible crashing in builtin Unicode decoders (#5325)

When using customized decode error handlers, it is possible for builtin decoders
to write out-of-bounds and then crash.