Łukasz Langa
f0b63d5b56
bpo-40360: [doc] Rephrase deprecation note about lib2to3 (GH-28122)
2021-09-02 17:12:49 +02:00
Ruben Vorderman
ea23e7820f
bpo-43613: Faster implementation of gzip.compress and gzip.decompress (GH-27941)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-02 17:02:59 +02:00
Łukasz Langa
a7ef15aae8
[doc] Link to deprecation policy PEP from the DeprecationWarning documentation (GH-28123)
2021-09-02 16:44:50 +02:00
Victor Stinner
19ba2122ac
bpo-37330: open() no longer accept 'U' in file mode (GH-28118)
...
open(), io.open(), codecs.open() and fileinput.FileInput no longer
accept "U" ("universal newline") in the file mode. This flag was
deprecated since Python 3.3.
2021-09-02 12:58:00 +02:00
Victor Stinner
a806608705
bpo-45085: Remove the binhex module (GH-28117)
...
The binhex module, deprecated in Python 3.9, is now removed. The
following binascii functions, deprecated in Python 3.9, are now also
removed:
* a2b_hqx(), b2a_hqx();
* rlecode_hqx(), rledecode_hqx().
The binascii.crc_hqx() function remains available.
2021-09-02 12:10:08 +02:00
Victor Stinner
d589a7e7eb
bpo-40360: Deprecate the lib2to3 package (GH-28116)
2021-09-02 11:46:47 +02:00
Irit Katriel
863154c929
bpo-31299: make it possible to filter out frames from tracebacks (GH-28067)
2021-08-31 21:42:08 +01:00
Ken Jin
9a7ec2fcde
bpo-44135: [docs] Fix inline markup (GH-28095)
2021-08-31 18:01:17 +02:00
Serhiy Storchaka
3c65457156
bpo-45060: Get rid of few uses of the equality operators with None (GH-28087)
2021-08-31 16:59:52 +03:00
Zack Kneupper
08767c73b5
bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)
...
Co-authored-by: Zachary Kneupper <zachary.kneupper@gmail.com>
2021-08-31 15:39:19 +02:00
DonnaDia
edae42f99f
bpo-44925: [docs] Fix confusing deprecation notice for typing.IO (GH-28004)
2021-08-31 17:44:27 +08:00
Eric Snow
044e8d866f
bpo-45019: Add a tool to generate list of modules to include for frozen modules (gh-27980)
...
Frozen modules must be added to several files in order to work properly. Before this change this had to be done manually. Here we add a tool to generate the relevant lines in those files instead. This helps us avoid mistakes and omissions.
https://bugs.python.org/issue45019
2021-08-30 17:25:11 -06:00
Erlend Egeberg Aasland
86d8b46523
bpo-16379: expose SQLite error codes and error names in `sqlite3` (GH-27786)
2021-08-30 19:32:21 +01:00
Victor Stinner
3fc5d84046
bpo-44394: Update libexpat copy to 2.4.1 (GH-26945)
...
Update the vendored copy of libexpat to 2.4.1 (from 2.2.8) to get the
fix for the CVE-2013-0340 "Billion Laughs" vulnerability. This copy
is most used on Windows and macOS.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-29 16:08:24 +02:00
Gregory P. Smith
245f1f2605
bpo-41818: ++ termios versionadded markers. (GH-27987)
...
overlooked in https://github.com/python/cpython/pull/23686
2021-08-26 20:29:27 -07:00
Soumendra Ganguly
ae224bb566
bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). (GH-23686)
...
* Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs.
* Add TIOCGSIZE support to termios.tcgetwinsize()
* Add TIOCSSIZE support to termios.tcsetwinsize()
Authored-by: Soumendra Ganguly <soumendraganguly@gmail.com>
* termios.tcgetwinsize() and termios.tcsetwinsize() should return/accept two-item tuples instead of lists.
* Refactor tcsetwinsize to share common code and accept any two item sequence, with overflow checking.
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
2021-08-26 19:56:26 -07:00
andrei kulakov
fdcb675eed
bpo-40635: Fix getfqdn() docstring and docs (GH-27971)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-26 20:40:28 +02:00
Serhiy Storchaka
f9cd40f5e2
bpo-45010: Remove support of special method __div__ in unittest.mock (GH-27965)
2021-08-26 20:19:47 +02:00
Julien Palard
21fa854792
bpo-42238: [doc] Some more make suspicious false positives. (GH-27945)
2021-08-26 10:45:01 +02:00
Objectivitix
806e25fd31
bpo-45003: Change __div__ to __truediv__ in py3 language reference. (GH-27951)
2021-08-26 08:49:02 +03:00
Dong-hee Na
c764dfbcbc
bpo-45000: Update whatsnews about deleting __debug__ (GH-27956)
2021-08-26 09:36:16 +09:00
Dong-hee Na
551da597a0
bpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947)
...
Automerge-Triggered-By: GH:pablogsal
2021-08-25 10:54:20 -07:00
Jack DeVries
7cba23164c
bpo-39452: Rewrite and expand __main__.rst ( #26883 )
...
Broadened scope of the document to explicitly discuss and differentiate between ``__main__.py`` in packages versus the ``__name__ == '__main__'`` expression (and the idioms that surround it), as well as ``import __main__``.
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-24 19:01:41 +02:00
Idan Moral
fa6304a522
bpo-44690: Adopt binacii.a2b_base64's strict mode in base64.b64decode (GH-27272)
...
* Use binascii.a2b_base64 to validate b64decode input.
This change leads to exception messages changes (mostly).
* Added more information to docstring of b64decode
* Added a reference to binascii.a2b_base64 in the docs
2021-08-23 16:44:28 -07:00
Mark Roseman
e41912c634
bpo-42560: simplify/merge architecture info in Tkinter docs (GH-27839)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2021-08-23 21:27:47 +02:00
Sunny Bean
dcbf7ff6a7
[doc] Fix typo c-api/exceptions.rst (GH-27847)
...
Co-authored-by: Tianqing Peng <pengtianqing@yimian.com.cn>
2021-08-23 21:17:40 +02:00
Mark Roseman
1eb451031a
bpo-42560: add warning to Tkinter docs about outdated pre-8.5 documentation online (GH-27836)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
2021-08-23 21:00:47 +02:00
Mark Roseman
08830a4f75
bpo-42560: rewrite of Tkinter docs "life preserver" (GH-27842)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-23 20:30:53 +02:00
Ken Jin
1a995b0cee
bpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872)
2021-08-23 19:13:51 +02:00
Ikko Ashimine
0e8695ece0
[doc] Fix typo in idle.rst (GH-27903)
...
intially -> initially
2021-08-23 19:12:33 +02:00
Dong-hee Na
24b63c695a
bpo-24234: Implement bytes.__bytes__ (GH-27901)
2021-08-23 19:01:51 +09:00
Raymond Hettinger
eec340ea3a
bpo-4442: Document use of __new__ for subclasses of immutable types (GH-27866)
2021-08-22 21:27:06 +02:00
Sebastian Rittau
dabb6e8ddd
bpo-44957: Promote PEP 604 syntax in typing docs (GH-27833)
...
* Use "X | Y" instead of "Union" where it makes sense.
* Mention that "X | Y" is equivalent to "Union[X, Y]" in Union section.
* Remove "Optional[X]" as shorthand for "Union[X, None]" as the new
shorthand is now "X | None".
* Mention that "Optional[X]" can be written as "X | None" in section
about "Optional".
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-08-22 20:45:01 +02:00
Mark Roseman
d5dbe8bca7
bpo-42560: reorganize Tkinter docs modules section for clarity (GH-27840)
...
- move description of internal modules (_tkinter and tkinter.constants) from section intro to list of additional modules at end of section, as not most important info
- added missing ttk and tix here
- emphasized up front that most apps will need tkinter and ttk
2021-08-22 20:41:45 +02:00
Mark Roseman
141c7a4fce
bpo-42560: tweaks to intro of Tkinter docs- add macOS, drop ActiveState (GH-27835)
2021-08-22 20:35:22 +02:00
Mark Roseman
d1049d1d6b
bpo-42560: rework external references in Tkinter docs (GH-27838)
...
- reorganized from two sections (tkinter vs. tcl/tk) into three (tkinter, tcl/tk, and books)
- main (recommended) tkinter docs have one tutorial (tkdocs) and one reference (shipman), added better descriptions
- dropped link to Tkinter page on wiki (suggestion by E. Paine; outdated, most material already linked to from python.org)
- replaced Tcl/Tk recent man pages and core dev home with single link to main Tcl/Tk page (which holds both of these)
- updated Modern Tkinter link to book page on TkDocs site (was Amazon link to old version), dropped description
- replaced Grayson book by Moore book (newer, covers ttk)
- changed Ousterhout ref to second edition, covers ttk
- dropped link to Welch book (old)
2021-08-22 20:34:15 +02:00
andrei kulakov
b1db308c61
bpo-41322: Add unit tests for deprecation of test return values (GH-27846)
...
Also fix the traceback of warnings.
2021-08-22 21:32:45 +03:00
Serhiy Storchaka
64f9e7b19d
bpo-44940: Clarify the documentation of re.findall() (GH-27849)
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Vedran Čačić <vedgar+github@gmail.com>
2021-08-22 10:24:20 +03:00
Raymond Hettinger
15a64d89a3
bpo-44966: Fix out-of-date traceback message (GH-27867)
2021-08-21 13:59:18 -05:00
Maximilian Hils
16b9be4861
bpo-44926: `get_type_hints`: Add note about type aliases with forward refs ( #27859 )
2021-08-20 07:36:51 -07:00
Jean-Abou-Samra
d26dbba929
Fix reST markup in dataclasses.rst (GH-27843)
...
The signature of field() had an extraneous colon at the end, causing it
to appear all bold and without the module name.
2021-08-19 16:47:16 -04:00
Łukasz Langa
0fd66e46b2
bpo-36384: [doc] Mention CVE-2021-29921 fix in 3.8.12 (GH-27824)
2021-08-19 10:55:49 +02:00
Jack DeVries
942d1a4284
bpo-44830: [doc] Restore missing Mozilla devguide link (GH-27818)
2021-08-19 10:10:54 +02:00
Irit Katriel
31ee985db8
bpo-44874: deprecate Py_TRASHCAN_SAFE_BEGIN and Py_TRASHCAN_SAFE_END (GH-27693)
...
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-18 21:50:19 +02:00
meowmeowmeowcat
3240bc62f4
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-18 00:55:04 +02:00
Jefferson Oliveira
599f5c8481
introduce omitted index default before using it (GH-27775)
2021-08-17 23:19:03 +02:00
Dong-hee Na
c2c857b40f
bpo-44895: Introduce PYTHONDUMPREFSFILE variable for refcount dumping (GH-27767)
2021-08-18 00:52:50 +09:00
Hai Shi
3e2c643ae0
bpo-42035: Add PyType_GetQualName() to get a type's qualified name. (GH-27551)
2021-08-17 15:39:34 +02:00
Gautam Chaudhuri
6a358bb948
bpo-44903: Removed othergui.rst and list of GUI frameworks (GH-27762)
2021-08-17 11:00:58 +02:00
Gautam Chaudhuri
ad0a8a9c62
bpo-16580: [doc] Add examples to int.to_bytes and int.from_bytes (GH-27760)
...
* added code equivs. for to_bytes and from_bytes
Based on woparry's patch[1] from the relevant issue thread[2].
[1]: https://bugs.python.org/file30372/issue16580.patch
[2]: https://bugs.python.org/issue16580
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2021-08-15 12:29:05 +01:00
meowmeowmeowcat
ed524b4569
bpo-44907: Update error messages in tutorial examples (GH-27755)
2021-08-13 19:40:58 -04:00
andrei kulakov
e43b9bbc31
bpo-36700: [doc] Update base64 RFC references to RFC 4648 (GH-27700)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-13 12:58:55 +02:00
Łukasz Langa
dd8eb303b9
bpo-26228: [doc] Adapt PTY documentation updates from GH-4167 (GH-27754)
...
Co-authored-by: Cornelius Diekmann <c.diekmann@googlemail.com>
2021-08-13 12:57:07 +02:00
Zephyr Shannon
81ab8db235
bpo-26228: Fix pty EOF handling (GH-12049)
...
On non-Linux POSIX platforms, like FreeBSD or macOS,
the FD used to read a forked PTY may signal its exit not
by raising an error but by sending empty data to the read
syscall. This case wasn't handled, leading to hanging
`pty.spawn` calls.
Co-authored-by: Reilly Tucker Siemens <reilly@tuckersiemens.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-12 00:21:46 +02:00
Mark Roseman
08caf2d5d4
bpo-33479: Add architecture and threading model sections to Tkinter module docs (GH-27717)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-11 18:29:15 +02:00
Terry Jan Reedy
6b37d0d530
bpo-33479: Remove unqualified tkinter threadsafe claim. (GH-6990)
...
It has not been true for several years and likely never was.
2021-08-10 11:32:21 +02:00
Anthony Shaw
c5c5326d47
bpo-39498 Start linking the security warnings in the stdlib modules (GH-18272)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-10 00:35:51 +02:00
Serhiy Storchaka
058fb35b57
bpo-44854: Remove trailing whitespaces (GH-27689)
2021-08-09 21:32:54 +03:00
meowmeowmeowcat
b05e9b63fc
bpo-44522: Fix inaccurate information in open() function (GH-27650)
...
- Use "Low surrogate code units" instead of "Unicode Private Use Area"
2021-08-09 16:14:54 +02:00
meowmeowmeowcat
03e5647ab0
bpo-44702: Remove ambiguity in sentence (GH-27676)
...
Automerge-Triggered-By: GH:pablogsal
2021-08-09 05:01:30 -07:00
Zackery Spytz
eb2d4a66ff
bpo-32695: Docs and tests for compresslevel and preset kwargs in tarfile (GH-21470)
...
Co-Authored-By: Bo Bayles <bbayles@gmail.com>
2021-08-09 12:05:31 +02:00
Senthil Kumaran
ebecffdb6d
bpo-44830 - Remove the broken Broken Mozilla devguide link. (GH-27664)
2021-08-07 20:18:10 -07:00
Ronald Oussoren
17c2316794
bpo-42971: Add errno.EQFULL (macOS) (GH-24419)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-06 23:35:13 +02:00
Thomas Grainger
e9a6f1b78b
bpo-41576: document BaseException in favor of bare except (GH-21917)
2021-08-06 22:44:15 +02:00
Jack DeVries
0ffdced3b6
bpo-27752: improve documentation of csv.Dialect (GH-26795)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-06 22:05:16 +02:00
Łukasz Langa
55fa87b1ef
bpo-44756: [docs] revert automated virtual environment creation on `make html` (GH-27635)
...
It turned out to be disruptive for downstream distributors.
2021-08-06 20:13:59 +02:00
Victor Stinner
4d77691172
bpo-44584: Deprecate PYTHONTHREADDEBUG env var (GH-27065)
...
The threading debug (PYTHONTHREADDEBUG environment variable) is
deprecated in Python 3.10 and will be removed in Python 3.12. This
feature requires a debug build of Python.
2021-08-06 13:11:12 +02:00
Jack DeVries
938e84b4fa
bpo-44679: [doc] fix typo in unittest.mock.rst (GH-27618)
2021-08-05 13:48:18 -07:00
William Chargin
80f33f266b
bpo-41706: Fix special method invocation docs to mention using type() (GH-22084)
2021-08-04 13:43:06 -07:00
andrei kulakov
a8dc4893d2
bpo-42958: Improve description of shallow= in filecmp.cmp docs (GH-27166)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Alexander Vandenbulcke <alexander.vandenbulcke95@gmail.com>
2021-08-04 21:39:45 +02:00
andrei kulakov
7c5dab4340
[doc] bpo-43066: zipfile - add note on leading slash in the filename arg (GH-26899)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-04 21:34:34 +02:00
Cristián Maureira-Fredes
cc77193127
Fix typo in 'xml.dom.minidom' documentation (GH-27602)
2021-08-04 21:29:01 +02:00
Rohit Nishad
977d99d1cc
Fix 404 link to the pyporting mailing list (GH-27320)
...
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-04 20:53:58 +02:00
Petr Viktorin
10faada709
Note that tp_clear and m_clear are not always called (GH-27581)
2021-08-04 20:01:31 +02:00
Harry
3d2b4c6f18
Fix hyperlink conflict in turtle docs (GH-27592)
2021-08-04 19:46:30 +02:00
da-woods
ac811f9b5a
bpo-41886: Fix documented type of PyType_Type (GH-22454)
2021-08-03 13:21:25 -04:00
andrei kulakov
f7c23a99cd
bpo-41737: expand doc for NotADirectoryError (GH-27471)
2021-08-03 13:28:09 +02:00
Raymond Hettinger
54f185b6d3
bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536)
2021-08-02 13:15:45 -05:00
Jake Stockwin
aa0894b379
bpo-35183: Add typical examples to os.path.splitext docs (GH-27286)
2021-08-02 19:01:53 +02:00
Ken Jin
d382bde220
Document PyMember_GetOne and PyMember_SetOne (GH-27555)
2021-08-02 18:26:57 +02:00
partev
414dcb13aa
doc: "Mac OS X" -> "macOS" (GH-27535)
2021-08-02 11:40:40 +02:00
partev
1342248f3a
doc: "Mac OS " -> "macOS" (GH-27534)
2021-08-02 11:39:56 +02:00
Jack DeVries
0ad173249d
bpo-37880: for argparse add_argument with action='store_const', const now defaults to None. (GH-26707)
2021-07-31 17:27:55 +01:00
andrei kulakov
ceea579ccc
bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939)
2021-07-30 19:10:37 +02:00
andrei kulakov
4bd9caafb6
bpo-41911: Update docs for various expressions (GH-27470)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-30 18:52:44 +02:00
Ori Avtalion
f4367ba3c5
Doc: Change errant 3.10.0 to 3.10, to match other mentions (GH-27459)
2021-07-30 15:55:09 +02:00
Noah Kantrowitz
be42c06bb0
Update URLs in comments and metadata to use HTTPS (GH-27458)
2021-07-30 15:54:46 +02:00
HaeckelK
6b61d74a3b
Fix typo in ast.rst (GH-27449)
...
Co-authored-by: HaeckelK <haeckelk.github@gmail.com>
2021-07-29 19:15:35 +02:00
Pavel
ccefa8a905
bpo-44765: [doc] fix typo (GH-27430)
2021-07-29 18:55:04 +02:00
Inada Naoki
ce5e1a6809
bpo-41103: Resurrect the old buffer protocol. (GH-27437)
...
Revert "bpo-41103: Remove old buffer protocol support (#21117 )"
This reverts commit 6f8a6ee59c
.
2021-07-29 12:46:47 +02:00
Ammar Askar
47fd4726a2
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724)
2021-07-29 11:10:03 +02:00
Hai Shi
a390ebea17
bpo-42035: Add a PyType_GetName() to get type's short name. (GH-23903)
2021-07-29 09:57:02 +02:00
Erlend Egeberg Aasland
5269c09145
bpo-44688: Remove ASCII limitation from `sqlite3` collation names (GH-27395)
2021-07-29 09:47:56 +02:00
Jack DeVries
cb1d76f10a
bpo-44763: [doc] remove repetitive sentence from textwrap.wrap (GH-27423)
2021-07-28 17:24:27 +02:00
Jack DeVries
c1e39d6b11
bpo-44544: [doc] list all textwrap func kwargs (GH-26999)
2021-07-28 17:14:54 +02:00
Adrian Garcia Badaracco
531e2fbc52
Add missing end of sentence in docs (GH-27280)
2021-07-28 16:15:07 +02:00
Ikko Ashimine
fbe87023bf
Fix typo in sqlite3.rst (GH-27415)
...
preceeding -> preceding
2021-07-28 16:10:48 +02:00
Dennis Sweeney
2ff5bb4908
Spell out 's.pop() or s.pop(i)' (GH-27398)
2021-07-28 15:31:44 +02:00
Jack DeVries
d22c876d5a
bpo-44756: in ./Doc, `make build` depends on `make html` ( #27403 )
...
- venv rule is now conditional, and only does anything if $VENVDIR does not exist
- add rule "clean-venv"
2021-07-28 15:13:28 +02:00
Vinay Sajip
174fbd85f6
bpo-44399: Document another example of unexpected behavior. (GH-27407)
2021-07-28 11:46:52 +01:00
Steffen Zeile
2f54fbafa6
bpo-44559: [Enum] correct `versionadded` to 3.11 for new features (GH-27388)
2021-07-27 08:20:00 -07:00
Mariusz Felisiak
2e41df4d60
bpo-44740: Make minor edits to lowercasing "internet" and "web". (GH-27385)
...
Follow up to 11749e2dc2
2021-07-27 10:57:52 +02:00
Vinicius Gubiani Ferreira
6fa4060b86
[doc] Fix typo in asyncio Event Loop (GH-27377)
...
First Pull Request to cpython, so forgive me for any mistakes
Automerge-Triggered-By: GH:Mariatta
2021-07-26 20:01:00 -07:00
Mariusz Felisiak
11749e2dc2
bpo-44740: Lowercase "internet" and "web" where appropriate. ( #27378 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-27 00:11:55 +02:00
Steffen Zeile
6c7ec7282b
Fix typos in `Weekday.today` example (GH-27363)
2021-07-26 23:35:09 +02:00
partev
5fdd2a14ce
docs: replace "Mac OS X" -> "macOS" (GH-27364)
...
"Mac OS X" has been rebranded as macOS
https://www.apple.com/macos
2021-07-26 21:37:31 +02:00
Jelle Zijlstra
f22737abfa
The current documentation says it returns None if the name is not found, but (GH-26785)
...
the implementation uses [] and will raise KeyError instead.
Noticed by @srittau in python/typeshed@5659.
2021-07-26 18:18:19 +02:00
Serhiy Storchaka
c97c2a050c
bpo-43443: Clarify difference between shelve objects and dicts (GH-27004)
2021-07-26 18:11:25 +02:00
Yurii Karabas
6c1b57d958
bpo-44490: Add 'Whats New' docs regarding types.Union changes (GH-27215)
2021-07-26 18:05:55 +02:00
Hasan
2b8ad9e6c5
bpo-44732: Rename types.Union to types.UnionType ( #27342 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-07-26 18:00:21 +02:00
Elliot Waite
3e5b82ed7e
Small text fixes for enum.rst ( #27322 )
...
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2021-07-26 17:59:20 +02:00
thomkeh
aa0e4a64b0
Fix typo in dataclasses documentation ( #27360 )
...
"affect" -> "effect"
2021-07-26 08:39:45 -04:00
Steven Hsu
0363a4014d
bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349)
...
Replace sentence with confusing "pseudo-module" with two sentences
separating future statements and the __future__ module.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-07-25 21:11:12 -04:00
andrei kulakov
96cf5a63d2
bpo-42378: fixed log truncation on logging shutdown (GH-27310)
...
Automerge-Triggered-By: GH:vsajip
2021-07-25 13:17:47 -07:00
Vinay Sajip
9751f85914
bpo-44399: Update logging cookbook to document patterns to be avoided. (GH-27348)
2021-07-25 18:05:39 +01:00
Vinay Sajip
50b72768ff
bpo-43184: Add information about added attribute and method. (GH-27347)
2021-07-25 17:36:30 +01:00
Anton Grübel
717f608c4a
Fix typo in ssl documentation (GH-27329)
2021-07-24 18:54:51 -03:00
Dong-hee Na
4463fa2fa1
bpo-44611: Update docs for os and whatsnew 3.11 ( #27314 )
2021-07-24 11:14:08 +02:00
Ken Jin
7aac3f6236
bpo-44353: Document that typing.NewType is now a class ( #27319 )
2021-07-24 10:53:49 +02:00
Dong-hee Na
906fe47083
bpo-44611: Use BCryptGenRandom instead of CryptGenRandom on Windows (GH-27168)
2021-07-23 23:04:30 +09:00
Petr Viktorin
a4760cc32d
bpo-42747: Remove Py_TPFLAGS_HAVE_AM_SEND and make Py_TPFLAGS_HAVE_VERSION_TAG no-op (GH-27260)
...
* Remove code that checks Py_TPFLAGS_HAVE_VERSION_TAG
The field is always present in the type struct, as explained
in the added comment.
* Remove Py_TPFLAGS_HAVE_AM_SEND
The flag is not needed, and since it was added in 3.10 it can be removed now.
2021-07-23 06:21:11 -07:00
Jack DeVries
7d25254cf0
bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297)
...
This fixes a small typo. The code fragment should not be quoted. Thank you
@merwok for the feedback.
2021-07-22 16:06:18 -07:00
Jack DeVries
50ffbe3daf
bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., shell=True) (GH-26755)
2021-07-22 19:23:29 +01:00
Steven Hsu
c05a790693
bpo-44651: delete entry of "coercion" in Doc/glossary.rst (GH-27226)
...
bpo 44651: delete entry of "coercion".
2021-07-22 13:18:07 +01:00
Elliot Waite
92a5c0871b
Fix typo in collections.rst ( #27270 )
2021-07-22 09:31:22 +02:00
andrei kulakov
64f54b7ccd
bpo-30511: Add note on thread safety to shutil.make_archive() ( #26933 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-21 10:33:11 +02:00
Sondre Lillebø Gundersen
e25e43e355
correct spelling (GH-27076)
2021-07-19 17:46:42 -03:00
α∂мιηιχтяαтσя
1e651c6ada
Clean up comma usage in Doc/library/functions.rst ( #27083 )
2021-07-19 18:02:23 +02:00
Julien Palard
fbf10080bb
bpo-42238: Fix small rst issue in NEWS.d/. ( #27238 )
2021-07-19 16:34:48 +02:00
Dong-hee Na
b2cf2513f9
bpo-44340: Add support for building with clang full/thin lto (GH-27231)
2021-07-19 19:52:56 +09:00
Irit Katriel
aab1899c9d
bpo-41546: make pprint (like print) not write to stdout when it is None (GH-26810)
2021-07-19 10:19:02 +01:00
Idan Moral
35b98e38b6
bpo-43086: Add handling for out-of-spec data in a2b_base64 (GH-24402)
...
binascii.a2b_base64 gains a strict_mode= parameter. When enabled it will raise an
error on input that deviates from the base64 spec in any way. The default remains
False for backward compatibility.
Code reviews and minor tweaks by: Gregory P. Smith <greg@krypto.org> [Google]
2021-07-18 17:45:19 -07:00
Steven Hsu
b494685b25
bpo-44561: Update hyperlinks in Doc/distributing/index.rst ( #27032 )
...
* Update hyperlinks in Doc/distributing/index.rst
Update three expired hyperlinks.
Closes bpo-44561.
2021-07-19 10:10:48 +10:00
Batuhan Taskaya
a045991f60
bpo-42355: symtable.get_namespace() now checks whether there are multiple or any namespaces found (GH-23278)
2021-07-18 15:56:09 +03:00
Jason R. Coombs
29358e93f2
bpo-44638: Add a reference to the zipp project and hint as to how to use it. (GH-27188)
...
Automerge-Triggered-By: GH:jaraco
2021-07-16 06:14:54 -07:00
Ammar Askar
8ce3008585
bpo-44569: Decouple frame formatting in traceback.py (GH-27038)
2021-07-16 13:21:16 +01:00
andrei kulakov
b39eea06d1
bpo-42799: fnmatch module: bump up size of lru_cache for patterns (GH-27084)
2021-07-15 12:53:26 +02:00
Jack DeVries
2693132292
bpo-44589: raise a SyntaxError when mapping patterns have duplicate literal keys (GH-27131)
2021-07-14 17:38:42 -07:00
Vinay Sajip
3b8075f907
bpo-44473: Update docstring and documentation for QueueHandler.prepar… (GH-27140)
...
…e().
2021-07-14 17:06:48 -07:00
Shane Harvey
d59d7374a3
bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079)
2021-07-14 23:53:15 +01:00
Pablo Galindo Salgado
2b47af6398
Add release highlights for the 3.10 what's new document (GH-27150)
2021-07-14 23:19:55 +01:00
Jack DeVries
1ca27f2647
bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145)
...
To my understanding, this is supposed to say "transaction".
See the relevant source:
a158b20019/Modules/_sqlite/connection.c (L1434-L1467)
2021-07-14 14:39:54 -07:00
Serhiy Storchaka
054e9c84ac
bpo-33346: Allow async comprehensions inside implicit async comprehensions (GH-6766)
...
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
2021-07-13 22:27:50 +01:00
andrei kulakov
3b5b99da4b
bpo-43126: Expand docs on io.IOBase.readlines() method ( #27061 )
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-07-13 16:07:56 +02:00
Kevin Follstad
48a5aa7f12
bpo-44514: Add doctest testcleanup for configparser and bz2 ( #26909 )
...
Add testcleanup section to configparser and bz2 documentation which
removes temporary files created in the filesystem when 'make doctest'
is run.
2021-07-13 15:57:05 +02:00
Ammar Askar
9c3eaf88dc
bpo-43950: Add documentation for PEP-657 (GH-27047)
...
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
2021-07-13 01:29:39 +01:00
Barry Warsaw
f6954cdfc5
bpo-44613: Make importlib.metadata non-provisional ( #27101 )
...
* importlib.metadata is no longer provisional as of 3.10
* Add NEWS entry
2021-07-12 16:56:40 -07:00
Batuhan Taskaya
1890dd235f
bpo-43950: Specialize tracebacks for subscripts/binary ops (GH-27037)
...
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
2021-07-12 20:32:33 +01:00
David Sanders
da2e673c53
bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction (GH-23026)
2021-07-12 17:19:54 +02:00
Furkan Onder
66c5853406
bpo-26329: update os.path.normpath documentation (GH-20138)
...
* bpo-26329: update os.path.normpath documentation
* Update os.path.rst
* Update posixpath.py
* update Pathname Resolution note
2021-07-12 09:48:01 -03:00
Ned Batchelder
af4a2dcc40
docs: add the word 'official' (GH-26849)
2021-07-08 09:58:13 -05:00
Erlend Egeberg Aasland
a3739b207a
bpo-43908: Immutable types inherit vectorcall (GH-27001)
...
Heap types with the Py_TPFLAGS_IMMUTABLETYPE flag can now inherit the
PEP 590 vectorcall protocol. Previously, this was only possible for static types.
Co-authored-by: Victor Stinner <vstinner@python.org>
2021-07-08 12:48:01 +02:00
Julien Palard
15f0fc571c
Doc: Fix wrong exception used in example. (GH-26572)
2021-07-08 09:31:28 +02:00
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
58248d9437
bpo-41137: Use utf-8 encoding while reading .pdbrc files (GH-21263)
2021-07-08 16:16:08 +09:00
Ammar Askar
4823d9a512
bpo-43950: Add option to opt-out of PEP-657 (GH-27023)
...
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
2021-07-07 20:07:12 +01:00
Pablo Galindo
8363c53369
bpo-44530: Document the new CodeObject.co_qualname attribute (GH-27052)
2021-07-07 14:20:49 +01:00
Gabriele N. Tornetta
2f180ce2cb
bpo-44530: Add co_qualname field to PyCodeObject (GH-26941)
2021-07-07 12:21:51 +01:00
Julien Palard
32096df0e0
Doc: Fix link in multiprocessing.starmap pointing to builtin map. (GH-26560)
2021-07-07 10:25:01 +02:00
andrei kulakov
17f94e2888
bpo-43453: Update and re-add example to typing runtime_checkable ( #27013 )
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-07-05 09:23:42 -07:00
Jack DeVries
abb08e3af6
bpo-44534: fix wording and docstring sync in unittest.Mock GH27000
2021-07-05 07:52:32 +01:00
Ammar Askar
5644c7b3ff
bpo-43950: Print columns in tracebacks (PEP 657) (GH-26958)
...
The traceback.c and traceback.py mechanisms now utilize the newly added code.co_positions and PyCode_Addr2Location
to print carets on the specific expressions involved in a traceback.
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
2021-07-05 00:14:33 +01:00
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
a79e2b6497
Fix a small typo in the docs (GH-26991)
2021-07-03 11:04:57 -03:00
Julien Palard
01331f1a3c
bpo-42238: rstlint: Add two new checks. (GH-26966)
2021-07-03 10:35:02 +02:00
Matthew Clapp
4bcef2bb48
bpo-44388: Update venv EnvBuilder.ensure_directories() docs. (GH-26663)
...
Ref:
This changes the documentation for `EnvBuilder.ensure_directories(env_dir)` to match the actual behavior of that API call.
In particular, `ensure_directories()` is not affected by the state of the `upgrade` attribute, and will not cause an error to have existing directories whether or not the `clear` attribute is set.
This documentation change I believe should be valid to all python versions back to 3.6.
Automerge-Triggered-By: GH:vsajip
2021-07-02 13:48:15 -07:00
Irit Katriel
943e77d42d
bpo-34798: [doc] clearer presentation of pprint.PrettyPrinter constru… (GH-26967)
2021-07-02 10:42:08 +01:00
Illia Volochii
ddd5f36971
bpo-43234: Prohibit non-ThreadPoolExecutor in loop.set_default_executor (GH-24540)
2021-07-01 17:46:49 +03:00
Illia Volochii
a1092f6249
bpo-43216: Remove @asyncio.coroutine (GH-26369)
...
Remove the @asyncio.coroutine decorator
enabling legacy generator-based coroutines to be compatible with async/await
code; remove asyncio.coroutines.CoroWrapper used for wrapping
legacy coroutine objects in the debug mode.
The decorator has been deprecated
since Python 3.8 and the removal was initially scheduled for Python 3.10.
2021-07-01 15:13:59 +02:00
Steve Dower
95919b0d27
bpo-41180: Fixes documentation to specify correct event name and add versionchanged (GH-26972)
2021-06-30 18:53:13 +01:00
Steve Dower
139de04518
bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and marshal.dumps (GH-26961)
2021-06-30 17:21:37 +01:00
Julien Palard
86eeeb4259
Doc: fix a rst tag. (GH-26965)
2021-06-30 11:31:04 +02:00
Jack DeVries
12803c59d5
bpo-38062: [doc] clarify that atexit uses equality comparisons internally. (GH-26935)
2021-06-29 18:28:03 +01:00
Julien Palard
50148cacfa
Doc: Remove trailing whitespaces. (GH-26953)
2021-06-29 13:16:53 +02:00
andrei kulakov
0d7f7975d5
bpo-42588: Update the docs for the TopologicalSorter.static_order() method (GH-26834)
2021-06-29 11:54:28 +01:00
Serhiy Storchaka
6cb145d23f
bpo-44471: Change error type for bad objects in ExitStack.enter_context() (GH-26820)
...
A TypeError is now raised instead of an AttributeError in
ExitStack.enter_context() and AsyncExitStack.enter_async_context()
for objects which do not support the context manager or
asynchronous context manager protocols correspondingly.
2021-06-29 11:28:15 +03:00
Serhiy Storchaka
20a88004ba
bpo-12022: Change error type for bad objects in "with" and "async with" (GH-26809)
...
A TypeError is now raised instead of an AttributeError in
"with" and "async with" statements for objects which do not
support the context manager or asynchronous context manager
protocols correspondingly.
2021-06-29 11:27:04 +03:00
Rodrigo Girão Serrão
dcb1caef5b
[doc] Fix typo in what's new in 3.10 (GH-26911)
...
The `try` statement was missing a colon and therefore was not exemplifying the correct `SyntaxError`.
2021-06-28 23:02:18 +01:00
Jason R. Coombs
efe7d08d17
bpo-44464: Remove special exclusion for flake8 in the deprecation warnings. ( #26807 )
...
Sync with importlib_metadata 4.6.
2021-06-27 17:59:18 -04:00
jdevries3133
2f49c9debc
bpo-40620: Clarify tutorial controlflow.rst ``range`` examples (GH-26919)
2021-06-27 20:27:20 +01:00
andrei kulakov
6dd69f45f5
Add missing arg to DICT_MERGE opcode (GH-26859)
2021-06-27 13:19:14 +01:00
Brandt Bucher
ca2009d72a
bpo-43977: Properly update the tp_flags of existing subclasses when their parents are registered (GH-26864)
2021-06-25 08:20:43 -07:00
Barry Warsaw
8488b85c63
bpo-44498: Issue a deprecation warning on asynchat, asyncore and smtpd import ( #26882 )
...
* Issue a deprecation warning on smtpd import
* Also issue DeprecationWarnings for asynchat and asyncore
* Fix some tests
* test___all__ requires the word 'module' or 'package' in the deprecation
warning text, so add those to smtpd, asynchat, and asyncore.
* In test_support, use pprint now instead of asyncore as the landmark.
* Add What's New
* Use ..deprecated::
* Use ..deprecated::
* Update Lib/smtpd.py
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* Update Doc/library/smtpd.rst
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
* Import async{hat,ore} after the DeprecationWarning for this module
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2021-06-24 12:37:26 -07:00
Samuel Marks
19459f8ce6
bpo-44321: Adds `os.EX_OK` for Windows (GH-26559)
2021-06-24 17:45:18 +01:00
Erlend Egeberg Aasland
b19f455339
bpo-44491: Allow clearing the sqlite3 authoriser callback (GH-26863)
2021-06-24 15:35:57 +01:00
Arnon Yaari
599c07006a
Fix typo in whatsnew 3.10.rst (GH-26854)
...
Thanks for the fix @wiggin15 .
2021-06-24 10:01:42 -03:00
Petr Viktorin
29987f7265
bpo-40939: Remove documentation for `PyParser_*` & add porting notes (GH-26855)
...
I tried to be relatively thorough and give lots of links.
One reason is that this wasn't deprecated very long; also it seems people running into this tend to not be familiar with similar APIs.
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-06-24 14:57:28 +02:00
Erlend Egeberg Aasland
9049ea51ec
bpo-43988: Fix test.support.check_disallow_instantiation version added (GH-26889)
...
Automerge-Triggered-By: GH:vstinner
2021-06-24 00:57:14 -07:00
Guido van Rossum
769d7d0c66
bpo-43693 Get rid of CO_NOFREE -- it's unused (GH-26839)
...
All uses of this flag are either setting it
or in doc or tests for it. So we should be
able to get rid of it completely.
2021-06-23 09:51:44 -07:00
Victor Stinner
489699ca05
bpo-44441: _PyImport_Fini2() resets PyImport_Inittab (GH-26874)
...
Py_RunMain() now resets PyImport_Inittab to its initial value at
exit. It must be possible to call PyImport_AppendInittab() or
PyImport_ExtendInittab() at each Python initialization.
2021-06-23 14:13:27 +02:00
Géry Ogam
a6b47de07a
[doc] Improve punctuation atexit doc
2021-06-22 17:49:12 +01:00
Dennis Sweeney
d1ae57027f
bpo-41621: Document defaultdict's default_factory parameter (GH-21945)
...
It defaults to None and is positional only.
2021-06-22 10:19:24 -04:00
Terry Jan Reedy
51f45d085d
bpo-13814: Explain why generators are not context managers (GH-26835)
...
Put entry in Design FAQ after a question about a context manager for assignment.
Original patch by Aidan Lowe.
2021-06-21 17:23:29 -04:00
Victor Stinner
d19163912b
bpo-44466: Faulthandler now detects the GC (GH-26823)
...
The faulthandler module now detects if a fatal error occurs during a
garbage collector collection (only if all_threads is true).
2021-06-21 13:15:40 +02:00
Georg Sauthoff
a317778fd5
bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)
...
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
2021-06-20 21:08:07 +01:00
Hemangii
7265b277fa
Fix typos and grammatical changes in the 3.10 what's new document (GH-26319)
2021-06-20 20:46:59 +01:00
Mark Dickinson
291848195f
bpo-44426: Fix use of the C keyword 'default' as a variable name (GH-26798)
2021-06-19 15:32:24 +01:00
Raymond Hettinger
e5c7ee1156
Remove dubious suggestion (GH-26789)
...
Remove the weakref example. If a new instance is created and the same arguments are passes, it raises a ReferenceError.
2021-06-18 19:19:32 -05:00
Pablo Galindo
83c9dad8da
Add a note about NameError/AttributeError suggestions with custom error functions (GH-26794)
2021-06-18 23:08:38 +01:00
Ethan Furman
f60b07ab6c
bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752)
...
* [Enum] reduce scope of new format behavior
Instead of treating all Enums the same for format(), only user mixed-in
enums will be affected. In other words, IntEnum and IntFlag will not be
changing the format() behavior, due to the requirement that they be
drop-in replacements of existing integer constants.
If a user creates their own integer-based enum, then the new behavior
will apply:
class Grades(int, Enum):
A = 5
B = 4
C = 3
D = 2
F = 0
Now: format(Grades.B) -> DeprecationWarning and '4'
3.12: -> no warning, and 'B'
2021-06-18 13:15:46 -07:00
Raymond Hettinger
7f01f77f8f
bpo-44310: Add a FAQ entry for caching method calls (GH-26731)
2021-06-17 15:39:42 -05:00
Mark Dickinson
7247f6f433
bpo-44426: Use of 'complex' as a C variable name confuses Sphinx; change it to 'num'. (GH-26744)
2021-06-16 18:43:49 +01:00