- 23 Apr, 2018 1 commit
-
-
Łukasz Langa authored
This change contains minor things that make diffing between Lib/tokenize.py and Lib/lib2to3/pgen2/tokenize.py cleaner.
-
- 22 Apr, 2018 1 commit
-
-
Berker Peksag authored
-
- 21 Apr, 2018 1 commit
-
-
Andrés Delfino authored
Also update PIL doc references to Pillow.
-
- 20 Apr, 2018 8 commits
-
-
Brett Cannon authored
-
Brett Cannon authored
-
Ville Skyttä authored
-
Paul Moore authored
Upgrade ensurepip to bundle pip 10.0.1
-
Gregory P. Smith authored
-
xdegaye authored
Setup modules are no longer built with -DPy_BUILD_CORE by default, as using that flag may now require including additional internal-only header files. Instead, only the modules that specifically need it use that setting.
-
Serhiy Storchaka authored
-
Gregory P. Smith authored
Fix clang ubsan (undefined behavior sanitizer) warnings in dictobject.c by adjusting how the internal struct _dictkeysobject shared keys structure is declared. This remains ABI compatible. We get rid of the union at the end of the struct being used for conveinence to avoid typecasting in favor of char[] variable length array at the end of a struct. This is known to clang to be used for variable sized objects and will not cause an undefined behavior problem. Similarly, char arrays do not have strict aliasing undefined behavior when cast. PEP-007 does not currently list variable length arrays (VLAs) as allowed in our subset of C99. If this turns out to be a problem, the fix to this is to change the char `dk_indices[]` into `dk_indices[1]` and restore the three size computation subtractions this change removes: `- Py_MEMBER_SIZE(PyDictKeysObject, dk_indices)` If this works as is I'll make a separate PR to update PEP-007.
-
- 19 Apr, 2018 4 commits
-
-
Gregory P. Smith authored
-
Serhiy Storchaka authored
as docstrings and translatable strings, and rejects bytes literals and f-string expressions.
-
Serhiy Storchaka authored
-
Pablo Galindo authored
-
- 18 Apr, 2018 2 commits
-
-
Denis Osipov authored
-
Serhiy Storchaka authored
Converting with line_info=False and col_info=True crashed before.
-
- 17 Apr, 2018 9 commits
-
-
Aaron Ang authored
-
INADA Naoki authored
`test_urllib2net.OtherNetworkTests.test_sites_no_connection_close` used `http://www.imdb.com/` but it is moved to https so the test is not valid anymore. Skip test for the moment to allow CI to proceed.
-
Wolfgang Maier authored
-
jdemeyer authored
-
INADA Naoki authored
-
Benjamin Peterson authored
In fact, we now require a newer Sphinx version because APIs have moved around.
-
Andrés Delfino authored
-
Łukasz Langa authored
This note in documentation was never true.
-
Łukasz Langa authored
* Now uses pickle protocol 4 * Doesn't wrap the grammar's `__dict__` in ordered dictionaries anymore as dictionaries in Python 3.6+ are ordered by default This still produces deterministic pickles (that hash the same with MD5). Tested with different PYTHONHASHSEED values.
-
- 16 Apr, 2018 4 commits
-
-
Łukasz Langa authored
-
Zsolt Dollenstein authored
-
Andrés Delfino authored
-
anentropic authored
-
- 15 Apr, 2018 4 commits
-
-
Zackery Spytz authored
-
Alex Gaynor authored
There's no reason a cookie should _ever_ contain pickled data. That's just asking for a critical security vulnerability. Back in Python2 there were helpers for doing that, but they're no more in Python3. Now coded_value is used when the value needs to be encoded for any reason.
-
Nick Coghlan authored
Adds some working and markup fixes that I missed in the initial commit for this issue. (Follow-up to GH-6419)
-
Nick Coghlan authored
The pydoc CLI assumed -m pydoc would add the empty string to sys.path, and hence got confused when it switched to adding the full initial working directory instead. This refactors the pydoc CLI path manipulation to be more testable, and ensures it won't accidentally remove the standard library directory containing pydoc itself from sys.path.
-
- 14 Apr, 2018 2 commits
-
-
Antoine Pitrou authored
-
Steve Dower authored
-
- 13 Apr, 2018 2 commits
-
-
jdemeyer authored
`MethodType` has the exact semantics that `ExitStack` needs, so we can avoid creating a Python level closure.
-
WeizhongTu authored
-
- 11 Apr, 2018 2 commits
-
-
Serhiy Storchaka authored