summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clarify that __path__ can't be just any value (GH-6554)Brett Cannon2018-04-202-2/+2
|
* bpo-25427: Remove pyvenv (GH-5962)Brett Cannon2018-04-209-35/+8
|
* Spelling fixes to docs, docstrings, and comments (GH-6374)Ville Skyttä2018-04-2015-16/+16
|
* bpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)Paul Moore2018-04-204-3/+4
| | | Upgrade ensurepip to bundle pip 10.0.1
* bpo-33312: update Tools/gdb/libpython.py to match. (GH-6548)Gregory P. Smith2018-04-201-1/+1
|
* bpo-32232: by default, Setup modules are no longer built with ↵xdegaye2018-04-204-21/+25
| | | | | | | | | -DPy_BUILD_CORE (GH-6489) 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.
* bpo-33298: Wrap only constants with _PyCode_ConstantKey() in the compiler. ↵Serhiy Storchaka2018-04-201-104/+117
| | | | (GH-6512)
* bpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537)Gregory P. Smith2018-04-203-24/+17
| | | | | | | | | | | | | | | | | | | | 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.
* Clean up the readme text around PGO a bit. (GH-6538)Gregory P. Smith2018-04-191-4/+5
|
* bpo-33189: pygettext.py now accepts only literal strings (GH-6364)Serhiy Storchaka2018-04-193-11/+76
| | | | as docstrings and translatable strings, and rejects bytes literals and f-string expressions.
* bpo-33299: Return an object itself for some types in _PyCode_ConstantKey(). ↵Serhiy Storchaka2018-04-192-8/+17
| | | | (GH-6513)
* Update What's new in 3.7 to reference preadv, pwritev and posix_spawn (GH-6524)Pablo Galindo2018-04-191-0/+8
|
* bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758)Denis Osipov2018-04-182-1/+3
|
* bpo-33308: Fix a crash in the parser module when convert an ST object. (#6519)Serhiy Storchaka2018-04-183-10/+27
| | | | Converting with line_info=False and col_info=True crashed before.
* bpo-11594: Ensure line-endings are respected when using 2to3 (GH-6483)Aaron Ang2018-04-174-18/+35
|
* bpo-33295: Skip test using missing external site (GH-6504)INADA Naoki2018-04-171-0/+1
| | | | | `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.
* bpo-33144: random.Random and subclasses: split _randbelow implementation ↵Wolfgang Maier2018-04-173-29/+107
| | | | (GH-6291)
* Fix spelling typo (GH-6443)jdemeyer2018-04-171-1/+1
|
* bpo-33205: dict: Change GROWTH_RATE to `used*3` (GH-6350)INADA Naoki2018-04-172-6/+8
|
* fix pydoc-topics to work with Sphinx 1.7 (GH-6475)Benjamin Peterson2018-04-171-4/+8
| | | In fact, we now require a newer Sphinx version because APIs have moved around.
* bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)Andrés Delfino2018-04-172-6/+7
|
* Revert 725476222a3c1f2f93162d75a540e6bcdeaa36fd (#6494)Łukasz Langa2018-04-171-4/+0
| | | This note in documentation was never true.
* [lib2to3] Make grammar pickling faster (#6491)Łukasz Langa2018-04-172-25/+3
| | | | | | | | | * 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.
* acks += Zsolt Dollenstein (#6490)Łukasz Langa2018-04-162-0/+2
|
* Add support for all string literals to lib2to3 (#6457)Zsolt Dollenstein2018-04-162-52/+28
|
* Remove to-be-deprecated urllib.request.urlretrieve function reference (#6454)Andrés Delfino2018-04-161-4/+12
|
* bpo-31947: remove None default for names param in Enum._create_ (GH-4288)anentropic2018-04-161-1/+1
|
* bpo-33270: Intern names for all anonymous code objects (#6472)Zackery Spytz2018-04-154-8/+9
|
* Removed a confusing line from a docstring in http.cookies (GH-6482)Alex Gaynor2018-04-151-2/+1
| | | 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.
* bpo-33185: Improve wording and markup (GH-6477)Nick Coghlan2018-04-154-10/+12
| | | | | | Adds some working and markup fixes that I missed in the initial commit for this issue. (Follow-up to GH-6419)
* bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)Nick Coghlan2018-04-154-10/+115
| | | | | | | | | | 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.
* bpo-33176: Add a toreadonly() method to memoryviews. (GH-6466)Antoine Pitrou2018-04-145-16/+73
|
* bpo-33184: Update Windows installer to OpenSSL 1.1.0h (GH-6463)Steve Dower2018-04-144-5/+6
|
* bpo-33265: use an actual method instead of a method-like function in ↵jdemeyer2018-04-132-8/+5
| | | | | | ExitStack (GH-6456) `MethodType` has the exact semantics that `ExitStack` needs, so we can avoid creating a Python level closure.
* itemgetter add dict example (GH-1280)WeizhongTu2018-04-131-0/+2
|
* Fix error messages in argparse examples (GH-6435)suic862018-04-111-2/+2
| | | | The examples in argparse documentation use `error: too few arguments` error message which was removed in this commit f97c59a in 2011.
* bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)Serhiy Storchaka2018-04-113-9/+7
|
* bpo-33097: Fix submit accepting callable after executor shutdown by ↵Mark Nemec2018-04-104-0/+44
| | | | | | interpreter exit (GH-6144) Executors in concurrent.futures accepted tasks after executor was shutdown by interpreter exit. Tasks were left in PENDING state forever. This fix changes submit to instead raise a RuntimeError.
* bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)Devon R2018-04-101-1/+1
|
* bpo-31201: Clarify command to re-run failing test(s) with example (GH-6417)Aaron Ang2018-04-091-2/+3
|
* bpo-31920: Fixed handling directories as arguments in the ``pygettext`` ↵Serhiy Storchaka2018-04-094-20/+39
| | | | | script. (GH-6259) Based on patch by Oleg Krasnikov.
* bpo-33031: Remove dead code in C implementation of OrderedDict. (GH-6120)Serhiy Storchaka2018-04-091-76/+1
| | | | This code doesn't have effect on the final result, but causes GCC 8 warnings and can have an undefined behavior.
* bpo-32759: Free unused arenas in multiprocessing.heap (GH-5827)Antoine Pitrou2018-04-093-46/+150
| | | | | Large shared arrays allocated using multiprocessing would remain allocated until the process ends.
* Fix misleading docsting of shelve.open(). (GH-6427)Serhiy Storchaka2018-04-091-1/+1
| | | | The protocol parameter can be any protocol supported by the pickle module.
* Update docstring of tempfile._RandomNameSequence (GH-6414)Wolfgang Maier2018-04-091-1/+1
| | | | | When bpo-12015 got resolved by increasing the length of the random string generated by _RandomNameSequence from six to eight characters, the docstring of the class was not adjusted accordingly.
* Improve highlighting of some code blocks. (GH-6401)Serhiy Storchaka2018-04-0829-137/+301
|
* Add a prepend() recipe to teach a chain() idiom (GH-6415)Raymond Hettinger2018-04-082-0/+13
|
* bpo-29613: Added support for SameSite cookies (GH-6413)Alex Gaynor2018-04-075-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-29613: Added support for SameSite cookies Implemented as per draft https://tools.ietf.org/html/draft-west-first-party-cookies-07 * Documented SameSite And suggestions by members. * Missing space :( * Updated News and contributors * Added version changed details. * Fix in documentation * fix in documentation * Clubbed test cases for same attribute into single. * Updates * Style nits + expand tests * review feedback
* bpo-33201: Modernize "Extension types" doc (GH-6337)Antoine Pitrou2018-04-0715-1917/+1733
| | | | | | | | | * bpo-33201: Modernize "Extension types" doc * Split tutorial and other topics * Some small fixes * Address some review comments * Rename noddy* to custom* and shoddy to sublist * Fix markup
* bpo-33184: Update macOS installer build to use OpenSSL 1.1.0h. (GH-6407)Ned Deily2018-04-072-3/+4
|