Phobosmir
82cd3cede8
bpo-31678: Fix typo in PyDateTime_DELTA_GET_MICROSECONDS (GH-3869)
2017-11-04 13:39:45 +03:00
Antoine Pitrou
63ff4131af
bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor ( #4241 )
...
* bpo-21423: Add an initializer argument to {Process,Thread}PoolExecutor
* Fix docstring
2017-11-04 11:05:49 +01:00
Chillar Anand
b838cc3ff4
bpo-18699: Corrected documentation for window.chgat in curses module ( #1430 )
2017-11-04 10:13:16 +02:00
Barry Warsaw
93952f8815
Fix a grammatical problem and reword for clarity. ( #4257 )
...
bpo-31936
2017-11-03 13:45:46 -07:00
Barry Warsaw
700d2e4755
bpo-31415: Support PYTHONPROFILEIMPORTTIME envvar equivalent to -X importtime ( #4240 )
...
Support PYTHONPROFILEIMPORTTIME envvar equivalent to -X importtime
2017-11-02 16:13:36 -07:00
Simon Willison
ac03c03b30
Returning 1 from the set_progress_handler handler cancels query (GH-4120)
2017-11-02 17:34:11 +03:00
Victor Stinner
c29b585fd4
bpo-31784: Implement PEP 564: add time.time_ns() ( #3989 )
...
Add new time functions:
* time.clock_gettime_ns()
* time.clock_settime_ns()
* time.monotonic_ns()
* time.perf_counter_ns()
* time.process_time_ns()
* time.time_ns()
Add new _PyTime functions:
* _PyTime_FromTimespec()
* _PyTime_FromNanosecondsObject()
* _PyTime_FromTimeval()
Other changes:
* Add also os.times() tests to test_os.
* pytime_fromtimeval() and pytime_fromtimeval() now return
_PyTime_MAX or _PyTime_MIN on overflow, rather than undefined
behaviour
* _PyTime_FromNanoseconds() parameter type changes from long long to
_PyTime_t
2017-11-02 07:28:27 -07:00
Vincent Michel
e314853d57
bpo-31307: Make ConfigParser.read() accept bytes objects (GH-3420)
2017-11-02 15:47:04 +03:00
Victor Stinner
a64ce973a3
bpo-31917: Add 3 new clock identifiers ( #4207 )
...
Add new clock identfiers:
* time.CLOCK_BOOTTIME
* time.CLOCK_PROF
* time.CLOCK_UPTIME
2017-11-02 04:19:19 -07:00
stratakis
e8b1965639
bpo-23699: Use a macro to reduce boilerplate code in rich comparison functions (GH-793)
2017-11-02 20:32:54 +10:00
Victor Stinner
ec2cbdd1df
bpo-20064: Document PyObject_Malloc() ( #4199 )
...
Document the following functions:
* PyObject_Malloc()
* PyObject_Calloc()
* PyObject_Realloc()
* PyObject_Free()
Fix also PyMem_RawFree() documentation.
2017-10-31 09:37:25 -07:00
Pablo Galindo
11225753a8
bpo-31304: Update starmap_async documentation. (GH-4168)
...
Update the kwarg in the documentation of `multiprocessing.pool.Pool.starmap_async`, from `error_back` to `error_callback` to match the source code..
2017-10-30 11:39:28 -07:00
Quentin Dawans
fe4ea9cf1e
bpo-31245: Asyncio unix socket datagram ( #3164 )
2017-10-30 09:43:02 -04:00
Serhiy Storchaka
a2314283ff
bpo-20047: Make bytearray methods partition() and rpartition() rejecting ( #4158 )
...
separators that are not bytes-like objects.
2017-10-29 02:11:54 +03:00
Utkarsh Upadhyay
843ea47a03
bpo-31545: Update documentation containing timedelta repr. (GH-3687)
...
This is a fix to the documentation to reflect the changes merged
in as part of bpo-30302.
2017-10-27 14:25:15 +03:00
Arthur Darcet
2f3d6993d7
Fixed sorting order of the LogRecord attributes in the documentation. (GH-4133)
2017-10-27 08:06:20 +01:00
cocoatomo
d609b0c24e
bpo-31053: Remove redundant 'venv' argument in venv example (GH-2907)
2017-10-27 07:42:11 +03:00
Alexander Belopolsky
66c88ce30c
Closes bpo-28281: Remove year (1-9999) limits on the weekday() function. ( #4109 )
...
Patch by Mark Gollahon.
2017-10-26 15:34:11 -04:00
Vitor Pereira
52ad72dd0a
bpo-30553: Add status code 421 to http.HTTPStatus (GH-2589)
2017-10-26 21:49:19 +03:00
xdegaye
56d1f5ca32
bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327)
2017-10-26 15:09:06 +02:00
Ammar Askar
275d2d9c46
bpo-30937: Make usage of newline='' consistent in csv docs (GH-2730)
2017-10-26 11:27:46 +03:00
Mario Corchero
32318930da
Closes bpo-31800: Support for colon when parsing time offsets ( #4015 )
...
Add support to strptime to parse time offsets with a colon between the hour and the minutes.
2017-10-25 20:35:41 -04:00
Serhiy Storchaka
3557b05c5a
bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group flags for RE. ( #3885 )
2017-10-24 23:31:42 +03:00
Alexander Belopolsky
fdd9b217c6
Closes bpo-28292: Implemented Calendar.itermonthdays3() and itermonthdays4(). ( #4079 )
...
Calendar.itermonthdates() will now consistently raise an exception when a date falls outside of the 0001-01-01 through 9999-12-31 range. To support applications that cannot tolerate such exceptions, the new methods itermonthdays3() and itermonthdays4() are added. The new methods return tuples and are not restricted by the range supported by datetime.date.
Thanks @serhiy-storchaka for suggesting the itermonthdays4() method and for the review.
2017-10-24 13:17:10 -04:00
Serhiy Storchaka
eab3ff72eb
bpo-31664: Add support for the Blowfish method in crypt. ( #3854 )
2017-10-24 19:36:17 +03:00
Masayuki Yamamoto
831d61d56c
Fix wording about Py_tss_NEEDS_INIT in docs (GH-4096)
...
Make more sense to replace the word "default value" with
"initializer" for Py_tss_NEEDS_INIT.
2017-10-24 22:58:16 +10:00
Julien Palard
809d173c20
bpo-31812: Add documentation translations to What's New in Python 3.7. (GH-4064)
2017-10-24 02:22:22 -07:00
Victor Stinner
01b5aab7bf
bpo-31827: Remove os.stat_float_times() (GH-4061)
2017-10-24 02:02:00 -07:00
andyclegg
7fed7bd8bb
bpo-31756: subprocess.run should alias universal_newlines to text ( #4049 )
...
Improve human friendliness of the Popen API: Add text=False as a
keyword-only argument to subprocess.Popen along with a Popen
attribute .text_mode and set this based on the
encoding/errors/universal_newlines/text arguments.
The universal_newlines parameter and attribute are maintained for
backwards compatibility.
2017-10-22 19:01:19 -07:00
Cheryl Sabella
91dc64ba3f
bpo-20825: Containment test for ip_network in ip_network.
2017-10-22 23:39:49 +02:00
Antoine Pitrou
525f40d231
bpo-31819: Add AbstractEventLoop.sock_recv_into() ( #4051 )
...
* bpo-31819: Add AbstractEventLoop.sock_recv_into()
* Add NEWS
* Add doc
2017-10-19 15:46:40 -04:00
Victor Stinner
884d13a55f
time.clock() now emits a DeprecationWarning (GH-4020)
...
bpo-31803: time.clock() and time.get_clock_info('clock') now emit a
DeprecationWarning warning.
Replace time.clock() with time.perf_counter() in tests and demos.
Remove also hasattr(time, 'monotonic') in test_time since time.monotonic()
is now always available since Python 3.5.
2017-10-17 14:46:45 -07:00
Barry Warsaw
191e313820
bpo-31799: Make module.__spec__ more discoverable ( #4010 )
...
bpo-31799: Make module.__spec__ more discoverable
2017-10-17 15:52:38 -04:00
Mario Corchero
552be9d7e6
bpo-30541: Add new method to seal mocks (GH61923)
...
The new method allows the developer to control when to stop the
feature of mocks that automagically creates new mocks when accessing
an attribute that was not declared before
Signed-off-by: Mario Corchero <mariocj89@gmail.com>
2017-10-17 04:35:11 -07:00
brainfvck
c75edabbb6
bpo-31558: Add gc.freeze() ( #3705 )
...
Freeze all the objects tracked by gc - move them to a permanent generation
and ignore all the future collections. This can be used before a POSIX
fork() call to make the gc copy-on-write friendly or to speed up collection.
2017-10-16 12:49:41 -07:00
vyas45
1b9e76ed3a
bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides (GH-3993)
2017-10-15 10:31:36 +03:00
Raymond Hettinger
8c26a34f93
bpo-31757: Make Fibonacci examples consistent ( #3991 )
2017-10-14 07:36:08 -07:00
INADA Naoki
073150db39
bpo-31672: doc: Remove one sentence from library/string.rst (GH-3990)
...
This sentence is removed while backporting to 3.6 branch.
See https://github.com/python/cpython/pull/3982#discussion_r144555768
2017-10-14 21:22:41 +09:00
Serhiy Storchaka
cd195e2a7a
bpo-31714: Improved regular expression documentation. ( #3907 )
2017-10-14 11:14:26 +03:00
Victor Stinner
ef611c96ea
bpo-30807: signal.setitimer() now uses _PyTime API (GH-3865)
...
The _PyTime API handles detects overflow and is well tested.
Document that the signal will only be sent once if internal is equal
to zero.
2017-10-13 13:49:43 -07:00
Berker Peksag
7f58097083
bpo-28647: Update -u documentation after bpo-30404 (GH-3961)
2017-10-13 15:16:31 +03:00
INADA Naoki
b22273ec5d
bpo-31672: Fix string.Template accidentally matched non-ASCII identifiers (GH-3872)
...
Pattern `[a-z]` with `IGNORECASE` flag can match to some non-ASCII characters.
Straightforward solution for this is using `IGNORECASE | ASCII` flag.
But users may subclass `Template` and override only `idpattern`. So we want to
avoid changing `Template.flags`.
So this commit uses local flag `-i` for `idpattern` and change `[a-z]` to `[a-zA-Z]`.
2017-10-13 16:02:23 +09:00
Berker Peksag
9255104499
Improve test suite customization example (GH-3967)
...
Reported by John Gamboa on docs@p.o at
https://mail.python.org/pipermail/docs/2017-June/031942.html
2017-10-13 06:41:57 +03:00
Ned Deily
6129250b74
Exclude non-default VENVDIR in Doc builds ( #3974 )
2017-10-12 16:04:57 -04:00
Ned Deily
b7cbfe49e3
bpo-31766: restore 3.5 to docs version switchers ( #3969 )
2017-10-12 14:08:43 -04:00
Éric Araujo
03b9537dc5
bpo-31567: more decorator markup fixes in docs (GH-3959) ( #3966 )
2017-10-12 12:28:55 -04:00
Daisuke Miyakawa
0e61e67a57
bpo-31567: add or fix decorator markup in docs ( #3959 )
2017-10-12 10:39:43 -04:00
Cheryl Sabella
703ff381ff
bpo-28157: Improvements for the time module documentation (GH-928)
...
* Separated functions and constants descriptions in sections.
* Added a note about the limitations of timezone constants.
* Removed redundant lists from the module docstring.
2017-10-11 16:29:14 +03:00
Brad Smith
eeb5ffd54e
bpo-31537: Update readline documentation example. (GH-3925)
...
Change the code example from using `get_history_length` to `get_current_history_length`.
2017-10-10 14:52:58 -07:00
Serhiy Storchaka
4d3f084c03
bpo-27867: Add a porting guide for PySlice_GetIndicesEx(). ( #1973 )
2017-10-08 12:53:34 +03:00
Oren Milman
0ccc0f6c74
bpo-28280: Make PyMapping_Keys(), PyMapping_Values() and PyMapping_Items() always return a list ( #3840 )
2017-10-08 11:17:46 +03:00
Tzu-ping Chung
28f713601d
bpo-31720: msilib documentation, change MsiError into MSIError (GH-3914)
2017-10-07 07:55:00 -07:00
Yury Selivanov
02e82a0596
bpo-31709: Update importlib magic ( #3906 )
2017-10-06 10:18:10 -04:00
Barry Warsaw
a51b90a313
Document Py_GETENV() ( #3890 )
2017-10-06 09:53:48 -04:00
Masayuki Yamamoto
731e189014
bpo-25658: Implement PEP 539 for Thread Specific Storage (TSS) API (GH-1362)
...
See PEP 539 for details.
Highlights of changes:
- Add Thread Specific Storage (TSS) API
- Document the Thread Local Storage (TLS) API as deprecated
- Update code that used TLS API to use TSS API
2017-10-06 20:41:34 +10:00
Yury Selivanov
b8ab9d3fc8
bpo-31708: Allow async generator expressions in synchronous functions ( #3905 )
2017-10-06 02:58:28 -04:00
Yury Selivanov
faa135acbf
bpo-31709: Drop support for asynchronous __aiter__. ( #3903 )
2017-10-06 02:08:57 -04:00
Jelle Zijlstra
ac317700ce
bpo-30406: Make async and await proper keywords ( #1669 )
...
Per PEP 492, 'async' and 'await' should become proper keywords in 3.7.
2017-10-05 23:24:46 -04:00
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