DonnaDia
7af95a1e80
bpo-34804: [doc] Rephrase section on side effects in functional.rst for clarity (GH-27989)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-10-06 16:51:55 +02:00
Jochem Schulenklopper
c379bc5ec9
bpo-40321: Support HTTP response status code 308 in urllib.request ( #19588 )
...
* Support HTTP response status code 308 in urllib.
HTTP response status code 308 is defined in https://tools.ietf.org/html/rfc7538 to be the permanent redirect variant of 307 (temporary redirect).
* Update documentation to include http_error_308()
* Add blurb for bpo-40321 fix
Co-authored-by: Roland Crosby <roland@rolandcrosby.com>
2021-10-05 19:02:58 -07:00
Christian Clauss
241bda785a
[doc] Fix typos found using codespell (GH-28744)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-10-05 23:48:44 +02:00
Andre Delfino
4103280b83
[doc] Fix gethostbyname_ex description (GH-28700)
...
It seems part of `gethostbyname_ex` doc was copied from `gethostbyaddr`. The latter has an `ip_address` parameter whereas the former doesn't.
2021-10-05 18:53:35 +02:00
Bibo-Joshi
9be930f9b1
bpo-28206: Document signals Handlers, Sigmasks and Signals enums (GH-28628)
...
Co-authored-by: desbma <desbma@users.noreply.github.com>
2021-10-04 13:09:40 +02:00
Raymond Hettinger
db91b058d5
bpo-45346: Keep docs consistent regarding true and false values (GH-28697)
2021-10-02 13:48:08 -05:00
Terry Jan Reedy
0be338199f
bpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" ( #28687 )
...
pypi.org " The Python Package Index (PyPI) ...
2021-10-02 02:04:55 -04:00
Julien Palard
1dac95c814
sqlite3: Modernize documentation around unicode and bytes. (GH-28652)
2021-10-01 14:37:56 +02:00
Nikita Sobolev
746d648d47
bpo-45125: Improves pickling docs and tests for `shared_memory` (GH-28294)
2021-10-01 13:45:59 +03:00
Victor Stinner
1ee0f94d16
bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28662)
...
On Unix, if the sem_clockwait() function is available in the C
library (glibc 2.30 and newer), the threading.Lock.acquire() method
now uses the monotonic clock (time.CLOCK_MONOTONIC) for the timeout,
rather than using the system clock (time.CLOCK_REALTIME), to not be
affected by system clock changes.
configure now checks if the sem_clockwait() function is available.
2021-10-01 09:55:28 +02:00
andrei kulakov
f76889a887
Fix doctest doc examples for syntax errors (GH-28486)
...
* fix doctest doc examples for syntax errors
* updated examples to use TypeErrors
* fixed first sentence
* unneeded comma
2021-09-29 12:44:43 +01:00
zhanpon
bc4cde4033
bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566)
2021-09-29 12:54:59 +02:00
Serhiy Storchaka
233b9da07d
[docs] Use full names for time units (GH-28611)
...
Use "second", "millisecond", "microsecond", "nanosecond" instead of
"sec", "ms", "msec", "us", "ns", etc.
2021-09-29 12:09:56 +03:00
Serhiy Storchaka
4f05f15d7b
[docs] Improve the markup of powers (GH-28598)
2021-09-28 22:40:57 +02:00
Louis Sautier
db0133f98d
[doc] fix minor typo for argparse (GH-28451)
...
"A JSONDecodeError" instead of "An JSONDecodeError".
2021-09-28 14:00:51 +03:00
Jörn Heissler
953e733e6d
Fix typo in whatsnew: "ns" is 10^-9 secs and "us" is 10^-6 secs. (GH-28565)
2021-09-28 13:25:15 +03:00
Victor Stinner
7834ff26cb
bpo-21302: Add nanosleep() implementation for time.sleep() in Unix (GH-28545)
...
Co-authored-by: Livius <egyszeregy@freemail.hu>
2021-09-25 14:36:26 +02:00
Terry Jan Reedy
71f8ff45c6
bpo-43914: Whats New 310: add new SyntaxError attributes (GH-28558)
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-09-25 11:04:13 +02:00
Terry Jan Reedy
4c0fc65cd8
bpo-45277: Fix typo in codecs doc (GH-28555)
...
encoding => encode
2021-09-24 21:56:09 -04:00
Terry Jan Reedy
bfe26bbad7
bpo-44019: Add missing comma to operator.call doc (GH-28551)
2021-09-24 18:40:44 +01:00
Antony Lee
6587fc60d4
bpo-44019: Implement operator.call(). (GH-27888)
...
Having `operator.call(obj, arg)` mean `type(obj).__call__(obj, arg)` is
consistent with the other dunder operators. The semantics with `*args,
**kwargs` then follow naturally from the single-arg semantics.
2021-09-24 16:22:49 +01:00
Peter Bittner
55b45bf707
bpo-38623: Add note about site module (site-packages) (GH-16974)
2021-09-23 23:39:58 +02:00
Sam Sneddon
af90b5498b
[docs] Update documentation for `multiprocessing.get_start_method` (GH-18170)
2021-09-23 23:03:13 +02:00
Sean Leavey
8492b729ae
Fix legacy logging module URL (GH-28528)
...
The URL listed in the `logging` docs for the original `logging` module leads to a 404. I managed to find the new location for the page and updated the URL.
Automerge-Triggered-By: GH:vsajip
2021-09-23 07:47:10 -07:00
Victor Stinner
f4ccb79d52
bpo-43760: Document PyThreadState.use_tracing removal (GH-28527)
2021-09-23 16:38:31 +02:00
Victor Stinner
ec7ffa4b5b
bpo-41137: Reorganize What's New in Python 3.11 (GH-28518)
...
* Merge the two Removed sections.
* Move "Build Changes" at the end, before "C API Changes".
* Move the pdb change in Porting to Python 3.11.
* Move C API new features in their section.
2021-09-23 11:37:39 +02:00
Alexander Böhn
8c21941dda
bpo-39549: reprlib.Repr uses a “fillvalue” attribute (GH-18343)
2021-09-22 15:45:58 -05:00
Serhiy Storchaka
36122e1814
bpo-41203: Replace Mac OS X and OS X with macOS (GH-28515)
...
Replace old names when they refer to actual versions of macOS.
Keep historical names in references to older versions.
Co-authored-by: Patrick Reader <_@pxeger.com>
2021-09-22 20:33:36 +03:00
Victor Stinner
58f8adfda3
bpo-21302: time.sleep() uses waitable timer on Windows (GH-28483)
...
On Windows, time.sleep() now uses a waitable timer which has a
resolution of 100 ns (10^-7 sec). Previously, it had a solution of 1
ms (10^-3 sec).
* On Windows, time.sleep() now calls PyErr_CheckSignals() before
resetting the SIGINT event.
* Add _PyTime_As100Nanoseconds() function.
* Complete and update time.sleep() documentation.
Co-authored-by: Livius <egyszeregy@freemail.hu>
2021-09-22 16:09:30 +02:00
Mohamad Mansour
8f943ca257
[codemod] Fix non-matching bracket pairs (GH-28473)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-22 01:09:00 +02:00
Raymond Hettinger
9a0dcc5b2e
bpo-45246: Document that sorted() only uses "<" comparisons (GH-28494)
2021-09-21 12:26:27 -05:00
Raymond Hettinger
fcbf9b176b
Docs: Clarify the before_and_after() example (GH-28458)
2021-09-19 19:52:27 -05:00
Pablo Galindo Salgado
e6d05a4092
bpo-30637: Improve the docs of ast.parse regarding differences with compile() (GH-28459)
2021-09-19 23:44:51 +01:00
Serhiy Storchaka
f25f2e2e8c
Clean up initialization __class_getitem__ with Py_GenericAlias. (GH-28450)
...
The cast to PyCFunction is redundant. Overuse of redundant casts
can hide actual bugs.
2021-09-19 18:05:30 +03:00
Raymond Hettinger
94b462686b
bpo-45198: __set_name__ documentation not clear about its usage with non-descriptor classes (GH-28439)
2021-09-18 01:49:43 -05:00
Konstantin Popov
af08f1ba40
Fix minor typo in Doc/c-api/type.rst (GH-28432)
...
retreived-> retrieved
2021-09-18 09:45:33 +08:00
Emmanuel Arias
24dbe30f8d
[doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660)
...
Previous wording didn't explain the slightly unintuitive behavior.
Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
2021-09-18 00:58:20 +02:00
andrei kulakov
aca0e08c5d
bpo-42038: fix description of returned list of lines (GH-27529)
2021-09-18 00:24:55 +02:00
Arkaprabha Chakraborty
d22a700091
[doc] Add a missing apostrophe in a code example in venv.rst (GH-28391)
2021-09-17 23:08:25 +02:00
Victor Stinner
e4044e9f89
bpo-45116: Py_DEBUG ignores Py_ALWAYS_INLINE (GH-28419)
...
If the Py_DEBUG macro is defined, the Py_ALWAYS_INLINE macro does
nothing.
2021-09-17 22:46:38 +02:00
Victor Stinner
6b41355128
bpo-45116: Add the Py_ALWAYS_INLINE macro (GH-28390)
...
Add the Py_ALWAYS_INLINE macro to ask the compiler to always inline a
static inline function. The compiler can ignore it and decides to not
inline the function.
2021-09-17 14:09:14 +02:00
Nikita Sobolev
cb07838ab7
bpo-45217: adds note that `allow_no_value` in `configparser` is optional (GH-28396)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-17 12:55:51 +02:00
Serhiy Storchaka
b0a6ede3d0
bpo-45162: Remove many old deprecated unittest features (GH-28268)
...
* "fail*" and "assert*" aliases of TestCase methods.
* Broken from start TestCase method assertDictContainsSubset().
* Ignored TestLoader.loadTestsFromModule() parameter use_load_tests.
* Old alias _TextTestResult of TextTestResult.
2021-09-17 13:33:27 +03:00
Raymond Hettinger
80d9ff1648
Fix typo and add a module prefix (GH-28401)
2021-09-16 23:49:41 -05:00
David Hewitt
800bd01b6d
docs: correct references to __isub__ etc (GH-28297)
2021-09-16 11:33:41 +03:00
Barry Warsaw
07e737d002
bpo-45155 : Default arguments for int.to_bytes(length=1, byteorder=sys.byteorder) ( #28265 )
...
Add default arguments for int.to_bytes() and int.from_bytes()
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2021-09-15 19:55:24 -07:00
Hubert Badocha
a75a257725
bpo-39710: Remove Python 2-specific sentence from calendar documentation (GH-26985)
2021-09-15 22:36:38 +02:00
Erlend Egeberg Aasland
51056b40e7
bpo-45089: Improve sqlite3 trace callback docs (GH-28238)
...
- Add link to str object and sqlite3 transaction control
- Mention that exceptions are not propagated
2021-09-15 20:39:05 +02:00
Erlend Egeberg Aasland
ff6d2cc55a
bpo-5846: Deprecate obsolete methods in `unittest` (GH-28299)
...
Deprecate makeSuite, findTestCases, and getTestCaseNames. Scheduled for removal in Python 3.13.
2021-09-15 20:33:31 +02:00
Eric Snow
a65c86889e
bpo-45020: Add -X frozen_modules=[on|off] to explicitly control use of frozen modules. (gh-28320)
...
Currently we freeze several modules into the runtime. For each of these modules it is essential to bootstrapping the runtime that they be frozen. Any other stdlib module that we later freeze into the runtime is not essential. We can just as well import from the .py file. This PR lets users explicitly choose which should be used, with the new "-X frozen_modules=[on|off]" CLI flag. The default is "off" for now.
https://bugs.python.org/issue45020
2021-09-14 17:31:45 -06:00
Pablo Galindo Salgado
1aaa859497
bpo-4356: Mention the new key arguments for the bisect module APIs in the 3.10 What's new (GH-28339)
2021-09-14 20:53:14 +01:00
Benjamin Peterson
024fda47d4
closes bpo-45190: Update Unicode data to version 14.0.0. (GH-28336)
2021-09-14 11:00:38 -07:00
Irit Katriel
c99fc4e53a
bpo-45168: change dis output to omit missing values rather than replacing them by their index (GH-28313)
2021-09-14 10:09:05 +01:00
Hugo van Kemenade
1fc41ae870
bpo-45173 Remove configparser deprecations (GH-28292)
...
In the configparser module, these have been deprecated since Python 3.2:
* the SafeConfigParser class,
* the filename property of the ParsingError class,
* the readfp method of the ConfigParser class,
2021-09-13 19:12:36 +02:00
Victor Stinner
85dc53a463
bpo-21302: Update time.sleep() doc for clock_nanosleep() (GH-28311)
...
Clean-up also What's New in Python 3.11 doc: move entries to the
correct sections.
2021-09-13 17:40:25 +02:00
Dong-hee Na
5277ffe12d
bpo-44987: Fix typo whatsnew 3.11 (GH-28293)
2021-09-12 04:05:55 +09:00
Dong-hee Na
9abd07e596
bpo-44987: Speed up unicode normalization of ASCII strings (GH-28283)
2021-09-11 18:04:38 +03:00
Irit Katriel
e86bcfa580
bpo-9811: [doc] strftime handling of unsupported format specifiers is platform dependent (GH-28264)
2021-09-10 18:26:57 +02:00
Pablo Galindo Salgado
ab327f2929
bpo-44964: Correct the note about the f_lasti field (GH-28208)
2021-09-10 17:53:42 +02:00
Serhiy Storchaka
17a1b3e63a
bpo-45132: Fix the reStructuredText markup error. (GH-28270)
2021-09-10 15:40:07 +03:00
Henry-Joseph Audéoud
707137b863
bpo-40563: Support pathlike objects on dbm/shelve (GH-21849)
...
Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
2021-09-10 15:26:16 +03:00
Raymond Hettinger
62fa613f6a
bpo-45024 and bpo-23864: Document how interface testing works with the collections ABCs (GH-28218)
2021-09-09 21:51:07 -05:00
D.Lintin
7366854135
Fix minor typo in 3.10.rst (GH-28253)
2021-09-09 12:02:01 -04:00
andrei kulakov
b7bb54fc10
Specify default order in memoryview.tobytes() docs (GH-27936)
2021-09-09 11:30:56 +03:00
Jean-Abou-Samra
5afb570d2e
Fix small mistake in fileinput documentation (GH-28241)
2021-09-09 11:01:10 +03:00
Erlend Egeberg Aasland
f235dd0784
bpo-38371: Remove deprecated `tkinter` split() method (GH-28237)
2021-09-08 23:02:19 +03:00
Dong-hee Na
84ca5fcd31
bpo-44340: Update whatsnews for ThinLTO (GH-28229)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-08 19:29:33 +02:00
Hugo van Kemenade
59ea704df7
bpo-45129 Remove deprecated reuse_address (GH-28207)
...
Due to significant security concerns, the reuse_address parameter of
asyncio.loop.create_datagram_endpoint, deprecated in Python 3.9, is
now removed. This is because of the behavior of the socket option
SO_REUSEADDR in UDP.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-08 18:58:43 +02:00
Hugo van Kemenade
d003a5bd25
bpo-45132 Remove deprecated __getitem__ methods (GH-28225)
...
Remove deprecated __getitem__ methods of xml.dom.pulldom.DOMEventStream,
wsgiref.util.FileWrapper and fileinput.FileInput, deprecated since Python 3.9.
2021-09-08 13:07:40 +03:00
Victor Stinner
cb15afcccf
bpo-39573: Py_TYPE becomes a static inline function (GH-28128)
...
Convert the Py_TYPE() and Py_SIZE() macros to static inline
functions. The Py_SET_TYPE() and Py_SET_SIZE() functions must now be
used to set an object type and size.
2021-09-08 11:59:13 +02:00
DonnaDia
19a304ba99
bpo-24888: Clarify subprocess.check_call propagates exceptions if unable to start process (GH-28018)
2021-09-07 20:16:44 +02:00
Raymond Hettinger
750368cbcd
Add more itertool recipes (GH-28165)
2021-09-07 12:29:00 -05:00
Raymond Hettinger
fa15df77f0
bpo-45104: Clarify when __init__ is called (GH-28210)
2021-09-07 18:04:39 +02:00
Pablo Galindo Salgado
fa2c0b85a8
bpo-44964: Add a note explaining the new semantics of f_last_i in frame objects (GH-28200)
2021-09-07 12:18:54 +01:00
Yury Selivanov
2c3474a637
bpo-45123: PyAiter_Check and PyObject_GetAiter fix & rename. (GH-28194)
...
Fix PyAiter_Check to only check for the `__anext__` presense (not for
`__aiter__`). Rename `PyAiter_Check()` to `PyAIter_Check()`,
`PyObject_GetAiter()` -> `PyObject_GetAIter()`.
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-09-07 11:52:30 +01:00
Hugo van Kemenade
eb254b43d2
bpo-45124: Remove the bdist_msi command (GH-28195)
...
The bdist_msi command, deprecated in Python 3.9, is now removed.
Use bdist_wheel (wheel packages) instead.
2021-09-07 12:34:27 +02:00
Julien Palard
37272f5800
bpo-42238: [doc] remove unused, and deduplicate, suspicious ignore rules. (GH-28137)
2021-09-06 08:50:48 +02:00
Raymond Hettinger
c860d30fa0
More useful OrderedDict LRU recipes (GH-28164)
2021-09-05 12:37:02 -05:00
Raymond Hettinger
91be41ad93
bpo-44571: Add itertool recipe for a variant of takewhile() (GH-28167)
2021-09-05 00:09:26 -05:00
Eric V. Smith
a1ba3597d2
Add What's New for dataclass keyword-only parameters. (GH-28158)
2021-09-04 14:58:17 -04:00
Irit Katriel
0b58e863df
bpo-45075: distinguish between frame and FrameSummary in traceback mo… (GH-28112)
2021-09-03 22:39:23 +01:00
Dong-hee Na
bc1c49fa94
bpo-42255: Deprecate webbrowser.MacOSX from Python 3.11 (GH-27837)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-03 18:21:03 +02:00
Victor Stinner
7974c30b9f
bpo-45094: Add Py_NO_INLINE macro (GH-28140)
...
* Rename _Py_NO_INLINE macro to Py_NO_INLINE: make it public and
document it.
* Sort macros in the C API documentation.
2021-09-03 16:44:02 +02:00
Victor Stinner
a1e15a7a60
bpo-45082: Cleanup ctypes.c_buffer alias (GH-28129)
...
* Remove commented deprecation of ctypes.c_buffer.
* Remove references to ctypes.c_string which doesn't exist.
* Remove StringTestCase: it only had skipped test methods.
2021-09-02 19:02:03 +02:00
Ville Korhonen
767a17f35a
[doc] Reword sentinel object summary in dataclasses (GH-27792)
...
This sentinel value (`MISSING`) is also used as default value for the `kw_only` parameter introduced in Python 3.10. It's cleaner to simply omit the usage here.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-02 18:03:22 +02:00
Ł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