Barry Warsaw
36c1d1f1e5
PEP 553 built-in breakpoint() function (bpo-31353) ( #3355 )
...
Implement PEP 553, built-in breakpoint() with support from sys.breakpointhook(), along with documentation and tests. Closes bpo-31353
2017-10-05 12:11:18 -04:00
INADA Naoki
c1c47c166b
bpo-31671: re: Convert RegexFlag to int before compile (GH-3862)
...
sre_compile does bit test (e.g. `flags & SRE_FLAG_IGNORECASE`) in loop.
`IntFlag.__and__` and `IntFlag.__new__` made it slower.
So this commit convert it to normal int before passing flags to `sre_compile()`.
2017-10-05 17:19:26 +09:00
pdox
e14679c784
closes bpo-31596: Add an interface for pthread_getcpuclockid(3) ( #3756 )
2017-10-05 00:01:56 -07:00
Serhiy Storchaka
300dd552b1
bpo-30872: Update the curses docs to Python 3. ( #2620 )
2017-10-04 22:44:13 +03:00
Serhiy Storchaka
c02a1f4ad8
bpo-31667: Fix gettext related links. ( #3860 )
...
* Fix incorrect links.
* Remove redundant links.
* Add signatures and index entries for gettext related
functions in the locale module.
2017-10-04 20:28:20 +03:00
Serhiy Storchaka
77732be801
bpo-30404: The -u option now makes the stdout and stderr streams totally unbuffered. ( #1667 )
2017-10-04 20:25:40 +03:00
Serhiy Storchaka
0b5e61ddca
bpo-30397: Add re.Pattern and re.Match. ( #1646 )
2017-10-04 20:09:49 +03:00
Ned Deily
e2d0dd2cf9
Remove retired and security branches from active docs ( #3879 )
2017-10-03 22:56:19 -04:00
INADA Naoki
1a87de7fcf
bpo-31415: Add `-X importtime` option (GH-3490)
...
It shows show import time of each module.
It's useful for optimizing startup time.
Typical usage: python -X importtime -c 'import requests'
2017-10-03 19:46:34 +09:00
Thomas Moreau
e8c368df22
bpo-31540: Allow passing multiprocessing context to ProcessPoolExecutor ( #3682 )
2017-10-03 11:53:17 +02:00
scoder
101a5e84ac
bpo-31648: Improve ElementPath ( #3835 )
...
* Allow whitespace inside of ElementPath predicates.
* Add ElementPath predicate support for text comparison of the current node, like "[.='text']".
2017-09-30 16:35:21 +03:00
Christian Heimes
3d2b407da0
bpo-31574: importlib dtrace ( #3749 )
...
Importlib was instrumented with two dtrace probes to profile import timing.
Signed-off-by: Christian Heimes <christian@python.org>
2017-09-29 15:53:19 -07:00
Zhiming Wang
d87b105ca7
bpo-31638: Add compression support to zipapp (GH-3819)
...
Add optional argument `compressed` to `zipapp.create_archive`, and add
option `--compress` to the command line interface of `zipapp`.
2017-09-29 18:31:52 +01:00
kms70847
8d59aca4a9
Fix typo in Simple Statements documentation (GH-3809)
...
Replace "restriction" with "restrictions".
2017-09-28 12:54:48 -07:00
Benjamin Peterson
236329ed9f
point to the module-level get_ident function rather than the one in _thread ( #3782 )
2017-09-26 23:13:15 -07:00
Guilherme Caminha
4a2d00cb45
bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691)
...
- Remove the second mention about the `u` prefix
- Remove the second mention about numeric literals do not include a sign
2017-09-25 16:16:54 -07:00
Stefan Grönke
f1502d097c
bpo-31569: correct PCBuild/ case to PCbuild/ in build scripts and docs (GH-3711)
2017-09-25 17:58:10 +01:00
Raymond Hettinger
49392c63a2
bpo-27385: Clarify docstring for groupby() ( #3738 )
2017-09-25 01:21:06 -07:00
Raymond Hettinger
0d4497b9ca
bpo-23702: Update Descriptor-HOWTO to reflect the removal of unbound methods ( #3739 )
2017-09-25 01:05:49 -07:00
Raymond Hettinger
0bf287b6e0
bpo-18558: Clarify glossary entry for "Iterable" ( #3732 )
2017-09-25 00:52:06 -07:00
Sanket Dasgupta
5b9299d8c7
bpo-30085: Improve documentation for operator ( #1171 )
...
The dunderless functions are preferred; dunder are retained for back compatilibity.
Patch by Sanket Dasgupta.
2017-09-24 14:29:22 -04:00
Henk-Jaap Wagenaar
8337239d79
Update Email library documentation example (GH-3720)
...
A `"` was missing from an `<a href>` tag.
2017-09-24 09:12:53 -07:00
Serhiy Storchaka
2fad102354
bpo-27319, bpo-31508: Document deprecation in Treeview.selection(). ( #3667 )
...
Defer removing old behavior to 3.8.
Document new feature of selection_set() and friends.
2017-09-24 14:34:09 +03:00
Serhiy Storchaka
c247caf33f
bpo-30346: An iterator produced by the itertools.groupby() iterator ( #1569 )
...
now becames exhausted after advancing the groupby iterator.
2017-09-24 13:36:11 +03:00
topper-123
039b25d8fd
bpo-31564: Update typing documentation (GH-3696)
...
Mention that ``NewType`` can derive from another ``NewType``.
2017-09-23 19:37:48 -07:00
Dmitry Chestnykh
aecc08ac3a
Docs: correct hashlib.blake2 keyed hashing example (bpo-31560)
2017-09-23 10:18:40 -07:00
François Magimel
da9b4cfb48
bpo-31423: Fix building the PDF documentation (GH-3693)
...
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`.
2017-09-22 12:16:57 -05:00
Barry Warsaw
35425d638c
bpo-31389 Add an optional `header` argument to pdb.set_trace() ( #3438 )
...
* Give pdb.set_trace() an optional `header` argument
* What's new.
* Give pdb.set_trace() an optional `header` argument
* What's new.
2017-09-22 12:29:42 -04:00
Stefan Krah
b1558a0368
bpo-31443: Update included code. ( #3697 )
2017-09-22 18:14:13 +02:00
Stefan Krah
ca72589bfa
bpo-31443: Formulate the type slot initialization rules in terms of C99. ( #3688 )
2017-09-22 17:44:58 +02:00
Igor Filatov
9adda0cdf8
bpo-31351: Set return code in ensurepip when pip fails (GH-3626)
...
Previously ensurepip would always report success, even if the
pip installation failed.
2017-09-21 20:07:45 +10:00
Anthony Sottile
aaf6fc0982
bpo-26510: make argparse subparsers required by default ( #3027 )
...
This fixes a regression from Python 2. To get optional subparsers,
use the new parameter ``add_subparsers(required=False)``.
Patch by Anthony Sottile.
2017-09-20 17:35:27 -04:00
Felipe
19e4d9346d
bpo-31533: fix broken link to OpenSSL docs ( #3674 )
2017-09-20 20:20:18 +02:00
Steve Dower
a4bb58fda4
Fix build issues in Doc/make.bat ( #3658 )
2017-09-19 12:31:28 -07:00
Antoine Pitrou
b43c4caf81
Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31370) ( #3648 )
2017-09-18 22:04:20 +02:00
svelankar
9b47af6537
bpo-31501: Operator precedence description for arithmetic operators ( #3633 )
2017-09-17 17:56:16 -07:00
Mariatta
63c591c0b0
bpo-31487: Update F-strings doc example (GH-3627)
...
Shorten the comment to: "using integer format specifier"
2017-09-17 07:43:31 -07:00
Mariatta
f361897069
Improve f-strings documentation (GH-3604)
...
Provide additional examples of using format specifiers in f-strings
Added examples for using integer and date format specifiers.
2017-09-16 11:46:43 -07:00
Mariatta
0ec8c4bd10
bpo-31458: Clarify that Changelog is built from Misc/NEWS.d directory (GH-3617)
2017-09-16 10:43:30 -07:00
Eric Snow
3f9eee6eb4
bpo-28411: Support other mappings in PyInterpreterState.modules. ( #3593 )
...
The concrete PyDict_* API is used to interact with PyInterpreterState.modules in a number of places. This isn't compatible with all dict subclasses, nor with other Mapping implementations. This patch switches the concrete API usage to the corresponding abstract API calls.
We also add a PyImport_GetModule() function (and some other helpers) to reduce a bunch of code duplication.
2017-09-15 16:35:20 -06:00
Christian Heimes
e82c034496
bpo-31431: SSLContext.check_hostname auto-sets CERT_REQUIRED ( #3531 )
...
Signed-off-by: Christian Heimes <christian@python.org>
2017-09-15 20:29:57 +02:00
Christian Heimes
4df60f18c6
bpo-31386: Custom wrap_bio and wrap_socket type ( #3426 )
...
SSLSocket.wrap_bio() and SSLSocket.wrap_socket() hard-code SSLObject and
SSLSocket as return types. In the light of future deprecation of
ssl.wrap_socket() module function and direct instantiation of SSLSocket,
it is desirable to make the return type of SSLSocket.wrap_bio() and
SSLSocket.wrap_socket() customizable.
Signed-off-by: Christian Heimes <christian@python.org>
2017-09-15 20:26:05 +02:00
Terry Jan Reedy
ff70289002
bpo-314777: IDLE - improve rstrip entry in doc ( #3602 )
...
'Strip trailing whitespace' is not limited to spaces. Wording caters to beginners who
do know know the meaning of 'whitespace'. Multiline string literals are not skipped.
* News blurb.
2017-09-15 13:05:28 -04:00
Paul Romano
992f613fe6
Fix description in Python 3.7 What's New ( #3603 )
2017-09-15 20:00:57 +03:00
Michael Seifert
da67e0d644
bpo-29916: Include PyGetSetDef in C API extension documentation. ( #831 )
2017-09-15 19:25:27 +03:00
Barry Warsaw
b2e5794870
bpo-31338 ( #3374 )
...
* Add Py_UNREACHABLE() as an alias to abort().
* Use Py_UNREACHABLE() instead of assert(0)
* Convert more unreachable code to use Py_UNREACHABLE()
* Document Py_UNREACHABLE() and a few other macros.
2017-09-14 18:13:16 -07:00
Feanil Patel
6a396c9807
bpo-31128: Allow pydoc to bind to arbitrary hostnames ( #3011 )
...
New -n flag allow overriding localhost with custom value,
for example to run from containers.
2017-09-14 17:54:09 -04:00
Eric Snow
93c92f7d1d
bpo-31404: Revert "remove modules from Py_InterpreterState ( #1638 )" ( #3565 )
...
PR #1638 , for bpo-28411, causes problems in some (very) edge cases. Until that gets sorted out, we're reverting the merge. PR #3506 , a fix on top of #1638 , is also getting reverted.
2017-09-13 23:46:04 -07:00
sww
312ffead1e
Improve code examples in hashlib cookie signing (GH-3562)
...
The `blake2b` function does not take the `data` keyword argument.
The hex digest returned by sign was a string, whereas compare_digest expects bytes-like objects.
Typo fix: compare_digesty -> compare_digest
2017-09-13 23:24:36 -07:00
Mariatta
1b8f612e18
bpo-31458: Update Misc/NEWS link in What's New page (GH-3555)
...
Update the link from Misc/NEWS to Misc/NEWS.d
2017-09-13 16:47:33 -07:00