| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
also mention the change and its consequences in What's New
|
|
|
| |
This reverts commit 10b59f1b019cd00c940dd7f4a74c4f667a20f25f.
|
|
|
|
|
| |
* Make its default value an empty tuple instead of None.
* Make it a keyword-only parameter.
|
|
|
| |
* Add elimination of non-int-like parameters in math.factorial to "What's new".
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
* Add %T format to PyUnicode_FromFormatV(), and so to
PyUnicode_FromFormat() and PyErr_Format(), to format an object type
name: equivalent to "%s" with Py_TYPE(obj)->tp_name.
* Replace Py_TYPE(obj)->tp_name with %T format in unicodeobject.c.
* Add unit test on %T format.
* Rename unicode_fromformat_write_cstr() to
unicode_fromformat_write_utf8(), to make the intent more explicit.
|
|
|
| |
Implement the "attributes objects" parameter of `os.posix_spawn` to complete the implementation and fully cover the underlying API.
|
|
|
|
|
|
|
| |
* Replace "master process" with "parent process"
* Replace "master option mappings" with "main option mappings"
* Replace "master pattern object" with "main pattern object"
* ssl: replace "master" with "server"
* And some other similar changes
|
| |
|
|
|
|
|
| |
... by removing a superfluous "either".
Reported by Никита Люшненко on docs@.
|
|
|
| |
Move strict_timestamps to constructor.
|
|
|
|
|
|
|
| |
Py_DecodeLocale() and Py_EncodeLocale() now use the UTF-8 encoding on
Windows if Py_LegacyWindowsFSEncodingFlag is zero.
pymain_read_conf() now sets Py_LegacyWindowsFSEncodingFlag in its
loop, but restore its value at exit.
|
|
|
|
|
|
| |
Robust caching of calculated properties is
harder than it looks at first glance, so add
a solid, well-tested implementation to the
standard library.
|
| |
|
| |
|
| |
|
|
|
| |
`yield conn`, instead of just `yield`.
|
| |
|
|
|
| |
There was a missing comma.
|
|
|
| |
semapthores -> semaphores
|
|
|
|
| |
(GH-8844)
|
|
|
|
|
| |
Previously, its behavior was platform-dependent and there was no error checking
under Windows.
|
|
|
|
| |
The entry about deprecation of __getitem__ methods of
several classes was placed in the wrong section.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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().)
|
|
|
|
| |
locales (GH-8808)
|
| |
|
|
|
|
| |
The http_response() and https_response() methods of the HTTPErrorProcessor
class have two required parameters, 'request' and 'response'.
|
|
|
|
|
|
|
|
|
| |
os.readlink() now accepts path-like and bytes objects on Windows.
Previously, support for path-like and bytes objects was only
implemented on Unix.
This commit also merges Unix and Windows implementations of
os.readlink() in one function and adds basic unit tests to increase
test coverage of the function.
|
|
|
|
|
|
|
|
| |
* SMTP.startssl: Fix doc on keyfile and certfile use
* SMTP.startssl: Add missing keyfile and certfile deprecation notice
* SMTP: Doc grammar fixes
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The __getitem__ methods of DOMEventStream, FileInput,
and FileWrapper classes ignore their 'index' parameters
and return the next item instead.
|
| |
|
| |
|
|
|
|
|
| |
In the documentation, the `env` directory is specified when we execute
the `make venv` command. But in the code, `make venv` will create the
virtualenv inside the `venv` directory (defined by `VENVDIR`)
|
|
|
| |
Co-authored-by: Antti Haapala <antti.haapala@anttipatterns.com>
|
|
|
|
| |
(GH-8646)
|
| |
|
| |
|
|
|
| |
Patch by Terry Jan Reedy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-34273: Change 'Fixed point' to 'Fixed-point notation'.
The change in the mini language floating point and decimal table
is consistent with 'Exponential notation' and clarifies that we
are referring to the output notation, not an object type.
* Update string.rst
* Update string.rst
* Update string.rst
* Update string.rst
|
| |
|
| |
|
| |
|
|
|
| |
Remove unnecessary "that" in the sentence.
|
|
|
| |
Rephrase it to "It raises a `ValueError`"
|
| |
|
|
|
|
|
|
|
|
|
|
| |
In the documentation for the traceback module, the definitions of functions
extract_tb(), format_list() and classmethod StackSummary.from_list()
mention the old style 4-tuples that these functions used to return or accept.
Since Python 3.5, however, they return or accept a FrameSummary object
instead of a 4-tuple, or a StackSummary object instead of a list of 4-tuples.
Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
|
|
|
|
|
| |
ZipFile can zip files older than 1980-01-01 and newer than 2107-12-31 using
a new strict_timestamps parameter at the cost of setting the timestamp
to the limit.
|