- 15 Jan, 2018 2 commits
-
-
Cheryl Sabella authored
Clarify that on Windows, path must be a directory. On Unix, path can be a file or a directory.
-
Cheryl Sabella authored
`os.path.is*()` can return False if the file can't be accessed. The behaviour is documented in details in `os.path.exists()`. Link to `os.path.exists()` from `os.path.is*()`.
-
- 14 Jan, 2018 1 commit
-
-
Raymond Hettinger authored
-
- 13 Jan, 2018 2 commits
-
-
Raymond Hettinger authored
-
Julian Kahnert authored
The code example that demonstrate how to use enum.Flag was missing the import of enum.auto.
-
- 12 Jan, 2018 8 commits
-
-
Brett Cannon authored
-
Serhiy Storchaka authored
PyMemoryView_FromMemory() created a memoryview referring to the internal data of the string. When the string is destroyed the memoryview become referring to a freed memory.
-
Christian Heimes authored
glibc has removed Sun RPC. Use replacement libtirpc headers and library in nis module Signed-off-by: Christian Heimes <christian@python.org>
-
yahya-abou-imran authored
-
Raymond Hettinger authored
-
İsmail Arılık authored
In lexical analysis reference documentation, the internal link to the string literal concatenation section was written as`.. _string-catenation:`. Changed that to `.. _string-concatenation:`.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 11 Jan, 2018 5 commits
-
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
when serialize into memory buffer with C pickle implementations. This optimization already is performed when serialize into memory with Python pickle implementations or into a file with both implementations.
-
Victor Stinner authored
time.strftime() must use the current LC_CTYPE encoding, not UTF-8 if the UTF-8 mode is enabled. Add _PyUnicode_DecodeCurrentLocale() function.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 10 Jan, 2018 1 commit
-
-
Victor Stinner authored
Add new fuctions ignoring the UTF-8 mode: * _Py_DecodeCurrentLocale() * _Py_EncodeCurrentLocale() * _PyUnicode_DecodeCurrentLocaleAndSize() * _PyUnicode_EncodeCurrentLocale() Modify the readline module to use these functions. Re-enable test_readline.test_nonascii().
-
- 09 Jan, 2018 10 commits
-
-
Mario Corchero authored
As the remainder was directly parsed as an int, strings like .600 were parsed as 600 microseconds rather than milliseconds.
-
Serhiy Storchaka authored
-
David Carlier authored
Allow building the _uuid extension module on FreeBSD and OpenBSD.
-
Ned Deily authored
-
Ned Deily authored
-
Ned Deily authored
-
Steve Dower authored
-
Ned Deily authored
-
Ned Deily authored
-
Ned Deily authored
-
- 08 Jan, 2018 1 commit
-
-
Nick Coghlan authored
- primary change is to add a new default filter entry for 'default::DeprecationWarning:__main__' - secondary change is an internal one to cope with plain strings in the warning module's internal filter list (this avoids the need to create a compiled regex object early on during interpreter startup) - assorted documentation updates, including many more examples of configuring the warnings settings - additional tests to ensure that both the pure Python and the C accelerated warnings modules have the expected default configuration
-
- 07 Jan, 2018 7 commits
-
-
Eric V. Smith authored
-
Zachary Ware authored
-
Serhiy Storchaka authored
-
Nathaniel J. Smith authored
Third party projects may wish to hide their own internal machinery in order to present more comprehensible tracebacks to end users (e.g. Jinja2 and Trio both do this). Previously such projects have had to rely on ctypes to do so: https://github.com/pallets/jinja/blob/fe3dadacdf4cf411d0a5b6bbd4d5234697a28af2/jinja2/debug.py#L345 https://github.com/python-trio/trio/blob/1e86b1aee8c0c759f6f239ae53a05d0d3963c629/trio/_core/_multierror.py#L296 This provides a Python level API for creating and modifying real Traceback objects, allowing tracebacks to be edited at runtime. Patch by Nathaniel Smith.
-
Eric V. Smith authored
-
Zachary Ware authored
It's more trouble than it's worth, since AppVeyor only checks the HEAD commit of a PR rather than the full diff against the base branch to decide which files changed.
-
Max Bélanger authored
-
- 06 Jan, 2018 3 commits
-
-
Eric V. Smith authored
-
Eric V. Smith authored
-
Eric V. Smith authored
bpo-32499: Add dataclasses.is_dataclass(obj), which returns True if obj is a dataclass or an instance of one. (#5113)
-