Miss Islington (bot)
655608a111
bpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) ( #9654 )
...
(cherry picked from commit cd602b8af2
)
Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
2018-10-01 13:19:33 +03:00
Miss Islington (bot)
b0b8f9bd4e
bpo-27351: Fix ConfigParser.read() documentation and docstring (GH-8123)
...
Switch "list" with "iterable" to match with the implementation.
(cherry picked from commit e45473e3ca
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-09-29 10:33:05 -06:00
Miss Islington (bot)
4c1b2ad44f
Fix astuple in dataclasses documentation (GH-9631)
...
(cherry picked from commit 508d820512
)
Co-authored-by: 방성범 (Bang Seongbeom) <bangseongbeom@hotmail.com>
2018-09-29 03:55:14 -07:00
Miss Islington (bot)
85ccedc5b5
bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)
...
(cherry picked from commit 59ee5b1293
)
Co-authored-by: Yury Selivanov <yury@magic.io>
2018-09-27 12:53:18 -07:00
Miss Islington (bot)
4ea64a25c2
Clarify that Type[SomeTypeVar] is legal (GH-9585)
...
Currently, the docs state that when doing `Type[X]`, X is only allowed to
be a class, a union of classes, and Any. This pull request amends
that sentence to clarify X may also be a typevar (or a union involving
classes, Any, and TypeVars).
(cherry picked from commit 130717fe58
)
Co-authored-by: Michael Lee <michael.lee.0x2a@gmail.com>
2018-09-26 08:21:15 -07:00
Yury Selivanov
22a56958e7
[3.7] asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9580)
2018-09-25 18:00:15 -04:00
Miss Islington (bot)
3cc9557d9f
bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543)
...
(cherry picked from commit 996859a90d
)
Co-authored-by: Yury Selivanov <yury@magic.io>
2018-09-25 11:57:49 -07:00
Miss Islington (bot)
bbdf872332
Fix wrong exception reference: BrokenThreadPool -> BrokenProcessPool (GH-9533)
...
(cherry picked from commit b60b4683f6
)
Co-authored-by: Joni Kähärä <joni.kahara@gmail.com>
2018-09-24 20:35:46 -07:00
Christian Heimes
394e55a927
[3.7] bpo-17239: Disable external entities in SAX parser (GH-9217) (GH-9511)
...
The SAX parser no longer processes general external entities by default
to increase security. Before, the parser created network connections
to fetch remote files or loaded local files from the file system for DTD
and entities.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue17239 .
(cherry picked from commit 17b1d5d4e3
)
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue17239
2018-09-24 05:38:37 -07:00
Christian Heimes
2756ef3165
[3.7] bpo-34670: Add TLS 1.3 post handshake auth (GH-9460) (GH-9505)
...
Add SSLContext.post_handshake_auth and
SSLSocket.verify_client_post_handshake for TLS 1.3 post-handshake
authentication.
Signed-off-by: Christian Heimes <christian@python.org>q
https://bugs.python.org/issue34670 .
(cherry picked from commit 9fb051f032
)
Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34670
2018-09-23 00:22:52 -07:00
Ethan Furman
0c076caaa8
[3.7] bpo-29577: Enum: mixin classes don't mix well with already mixed Enums (GH-9328) (GH-9486)
...
* bpo-29577: allow multiple mixin classes
2018-09-21 22:26:32 -07:00
Miss Islington (bot)
e45662c28b
bpo-33649: Fix gather() docs; fix title; few other nits. (GH-9475) (GH-9481)
...
(cherry picked from commit db1a80e97a
)
Co-authored-by: Yury Selivanov <yury@magic.io>
2018-09-21 16:35:34 -04:00
Miss Islington (bot)
914086aa2f
Make docs of exitcode for subprocess.getstatusoutput more clear. (GH-9477)
...
Make it more accurate and not limited to UNIX.
(cherry picked from commit 7d161726e4
)
Co-authored-by: Xiang Zhang <angwerzx@126.com>
2018-09-21 13:34:46 -07:00
Miss Islington (bot)
8e5ef58c10
bpo-33649: More improvements (GH-9439)
...
(cherry picked from commit e247b46cba
)
Co-authored-by: Yury Selivanov <yury@magic.io>
2018-09-20 09:57:19 -07:00
Miss Islington (bot)
4fe8dc6857
bpo-34746: Fix stop -> close (GH-9437)
...
(cherry picked from commit ffef50f1f5
)
Co-authored-by: Yury Selivanov <yury@magic.io>
2018-09-19 22:21:08 -07:00
Miss Islington (bot)
73c0006e71
bpo-33649: Add a high-level section about Futures; few quick fixes (GH-9403)
...
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
(cherry picked from commit 471503954a
)
Co-authored-by: Yury Selivanov <yury@magic.io>
2018-09-18 15:09:51 -07:00
Miss Islington (bot)
45452b738b
bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)
...
(cherry picked from commit b042cf10c6
)
Co-authored-by: Yury Selivanov <yury@magic.io>
2018-09-18 00:00:58 -07:00
Miss Islington (bot)
ee2ff1a335
Fix syntax error on Asyncio example in doc (GH-9387) (GH-9388)
...
The `gather` method requires to close the parenthesis, but it is being closed twice.
(cherry picked from commit 9c53fa6ad9
)
Co-authored-by: Miguel Ángel García <magmax@users.noreply.github.com>
2018-09-18 02:27:27 -04:00
Miss Islington (bot)
9a89fd6884
Change "set_after" reference to `say_after`. (GH-9384) (GH-9386)
...
(cherry picked from commit 7bfbda46f4
)
Co-authored-by: Danny Hermes <daniel.j.hermes@gmail.com>
2018-09-18 02:27:07 -04:00
Miss Islington (bot)
1f4ea58067
bpo-33649: Note that asyncio.run() calls shutdown_asyncgens() (GH-9380)
...
(cherry picked from commit ac94e38d07
)
Co-authored-by: Yury Selivanov <yury@magic.io>
2018-09-17 21:12:05 -07:00
Yury Selivanov
512d710109
bpo-33649: Backport asyncio docs from 'master' to 3.7 (GH-9377)
2018-09-17 19:35:30 -04:00
Miss Islington (bot)
c63d81b3fe
bpo-34717: Stop numbering stdlib titles/sections in the docs (GH-9370)
...
(cherry picked from commit c62ab2862d
)
Co-authored-by: Yury Selivanov <yury@magic.io>
2018-09-17 15:42:09 -07:00
Miss Islington (bot)
f8e34eee74
bpo-33216: Improve the documentation for CALL_FUNCTION_* (GH-8338) (GH-8784)
...
(cherry picked from commit 5e99b56d6b
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-09-17 06:09:32 -07:00
Miss Islington (bot)
c83c375ed9
bpo-32933: Implement __iter__ method on mock_open() (GH-5974)
...
(cherry picked from commit 2087023fde
)
Co-authored-by: Tony Flury <anthony.flury@btinternet.com>
2018-09-15 00:30:04 +03:00
Miss Islington (bot)
b2ecb8b486
Fix "Python" casing in a few places (GH-9001) (GH-9313)
...
(cherry picked from commit 271818fe27
)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-09-14 12:15:10 -07:00
Miss Islington (bot)
a8f189f457
Note that distinct argument patterns can be cached separately (GH-9298) (GH-9299)
...
(cherry picked from commit 902bcd9a1e
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2018-09-14 01:13:17 -07:00
Miss Islington (bot)
b608fcd444
closes bpo-34004: Skip lock interruption tests on musl. (GH-9224)
...
Returning EINTR from pthread semaphore or lock acquisition is an optional POSIX
feature. musl does not provide this feature, so some threadsignal tests fail
when Python is built against it.
There's no good way to test for musl, so we skip if we're on Linux and not using
glibc pthreads.
Also, hedge in the threading documentation about when we can provide interrupts
from lock acquisition.
(cherry picked from commit 5b10d5111d
)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-09-12 14:10:56 -07:00
Benjamin Peterson
cadb66e173
[3.7] closes bpo-25041: Document AF_PACKET socket address format. (GH-9207)
...
(cherry picked from commit 731ff68eee
)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-09-11 18:46:36 -07:00
Miss Islington (bot)
e2b40f4ce9
bpo-34365: Update date object documentation (GH-8814)
...
Python 3.x does not fall back to comparing object addresses when comparing two `dt` objects.
<!-- issue-number: [bpo-34365](https://www.bugs.python.org/issue34365 ) -->
https://bugs.python.org/issue34365
<!-- /issue-number -->
(cherry picked from commit 9c223794c7
)
Co-authored-by: Danish Prakash <grafitykoncept@gmail.com>
2018-09-11 14:24:53 -07:00
Miss Islington (bot)
e02ca4270e
bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)
...
The default value of asyncio.StreamReader *limit* is `_DEFAULT_LIMIT` instead of `None`.
<!-- issue-number: [bpo-34613](https://www.bugs.python.org/issue34613 ) -->
https://bugs.python.org/issue34613
<!-- /issue-number -->
(cherry picked from commit b4ec36200a
)
Co-authored-by: Bram <cortex@worlddomination.be>
2018-09-11 11:59:29 -07:00
Miss Islington (bot)
3e648f8371
bpo-28617 Fixed docs inaccuracies about the types that support membership tests (GH-9086)
...
<!-- issue-number: [bpo-28617](https://www.bugs.python.org/issue28617 ) -->
https://bugs.python.org/issue28617
<!-- /issue-number -->
(cherry picked from commit 08bcf647d8
)
Co-authored-by: wim glenn <wim.glenn@gmail.com>
2018-09-11 11:13:33 -07:00
Miss Islington (bot)
2110f78d92
bpo-33032: Mention the implicit cache in struct.Struct() docs (GH-7700)
...
Mention the implicit cache in struct.Struct() docs.
Consistent with the re.compile documentation note.
(cherry picked from commit 3666b3c1f6
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-09-10 21:50:41 -07:00
Miss Islington (bot)
6df2005b39
Fix missing line from example shell session (GH-9143) (GH-9155)
...
(cherry picked from commit 2064bb6d57
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2018-09-10 19:13:02 -07:00
Miss Islington (bot)
011141f312
closes bpo-34525: Fix smtplib's authobject() documentation (GH-8965)
...
(cherry picked from commit 78deb7f332
)
Co-authored-by: Sebastian Rittau <srittau@rittau.org>
2018-09-10 11:13:13 -07:00
Miss Islington (bot)
9835696ec4
bpo-34246: Use no mutable default args in smtplib (GH-8554)
...
Some methods of the SMTP class use mutable default arguments. Specially
`send_message` is affected as it mutates one of the args by appending items
to it, which has side effects on further calls.
(cherry picked from commit d5fbe9b1a3
)
Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
2018-09-07 15:29:27 -07:00
Miss Islington (bot)
fa3fd4cb18
bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834)
...
(cherry picked from commit 3fe89dac42
)
Co-authored-by: Louis Sautier <sautier.louis@gmail.com>
2018-08-27 06:58:56 -04:00
Miss Islington (bot)
42a1ca65d0
closes bpo-34502: Remove a note about utf8_mode from sys.exit() docs. (GH-8928)
...
(cherry picked from commit 44838be9f7
)
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
2018-08-25 14:36:18 -04:00
Miss Islington (bot)
6dc8f05437
Fix markup in stdtypes documentation (GH-8905)
...
(cherry picked from commit 2e5d2ea208
)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-08-25 10:22:00 -04:00
Miss Islington (bot)
1f9621cb9b
Fixed typo with asynccontextmanager code example (GH-8845)
...
`yield conn`, instead of just `yield`.
(cherry picked from commit 416cbce22d
)
Co-authored-by: Alexander Vasin <hi@alvass.in>
2018-08-24 22:51:10 -04:00
Miss Islington (bot)
7b0ed43af5
bpo-33550: Warn not to set SIGPIPE to SIG_DFL (GH-6773)
...
(cherry picked from commit a2510732da
)
Co-authored-by: Alfred Perlstein <alfred@freebsd.org>
2018-08-24 19:28:58 -07:00
Miss Islington (bot)
a8c749df59
Fix typo in the dataclasses's doc (GH-8896) (GH-8897)
...
(cherry picked from commit 075b3c3259
)
Co-authored-by: Daniel Dương <dduong42@users.noreply.github.com>
2018-08-24 05:37:19 -04:00
Miss Islington (bot)
1d3d688b98
Fix doc for `add_subparsers` arguments (GH-8884)
...
There was a missing comma.
(cherry picked from commit cc18258daf
)
Co-authored-by: Anthony Sottile <asottile@umich.edu>
2018-08-23 23:22:17 -04:00
Miss Islington (bot)
609c033f43
Fix typo in asyncio.BoundedSemaphore docs (GH-8882)
...
semapthores -> semaphores
(cherry picked from commit b8a181f4ae
)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2018-08-23 22:03:23 -04:00
Miss Islington (bot)
1f7d0470c2
Make it more clear that setUpClass runs before each class, not "class run" (GH-8844)
...
(cherry picked from commit c33bb5d401
)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
2018-08-23 11:02:46 -04:00
Miss Islington (bot)
0e1e8dbb0b
bpo-22057: Clarify eval() documentation (GH-8812)
...
If a globals dictionary without a '__builtins__' key is passed to
eval(), a '__builtins__' key will be inserted to the dictionary:
>>> eval("print('__builtins__' in globals())", {})
True
(As a result of this behavior, we can use the builtins
print() and globals() even if we passed a dictionary without a
'__builtins__' key to eval().)
(cherry picked from commit 225b055480
)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2018-08-19 06:29:50 -04:00
Miss Islington (bot)
0fd6f832a9
bpo-34432: doc Mention complex and decimal.Decimal on str.format note about locales (GH-8808) (GH-8809)
...
(cherry picked from commit 93b5655c04
)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-08-18 14:16:36 -04:00
Miss Islington (bot)
05d89ef785
bpo-34418: Fix HTTPErrorProcessor documentation (GH-8793)
...
The http_response() and https_response() methods of the HTTPErrorProcessor
class have two required parameters, 'request' and 'response'.
(cherry picked from commit c53aaec793
)
Co-authored-by: Sebastian Rittau <srittau@rittau.org>
2018-08-17 06:02:08 -04:00
Miss Islington (bot)
6c14060977
smtplib documentation fixes (GH-8708)
...
* SMTP.startssl: Fix doc on keyfile and certfile use
* SMTP.startssl: Add missing keyfile and certfile deprecation notice
* SMTP: Doc grammar fixes
(cherry picked from commit da12063f2f
)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
2018-08-12 21:06:22 -07:00
Miss Islington (bot)
7e0153e166
Fix the versionadded indentation in exec_module doc (GH-8719)
...
(cherry picked from commit 65b5ef02ec
)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-08-12 00:01:21 -07:00
Miss Islington (bot)
6b14508522
bpo-34379: Doc: Move note for json.dump (GH-8730)
...
(cherry picked from commit 9e84084851
)
Co-authored-by: Evan Allrich <eallrich@gmail.com>
2018-08-11 01:02:03 -07:00