Raymond Hettinger
f01d1be97d
bpo-40286: Put methods in correct sections. Add security notice to use secrets for session tokens. (GH-19870)
2020-05-04 22:52:13 -07:00
Joel Rosdahl
9d74658f0a
bpo-40499: Mention that asyncio.wait() needs a non-empty aws set (GH-19900)
...
A similar formulation was added in bpo-21596
(db74d982d4
) but was lost in bpo-33649
(3faaa8857a
).
2020-05-04 14:56:00 -07:00
Joannah Nanjekye
f25fb6ebfe
bpo-39470: Indicate that ``os.makedirs`` is equivalent to ``Path.mkdir`` (GH-18216)
...
* Indicate os.makedirs is equivalent to Path.mkdir
* 📜 🤖 Added by blurb_it.
* ignore news feed
Co-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2020-05-04 16:47:03 -03:00
Raymond Hettinger
ad9eaeab74
Remove outdated and confusing advice about setting maxsize (GH-19889)
2020-05-03 16:45:13 -07:00
Mathieu Dupuy
8aab84312e
Fix missing space in docs(GH-19866)
2020-05-02 16:50:47 -07:00
Raymond Hettinger
190fac99c5
bpo-40465: Deprecate the optional argument to random.shuffle(). ( #19867 )
2020-05-02 16:45:32 -07:00
Sander
766352320f
bpo-40419: timeit CLI docs now mention 1,2,5,10,... trials instead of powers of 10 (GH-19752)
2020-05-02 19:12:05 +03:00
Serhiy Storchaka
531d1e5412
bpo-39435: Make the first argument of pickle.loads() positional-only. (GH-19846)
...
It was positional-only de facto: documentation and two implementations
used three different name.
2020-05-02 09:38:01 +03:00
Shantanu
289842ae82
bpo-39435: Fix docs for pickle.loads (GH-18160)
2020-05-01 12:46:01 -07:00
Shantanu
831d58d786
bpo-39691: Clarify io.open_code behavior (GH-19824)
2020-05-01 18:52:10 +01:00
lrjball
3209cbd99b
bpo-40394 - difflib.SequenceMatched.find_longest_match default args (GH-19742)
...
* bpo-40394 - difflib.SequenceMatched.find_longest_match default args
Added default args to find_longest_match, as well as related tests.
2020-04-29 22:42:45 -05:00
karl ding
360371f79c
bpo-40291: Add support for CAN_J1939 sockets (GH-19538)
...
Add support for CAN_J1939 sockets that wrap SAE J1939 protocol
functionality provided by Linux 5.4+ kernels.
2020-04-29 15:31:19 -07:00
Serhiy Storchaka
bfb1cf4465
bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)
2020-04-29 10:36:20 +03:00
Ethan Onstott
d9a43e20fa
bpo-40025: Require _generate_next_value_ to be defined before members (GH-19098)
...
require `_generate_next_value_` to be defined before members
2020-04-28 10:20:55 -07:00
Victor Stinner
9adccc1384
bpo-30966: Add multiprocessing.SimpleQueue.close() (GH-19735)
...
Add a new close() method to multiprocessing.SimpleQueue to explicitly
close the queue.
Automerge-Triggered-By: @pitrou
2020-04-27 09:11:10 -07:00
Dong-hee Na
c5c42815ec
bpo-40375: Implement imaplib.IMAP4.unselect (GH-19712)
2020-04-27 23:52:55 +09:00
Raymond Hettinger
88499f15f5
bpo-40387: Improve queue join() example. (GH-19724)
2020-04-26 18:11:27 -07:00
Serhiy Storchaka
515fce4fc4
bpo-40275: Avoid importing logging in test.support (GH-19601)
...
Import logging lazily in assertLogs() in unittest.
Move TestHandler from test.support to logging_helper.
2020-04-25 11:35:18 +03:00
Serhiy Storchaka
16994912c9
bpo-40275: Avoid importing socket in test.support (GH-19603)
...
* Move socket related functions from test.support to socket_helper.
* Import socket, nntplib and urllib.error lazily in transient_internet().
* Remove importing multiprocess.
2020-04-25 10:06:29 +03:00
Carl Meyer
503de7149d
bpo-40360: Deprecate lib2to3 module in light of PEP 617 (GH-19663)
...
Deprecate lib2to3 module in light of PEP 617.
We anticipate removal in the 3.12 timeframe.
2020-04-24 11:19:46 -07:00
Victor Stinner
d663d34685
bpo-39983: Add test.support.print_warning() (GH-19683)
...
Log "Warning -- ..." test warnings into sys.__stderr__ rather than
sys.stderr, to ensure to display them even if sys.stderr is captured.
test.libregrtest.utils.print_warning() now calls
test.support.print_warning().
2020-04-23 19:03:52 +02:00
sweeneyde
a81849b031
bpo-39939: Add str.removeprefix and str.removesuffix (GH-18939)
...
Added str.removeprefix and str.removesuffix methods and corresponding
bytes, bytearray, and collections.UserString methods to remove affixes
from a string if present. See PEP 616 for a full description.
2020-04-22 23:05:48 +02:00
Raymond Hettinger
d3a8d616fa
Small improvements to the recipes and examples. (GH-19635)
...
* Add underscores to long numbers to improve readability
* Use bigger dataset in the bootstrapping example
* Convert single-server queue example to more useful multi-server queue
2020-04-21 16:11:00 -07:00
Tim Hoffmann
8aea4b3605
bpo-40148: Add PurePath.with_stem() (GH-19295)
...
Add PurePath.with_stem()
2020-04-19 17:29:49 +02:00
Tim Lo
c12375aa0b
bpo-39285: Clarify example for PurePath.match (GH-19458)
...
Fixes Issue39285
The example incorrectly returned True for match.
Furthermore the example is ambiguous in its usage of PureWindowsPath.
Windows is case-insensitve, however the underlying match functionality
utilizes fnmatch.fnmatchcase.
Automerge-Triggered-By: @pitrou
2020-04-19 02:43:11 -07:00
Raymond Hettinger
4fe002045f
bpo-40325: Deprecate set object support in random.sample() (GH-19591)
2020-04-19 00:36:42 -07:00
Furkan Önder
482259d0dc
bpo-27635: Fix pickle documentation about `__new__` not being called. (GH-19269)
...
Automerge-Triggered-By: @pitrou
2020-04-18 11:09:09 -07:00
Serhiy Storchaka
2b5603140c
bpo-40178: Convert the remaining os functions to Argument Clinic. (GH-19360)
...
Convert os.getgrouplist(), os.initgroups(), os.sendfile() and
os.get_terminal_size().
2020-04-18 19:14:10 +03:00
Antoine Pitrou
75a3378810
bpo-40282: Allow random.getrandbits(0) (GH-19539)
2020-04-17 19:32:14 +02:00
Victor Stinner
9f5fe7910f
bpo-40286: Add randbytes() method to random.Random (GH-19527)
...
Add random.randbytes() function and random.Random.randbytes()
method to generate random bytes.
Modify secrets.token_bytes() to use SystemRandom.randbytes()
rather than calling directly os.urandom().
Rename also genrand_int32() to genrand_uint32(), since it returns an
unsigned 32-bit integer, not a signed integer.
The _random module is now built with Py_BUILD_CORE_MODULE defined.
2020-04-17 19:05:35 +02:00
Mariusz Felisiak
06a35542aa
bpo-40300: Allow empty logging.Formatter.default_msec_format. (GH-19551)
2020-04-17 17:02:47 +01:00
Raymond Hettinger
bf1a81258c
Minor modernization and readability improvement to the tokenizer example (GH-19558)
2020-04-16 19:54:13 -07:00
Christoph Zwerschke
a388bbd3f1
Fix parameter names in assertIn() docs (GH-18829)
...
The names "member" and "container" for the arguments are also used in the module and shown with the help() function, and are immediately understandable in this context, contrary to "first" and "second".
2020-04-16 18:54:53 -07:00
Raymond Hettinger
70f027dd22
bpo-40290: Add zscore() to statistics.NormalDist. (GH-19547)
2020-04-16 10:25:14 -07:00
Serhiy Storchaka
fbf2786c4c
bpo-40257: Output object's own docstring in pydoc (GH-19479)
2020-04-15 23:00:20 +03:00
Batuhan Taşkaya
990ea4200f
bpo-40208: Remove deprecated has_exec method of SymbolTable (GH-19396)
2020-04-14 08:51:32 +09:00
Sebastian Pedersen
a1a0eb4a39
bpo-39380: Change ftplib encoding from latin-1 to utf-8 (GH-18048)
...
Add the encoding in ftplib.FTP and ftplib.FTP_TLS to the
constructor as keyword-only and change the default from "latin-1" to "utf-8"
to follow RFC 2640.
2020-04-14 01:07:56 +02:00
laike9m
85dd6bb1f6
Improved documentation for `BUILD_CONST_KEY_MAP` (GH-19454)
2020-04-13 10:55:45 +08:00
Victor Stinner
14d5331eb5
bpo-40234: Revert "bpo-37266: Daemon threads are now denied in subinterpreters (GH-14049)" (GH-19456)
...
This reverts commit 066e5b1a91
.
2020-04-12 23:45:09 +02:00
Pablo Galindo
7ec43a7309
bpo-38501: Add a warning section to multiprocessing.Pool docs about resource managing (GH-19466)
2020-04-11 03:05:37 +01:00
Zackery Spytz
97e0de04b8
bpo-25780: Expose CAN_RAW_JOIN_FILTERS in the socket module (GH-19190)
...
Co-Authored-By: Stefan Tatschner <stefan@rumpelsepp.org>
2020-04-09 13:03:49 +01:00
Rémi Lapeyre
74e1b6b100
Document missing methods of ssl.SSLObject ( #19400 )
...
Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
2020-04-07 09:38:59 +02:00
Serhiy Storchaka
6fed3c8540
bpo-40182: Remove the _field_types attribute of the NamedTuple class (GH-19368)
2020-04-05 00:43:20 +03:00
Zackery Spytz
bd6a4c3d72
bpo-40131: Fix source and target order in zipapp example (GH-19290)
2020-04-03 22:06:29 +05:30
laike9m
b74468e233
bpo-40122: Updated documentation for dis.findlabels() (GH-19274)
2020-04-03 11:00:28 +03:00
Victor Stinner
65a796e527
bpo-40094: Add os.waitstatus_to_exitcode() (GH-19201)
...
Add os.waitstatus_to_exitcode() function to convert a wait status to an
exitcode.
Suggest waitstatus_to_exitcode() usage in the documentation when
appropriate.
Use waitstatus_to_exitcode() in:
* multiprocessing, os, subprocess and _bootsubprocess modules;
* test.support.wait_process();
* setup.py: run_command();
* and many tests.
2020-04-01 18:49:29 +02:00
Zackery Spytz
975ac326ff
bpo-33262: Deprecate passing None for `s` to shlex.split() (GH-6514)
...
* bpo-33262: Deprecate passing None for `s` to shlex.split()
This reads the string to split from standard input.
* Update What's New.
* Fix shlex.rst
2020-04-01 09:58:55 -04:00
Victor Stinner
7c72383f95
bpo-40094: Enhance os.WIFEXITED documentation (GH-19244)
2020-04-01 15:48:05 +02:00
Victor Stinner
278c1e159c
bpo-40094: Add test.support.wait_process() (GH-19254)
...
Moreover, the following tests now check the child process exit code:
* test_os.PtyTests
* test_mailbox.test_lock_conflict()
* test_tempfile.test_process_awareness()
* test_uuid.testIssue8621()
* multiprocessing resource tracker tests
2020-03-31 20:08:12 +02:00
Victor Stinner
400e1dbcad
Document most common signals (GH-19245)
...
Document individual signals (only the most common signals):
description, default action, availability.
2020-03-31 19:13:10 +02:00