Antoine Pitrou
525f40d231
bpo-31819: Add AbstractEventLoop.sock_recv_into() ( #4051 )
* bpo-31819: Add AbstractEventLoop.sock_recv_into()
* Add NEWS
* Add doc
8 years ago
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.
8 years ago
Barry Warsaw
191e313820
bpo-31799: Make module.__spec__ more discoverable ( #4010 )
bpo-31799: Make module.__spec__ more discoverable
8 years ago
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>
8 years ago
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.
8 years ago
vyas45
1b9e76ed3a
bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides (GH-3993)
8 years ago
Raymond Hettinger
8c26a34f93
bpo-31757: Make Fibonacci examples consistent ( #3991 )
8 years ago
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
8 years ago
Serhiy Storchaka
cd195e2a7a
bpo-31714: Improved regular expression documentation. ( #3907 )
8 years ago
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.
8 years ago
Berker Peksag
7f58097083
bpo-28647: Update -u documentation after bpo-30404 (GH-3961)
8 years ago
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]`.
8 years ago
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
8 years ago
Ned Deily
6129250b74
Exclude non-default VENVDIR in Doc builds ( #3974 )
8 years ago
Ned Deily
b7cbfe49e3
bpo-31766: restore 3.5 to docs version switchers ( #3969 )
8 years ago
Éric Araujo
03b9537dc5
bpo-31567: more decorator markup fixes in docs (GH-3959) ( #3966 )
8 years ago
Daisuke Miyakawa
0e61e67a57
bpo-31567: add or fix decorator markup in docs ( #3959 )
8 years ago
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.
8 years ago
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`.
8 years ago
Serhiy Storchaka
4d3f084c03
bpo-27867: Add a porting guide for PySlice_GetIndicesEx(). ( #1973 )
8 years ago
Oren Milman
0ccc0f6c74
bpo-28280: Make PyMapping_Keys(), PyMapping_Values() and PyMapping_Items() always return a list ( #3840 )
8 years ago
Tzu-ping Chung
28f713601d
bpo-31720: msilib documentation, change MsiError into MSIError (GH-3914)
8 years ago
Yury Selivanov
02e82a0596
bpo-31709: Update importlib magic ( #3906 )
8 years ago
Barry Warsaw
a51b90a313
Document Py_GETENV() ( #3890 )
8 years ago
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
8 years ago
Yury Selivanov
b8ab9d3fc8
bpo-31708: Allow async generator expressions in synchronous functions ( #3905 )
8 years ago
Yury Selivanov
faa135acbf
bpo-31709: Drop support for asynchronous __aiter__. ( #3903 )
8 years ago
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.
8 years ago
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
8 years ago
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()`.
8 years ago
pdox
e14679c784
closes bpo-31596: Add an interface for pthread_getcpuclockid(3) ( #3756 )
8 years ago
Serhiy Storchaka
300dd552b1
bpo-30872: Update the curses docs to Python 3. ( #2620 )
8 years ago
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.
8 years ago
Serhiy Storchaka
77732be801
bpo-30404: The -u option now makes the stdout and stderr streams totally unbuffered. ( #1667 )
8 years ago
Serhiy Storchaka
0b5e61ddca
bpo-30397: Add re.Pattern and re.Match. ( #1646 )
8 years ago
Ned Deily
e2d0dd2cf9
Remove retired and security branches from active docs ( #3879 )
8 years ago
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'
8 years ago
Thomas Moreau
e8c368df22
bpo-31540: Allow passing multiprocessing context to ProcessPoolExecutor ( #3682 )
8 years ago
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']".
8 years ago
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>
8 years ago
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`.
8 years ago
kms70847
8d59aca4a9
Fix typo in Simple Statements documentation (GH-3809)
Replace "restriction" with "restrictions".
8 years ago
Benjamin Peterson
236329ed9f
point to the module-level get_ident function rather than the one in _thread ( #3782 )
9 years ago
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
9 years ago
Stefan Grönke
f1502d097c
bpo-31569: correct PCBuild/ case to PCbuild/ in build scripts and docs (GH-3711)
9 years ago
Raymond Hettinger
49392c63a2
bpo-27385: Clarify docstring for groupby() ( #3738 )
9 years ago
Raymond Hettinger
0d4497b9ca
bpo-23702: Update Descriptor-HOWTO to reflect the removal of unbound methods ( #3739 )
9 years ago
Raymond Hettinger
0bf287b6e0
bpo-18558: Clarify glossary entry for "Iterable" ( #3732 )
9 years ago
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.
9 years ago
Henk-Jaap Wagenaar
8337239d79
Update Email library documentation example (GH-3720)
A `"` was missing from an `<a href>` tag.
9 years ago