- 14 Aug, 2019 12 commits
-
-
Victor Stinner authored
faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes, instead of just SIGSTKSZ bytes. Calling the previous signal handler in faulthandler signal handler uses more than SIGSTKSZ bytes of stack memory on some platforms.
-
Artem Khramov authored
FreeBSD implementation of poll(2) restricts the timeout argument to be either zero, or positive, or equal to INFTIM (-1). Unless otherwise overridden, socket timeout defaults to -1. This value is then converted to milliseconds (-1000) and used as argument to the poll syscall. poll returns EINVAL (22), and the connection fails. This bug was discovered during the EINTR handling testing, and the reproduction code can be found in https://bugs.python.org/issue23618 (see connect_eintr.py, attached). On GNU/Linux, the example runs as expected. This change is trivial: If the supplied timeout value is negative, truncate it to -1.
-
-
Tal Einat authored
-
Sergey Fedoseev authored
-
Victor Stinner authored
Co-Authored-By: Joannah Nanjekye <joannah.nanjekye@ibm.com>
-
Greg Price authored
The documented definition was much broader than the real one: there are tons of characters with general category "Other", and we don't (and shouldn't) treat most of them as whitespace. Rewrite the definition to agree with the comment on _PyUnicode_IsWhitespace, and with the logic in makeunicodedata.py, which is what generates that function and so ultimately governs. Add suitable breadcrumbs so that a reader who wants to pin down exactly what this definition means (what's a "bidirectional class" of "B"?) can do so. The `unicodedata` module documentation is an appropriate central place for our references to Unicode's own copious documentation, so point there. Also add to the isspace() test a thorough check that the implementation agrees with the intended definition.
-
Victor Stinner authored
Fix the implementation of curses addch(str, color_pair): pass the color pair to setcchar(), instead of always passing 0 as the color pair.
-
Hai Shi authored
Fix the following warning with GCC 4.8.5: Objects/obmalloc.c: warning: ‘no_sanitize_thread’ attribute directive ignored
-
Zackery Spytz authored
Commit b1263d5a causes GCC 9.1.0 to give a warning in Objects/descrobject.c.
-
Greg Price authored
Much like the lower-level logic in commit ef2af1ad, we had 4 copies of this logic, written in a couple of different ways. They're all implementing the same standard, so write it just once.
-
Ngalim Siregar authored
* bpo-37256: Wording in Request class docs *
📜 🤖 Added by blurb_it. * Update Misc/NEWS.d/next/Documentation/2019-07-16-14-48-12.bpo-37256.qJTrBb.rst Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
-
- 13 Aug, 2019 9 commits
-
-
shireenrao authored
-
Hai Shi authored
-
Josh Holland authored
https://bugs.python.org/issue37814: > The empty tuple syntax in type annotations, `Tuple[()]`, is not obvious from the examples given in the documentation (I naively expected `Tuple[]` to work); it has been documented in PEP 484 and in mypy, but not in the documentation for the typing module. https://bugs.python.org/issue37814
-
Hai Shi authored
Add error number 113 EHOSTUNREACH to get_socket_conn_refused_errs() of test.support.
-
Steve Dower authored
-
Greg Price authored
The `expand` option was introduced in 2000 in commit fad27aee. It appears to have been always set since it was committed, and what it does is tell the code to do something essential. So, just always do that, and cut the option. Also cut the `linebreakprops` option, which isn't consulted anymore.
-
Greg Price authored
This file started life as a script, before conversion to a `unittest` test file. Clear out some legacies of that conversion that are a bit confusing about how it works. Most notably, it's unlikely there's still a good reason to try to recover from `unicodedata` failing to import -- as there was when that logic was first added, when the module was very new. So take that out entirely. Keep `self.db` working, though, to avoid a noisy diff.
-
Greg Price authored
This causes them to be collapsed by default in diffs shown on GitHub. https://bugs.python.org/issue37760 Automerge-Triggered-By: @benjaminp
-
Greg Price authored
There were 10 copies of this, and almost as many distinct versions of exactly how it was written. They're all implementing the same standard. Pull them out to the top, so the more interesting logic that remains becomes easier to read.
-
- 12 Aug, 2019 6 commits
-
-
Raymond Hettinger authored
-
Steve Dower authored
-
Steve Dower authored
-
Derek Keeler authored
- Remove use of replacement text in the script - Make use of the pyvenv.cfg file for prompt value. - Add parameters to allow more flexibility - Make use of the current path, and assumptions about where env puts things, to compensate - Make the script a bit more 'idiomatic' Powershell - Add script documentation (Get-Help .\.venv\Scripts\Activate.ps1 shows PS help page now
-
Dong-hee Na authored
-
Ismail S authored
-
- 11 Aug, 2019 2 commits
-
-
Raymond Hettinger authored
-
Abhilash Raj authored
This should fix the IndexError trying to retrieve `DisplayName.display_name` and `DisplayName.value` when the `value` is basically an empty string. https://bugs.python.org/issue32178
-
- 10 Aug, 2019 2 commits
-
-
Greg Price authored
-
Gregory P. Smith authored
DeprecationWarning will continue to be emitted for invalid escape sequences in string and bytes literals just as it did in 3.7. SyntaxWarning may be emitted in the future. But per mailing list discussion, we don't yet know when because we haven't settled on how to do so in a non-disruptive manner. (Applies 4c5b6bac2408f879231c7cd38d67657dd4804e7c to the master branch). (This is https://github.com/python/cpython/pull/15142 for master/3.9) https://bugs.python.org/issue32912 Automerge-Triggered-By: @gpshead
-
- 09 Aug, 2019 1 commit
-
-
Ngalim Siregar authored
This fixes an inconsistency between the Python and C implementations of the datetime module. The pure python version of the code was not accepting offsets greater than 23:59 but less than 24:00. This is an accidental legacy of the original implementation, which was put in place before tzinfo allowed sub-minute time zone offsets. GH-14878
-
- 08 Aug, 2019 8 commits
-
-
Paul Monson authored
-
Pablo Galindo authored
-
Zackery Spytz authored
Use warnings.filterwarnings() when importing the deprecated parser module. @pablogsal https://bugs.python.org/issue37268 Automerge-Triggered-By: @pablogsal
-
shireenrao authored
-
Inada Naoki authored
Use a tighter scope temporary variable to help register allocation. 1% speedup for large string. Use PyDict_SetItemDefault() for memoizing keys. At most 4% speedup when the cache hit ratio is low.
-
Raymond Hettinger authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
They now return NotImplemented for unsupported type of the other operand.
-