]> granicus.if.org Git - python/log
python
6 years agobpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)
Serhiy Storchaka [Wed, 9 May 2018 08:10:55 +0000 (11:10 +0300)]
bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738)

6 years agoFix superfluous if in documentation. (GH-6728)
Julien Palard [Wed, 9 May 2018 07:25:22 +0000 (09:25 +0200)]
Fix superfluous if in documentation. (GH-6728)

6 years agocloses bpo-33445: fail properly in test_cprofile() (GH-6727)
jdemeyer [Wed, 9 May 2018 04:16:35 +0000 (06:16 +0200)]
closes bpo-33445: fail properly in test_cprofile() (GH-6727)

6 years agobpo-28556: Minor fixes for typing module (GH-6732)
Ivan Levkivskyi [Wed, 9 May 2018 01:23:46 +0000 (02:23 +0100)]
bpo-28556: Minor fixes for typing module (GH-6732)

This also fixes https://bugs.python.org/issue33420

6 years agoFix typo in __mul__ and __rmul__ docstring (GH-6674)
Grant Jenks [Tue, 8 May 2018 22:00:19 +0000 (15:00 -0700)]
Fix typo in __mul__ and __rmul__ docstring (GH-6674)

6 years agobpo-32717: Document PEP 560 (GH-6726)
Ivan Levkivskyi [Tue, 8 May 2018 18:38:41 +0000 (19:38 +0100)]
bpo-32717: Document PEP 560 (GH-6726)

6 years agobpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563)
Serhiy Storchaka [Tue, 8 May 2018 12:45:15 +0000 (15:45 +0300)]
bpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563)

random() takes precedence over getrandbits() if defined later
in the class tree.

6 years agobpo-33441: Make the sigset_t converter available in other modules. (GH-6720)
Serhiy Storchaka [Tue, 8 May 2018 04:48:50 +0000 (07:48 +0300)]
bpo-33441: Make the sigset_t converter available in other modules. (GH-6720)

* Expose the sigset_t converter via private API _Py_Sigset_Converter().
* Use Argument Clinic for parsing sigset_t in signalmodule.c.
* Raise ValueError instead OverflowError for integers out of
  the C long range.

Based on patch by Pablo Galindo Salgado.

6 years agoRemove mojibake in the locale aliases mapping. (GH-6716)
Serhiy Storchaka [Sun, 6 May 2018 07:52:38 +0000 (10:52 +0300)]
Remove mojibake in the locale aliases mapping. (GH-6716)

6 years agobpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (ПР-6708)
Serhiy Storchaka [Sun, 6 May 2018 05:46:15 +0000 (08:46 +0300)]
bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (ПР-6708)

6 years agobpo-33422: Fix quotation marks getting deleted when looking up byte/string literals...
Andrés Delfino [Sat, 5 May 2018 16:07:32 +0000 (13:07 -0300)]
bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701)

Also update the list of string prefixes.

6 years agobpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. ...
Vinay Sajip [Fri, 4 May 2018 21:20:54 +0000 (22:20 +0100)]
bpo-33400: Clarified documentation to indicate no strict adherence to ISO 8601. (GH-6702)

6 years agobpo-33332: Add signal.valid_signals() (GH-6581)
Antoine Pitrou [Fri, 4 May 2018 11:00:50 +0000 (13:00 +0200)]
bpo-33332: Add signal.valid_signals() (GH-6581)

6 years agobpo-33391: Fix refleak in set_symmetric_difference (GH-6670)
lekma [Wed, 2 May 2018 09:29:10 +0000 (11:29 +0200)]
bpo-33391: Fix refleak in set_symmetric_difference (GH-6670)

6 years agoMitigate macOS race condition in installer build (GH-6686)
Ned Deily [Wed, 2 May 2018 05:41:15 +0000 (01:41 -0400)]
Mitigate macOS race condition in installer build (GH-6686)

6 years agobpo-33290: Have macOS installer remove "pip" alias (GH-6683)
Ned Deily [Wed, 2 May 2018 05:30:33 +0000 (01:30 -0400)]
bpo-33290: Have macOS installer remove "pip" alias (GH-6683)

Currently, "pip3 install --upgrade pip" unconditionally installs a
"pip" alias even for Python 3.  If a user has an existing Python 3.x
installed from a python.org macOS installer and then subsequently
manually updates to a new version of pip, there may now be a stray
"pip" alias in the Python 3.x framework bin directory which can cause
confusion if the user has both a Python 2.7 and 3.x installed;
if the Python 3.x fw bin directory appears early on $PATH, "pip"
might invoke the pip3 for the Python 3.x rather than the pip for
Python 2.7.  To try to mitigate this, the macOS installer script
for the ensurepip option will unconditionally remove "pip" from
the 3.x framework bin directory being updated / installed.  (The
ambiguity can be avoided by using "pythonx.y -m pip".)

6 years agobpo-33281: NEWS and ACK (GH-6681)
Ned Deily [Wed, 2 May 2018 02:41:43 +0000 (22:41 -0400)]
bpo-33281: NEWS and ACK (GH-6681)

6 years agobpo-33281: Fix ctypes.util.find_library regression on macOS (GH-6625)
Ray Donnelly [Wed, 2 May 2018 02:31:36 +0000 (03:31 +0100)]
bpo-33281:  Fix ctypes.util.find_library regression on macOS (GH-6625)

6 years agobpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). ...
Serhiy Storchaka [Tue, 1 May 2018 13:45:04 +0000 (16:45 +0300)]
bpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). (#6332)

6 years agobpo-20709: os.utime(path_to_directory): wrong documentation for Windows. (GH-5469)
Stéphane Wirtel [Tue, 1 May 2018 10:02:26 +0000 (12:02 +0200)]
bpo-20709: os.utime(path_to_directory): wrong documentation for Windows. (GH-5469)

Remove the paragraph where we explain that os.utime() does not support a
directory as path under Windows. Patch by Jan-Philip Gehrcke

Co-authored-by: Jan-Philip Gehrcke <jgehrcke@gmail.com>
6 years agoAdd What's New for Korean documentation translation. (GH-6645)
Julien Palard [Tue, 1 May 2018 09:46:43 +0000 (11:46 +0200)]
Add What's New for Korean documentation translation. (GH-6645)

6 years agobpo-31908: Fix output of cover files for trace module command-line tool. (GH-4205)
Michael Selik [Tue, 1 May 2018 03:46:52 +0000 (20:46 -0700)]
bpo-31908: Fix output of cover files for trace module command-line tool. (GH-4205)

Previously emitted cover files only when --missing option was used.

6 years agobpo-30465: Fix C downcast warning on Windows in ast.c (#6593)
Victor Stinner [Mon, 30 Apr 2018 21:51:02 +0000 (23:51 +0200)]
bpo-30465: Fix C downcast warning on Windows in ast.c (#6593)

ast.c: fstring_fix_node_location() downcasts a pointer difference to
a C int. Replace int with Py_ssize_t to fix the compiler warning.

6 years agoAdd mypy cache to gitignore (GH-6614)
Ekin Dursun [Mon, 30 Apr 2018 19:10:45 +0000 (22:10 +0300)]
Add mypy cache to gitignore (GH-6614)

6 years agobpo-33254: do not return an empty list when asking for the contents of a namespace...
Brett Cannon [Mon, 30 Apr 2018 18:31:45 +0000 (11:31 -0700)]
bpo-33254: do not return an empty list when asking for the contents of a namespace package (GH-6467)

6 years agoEnable the verbose build for extension modules with GNU make (#6659)
Matthias Klose [Mon, 30 Apr 2018 18:07:55 +0000 (20:07 +0200)]
Enable the verbose build for extension modules with GNU make (#6659)

6 years agobpo-33393: Update config.guess and config.sub files (#6658)
Matthias Klose [Mon, 30 Apr 2018 18:07:35 +0000 (20:07 +0200)]
bpo-33393: Update config.guess and config.sub files (#6658)

6 years agobpo-33377: add triplets for mips-r6 and riscv (#6655)
Matthias Klose [Mon, 30 Apr 2018 17:22:16 +0000 (19:22 +0200)]
bpo-33377: add triplets for mips-r6 and riscv (#6655)

* issue33377: add triplets for mips-r6 and riscv

* issue33377: add triplets for mips-r6 and riscv (NEWS entry)

6 years agobpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654)
Andrés Delfino [Mon, 30 Apr 2018 16:30:53 +0000 (13:30 -0300)]
bpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654)

6 years agobpo-33012: Fix invalid function casts for long_long. (GH-6652)
Serhiy Storchaka [Mon, 30 Apr 2018 12:35:08 +0000 (15:35 +0300)]
bpo-33012: Fix invalid function casts for long_long. (GH-6652)

long_long() was used with three function types:
PyCFunction, getter and unaryfunction.

6 years agobpo-27645, sqlite: Fix integer overflow on sleep (#6594)
Victor Stinner [Mon, 30 Apr 2018 10:22:17 +0000 (12:22 +0200)]
bpo-27645, sqlite: Fix integer overflow on sleep (#6594)

Use the _PyTime_t type and round away from zero (ROUND_UP,
_PyTime_ROUND_TIMEOUT) the sleep duration, when converting a Python
object to seconds and then to milliseconds. Raise an OverflowError in
case of overflow.

Previously the (int)double conversion rounded towards zero
(ROUND_DOWN).

6 years agobpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)
Terry Jan Reedy [Mon, 30 Apr 2018 07:08:01 +0000 (03:08 -0400)]
bpo-21474: Update IDLE word/identifier definition from ascii to unicode. (GH-6643)

In text and entry boxes, this affects selection by double-click,
movement left/right by control-left/right, and deletion left/right
by control-BACKSPACE/DEL.

6 years agobpo-33330: Write exceptions occurred in PyImport_Cleanup() to stderr. (GH-6606)
Serhiy Storchaka [Sun, 29 Apr 2018 19:16:30 +0000 (22:16 +0300)]
bpo-33330: Write exceptions occurred in PyImport_Cleanup() to stderr. (GH-6606)

They where silenced before.

6 years agobpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030)
Siddhesh Poyarekar [Sun, 29 Apr 2018 18:59:33 +0000 (00:29 +0530)]
bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030)

METH_NOARGS functions need only a single argument but they are cast
into a PyCFunction, which takes two arguments.  This triggers an
invalid function cast warning in gcc8 due to the argument mismatch.
Fix this by adding a dummy unused argument.

6 years agobpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)
Bo Bayles [Sun, 29 Apr 2018 18:03:05 +0000 (13:03 -0500)]
bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223)

6 years agobpo-33256: Replace angle brackets around python object repr to display it in html...
sblondon [Sun, 29 Apr 2018 17:48:33 +0000 (19:48 +0200)]
bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442)

6 years agobpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)
Serhiy Storchaka [Sun, 29 Apr 2018 12:45:03 +0000 (15:45 +0300)]
bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632)

6 years agobpo-33383: Fix crash in get() of the dbm.ndbm database object. (#6630)
Serhiy Storchaka [Sun, 29 Apr 2018 09:38:06 +0000 (12:38 +0300)]
bpo-33383: Fix crash in get() of the dbm.ndbm database object. (#6630)

6 years agobpo-33378: Add Korean to the language switcher. (GH-6627)
Dong-hee Na [Sat, 28 Apr 2018 20:08:22 +0000 (05:08 +0900)]
bpo-33378: Add Korean to the language switcher. (GH-6627)

6 years agoChange "non-local state" to "content-local state". (GH-6617)
Tom Christie [Fri, 27 Apr 2018 22:35:13 +0000 (23:35 +0100)]
Change "non-local state" to "content-local state". (GH-6617)

The wording here seems wrong, as per https://bugs.python.org/msg315792

6 years agobpo-33363: raise SyntaxError for async for/with outside async functions (#6616)
Zsolt Dollenstein [Fri, 27 Apr 2018 15:58:56 +0000 (08:58 -0700)]
bpo-33363: raise SyntaxError for async for/with outside async functions (#6616)

6 years agobpo-33041: Fix downcast warning on Windows (#6595)
Victor Stinner [Fri, 27 Apr 2018 12:30:01 +0000 (14:30 +0200)]
bpo-33041: Fix downcast warning on Windows (#6595)

Cast pointer difference from ssize_t to int: a frame is very unlikely
larger than 2 GB.

6 years agobpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)
Pablo Galindo [Fri, 27 Apr 2018 12:23:13 +0000 (13:23 +0100)]
bpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)

Fix test_embed.test_pre_initialization_sys_options() when building with --enable-shared

6 years agoClarify the inspect.getmembers predicate parameter (#6615)
Brian Curtin [Thu, 26 Apr 2018 23:48:26 +0000 (19:48 -0400)]
Clarify the inspect.getmembers predicate parameter (#6615)

Previously, the predicate parameter was mentioned, but what it was to be
called with was not documented and required either trial-and-error or
looking into the source to find that it is called with the `value`, or
second item, of the full members list. This change addresses what the
predicate will receive, as well as does some light formatting to make
this clear.

6 years agobpo-27485: Rename and deprecate undocumented functions in urllib.parse (GH-2205)
Cheryl Sabella [Wed, 25 Apr 2018 23:51:54 +0000 (16:51 -0700)]
bpo-27485: Rename and deprecate undocumented functions in urllib.parse (GH-2205)

6 years agobpo-33334: Support NOP and EXTENDED_ARG in dis.stack_effect(). (#6566)
Serhiy Storchaka [Wed, 25 Apr 2018 19:04:06 +0000 (22:04 +0300)]
bpo-33334: Support NOP and EXTENDED_ARG in dis.stack_effect(). (#6566)

Added tests to ensure that all defined opcodes are supported.

6 years agobpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564)
Serhiy Storchaka [Wed, 25 Apr 2018 17:58:40 +0000 (20:58 +0300)]
bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564)

6 years agobpo-33280: Reorganize external Tcl/Tk references. (GH-6473)
Andrés Delfino [Wed, 25 Apr 2018 17:53:58 +0000 (14:53 -0300)]
bpo-33280: Reorganize external Tcl/Tk references. (GH-6473)

6 years agoMention both relevant PEPs in function annotations tutorial (GH-6304)
Neeraj Badlani [Wed, 25 Apr 2018 17:52:13 +0000 (10:52 -0700)]
Mention both relevant PEPs in function annotations tutorial (GH-6304)

Patch by Neeraj Badlani.

6 years agoFix rendering issues in the documentation for the os module (#6525)
Pablo Galindo [Wed, 25 Apr 2018 17:48:27 +0000 (18:48 +0100)]
Fix rendering issues in the documentation for the os module (#6525)

6 years agobpo-33128 Fix duplicated call to importlib._install_external_importers (GH-6273)
Pablo Galindo [Wed, 25 Apr 2018 02:22:28 +0000 (03:22 +0100)]
bpo-33128 Fix duplicated call to importlib._install_external_importers  (GH-6273)

External importers were being added in both phases of the import
system initialisation.

They're only supposed to be added in the second phase, after the
import machinery has been appropriately configured.

6 years agoacks += chrBrd (#6584)
Łukasz Langa [Mon, 23 Apr 2018 21:18:55 +0000 (14:18 -0700)]
acks += chrBrd (#6584)

6 years agobpo-33251: Update documentation to reflect change. (GH-6446) (#6583)
Chris Bradbury [Mon, 23 Apr 2018 20:56:39 +0000 (21:56 +0100)]
bpo-33251: Update documentation to reflect change. (GH-6446) (#6583)

6 years agobpo-33251: Prevent ConfigParser.items returning items present in vars. (#6446)
Chris Bradbury [Mon, 23 Apr 2018 19:16:17 +0000 (20:16 +0100)]
bpo-33251: Prevent ConfigParser.items returning items present in vars. (#6446)

* bpo-33251: ConfigParser.items no longer returns items present in vars.

Documentation for `ConfigParser.items()` states:
'Items present in vars no longer appear in the result.'

This fix aligns behaviour to that specified in the documentation.

6 years agobpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575)
Antoine Pitrou [Mon, 23 Apr 2018 18:53:33 +0000 (20:53 +0200)]
bpo-33329: Fix multiprocessing regression on newer glibcs (GH-6575)

Starting with glibc 2.27.9000-xxx, sigaddset() can return EINVAL for some
reserved signal numbers between 1 and NSIG.  The `range(1, NSIG)` idiom
is commonly used to select all signals for blocking with `pthread_sigmask`.
So we ignore the sigaddset() return value until we expose sigfillset()
to provide a better idiom.

6 years agobpo-33338: [tokenize] Minor code cleanup (#6573)
Łukasz Langa [Mon, 23 Apr 2018 08:07:11 +0000 (01:07 -0700)]
bpo-33338: [tokenize] Minor code cleanup (#6573)

This change contains minor things that make diffing between Lib/tokenize.py and
Lib/lib2to3/pgen2/tokenize.py cleaner.

6 years agobpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)
Berker Peksag [Sun, 22 Apr 2018 23:48:11 +0000 (02:48 +0300)]
bpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555)

6 years agobpo-33297: Mention Pillow to work with more image formats. (#6505)
Andrés Delfino [Sat, 21 Apr 2018 12:17:26 +0000 (09:17 -0300)]
bpo-33297: Mention Pillow to work with more image formats. (#6505)

Also update PIL doc references to Pillow.

6 years agoClarify that __path__ can't be just any value (GH-6554)
Brett Cannon [Fri, 20 Apr 2018 23:32:46 +0000 (16:32 -0700)]
Clarify that __path__ can't be just any value (GH-6554)

6 years agobpo-25427: Remove pyvenv (GH-5962)
Brett Cannon [Fri, 20 Apr 2018 21:15:40 +0000 (14:15 -0700)]
bpo-25427: Remove pyvenv (GH-5962)

6 years agoSpelling fixes to docs, docstrings, and comments (GH-6374)
Ville Skyttä [Fri, 20 Apr 2018 20:08:45 +0000 (23:08 +0300)]
Spelling fixes to docs, docstrings, and comments (GH-6374)

6 years agobpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)
Paul Moore [Fri, 20 Apr 2018 20:06:51 +0000 (21:06 +0100)]
bpo-33131: Upgrade ensurepip to bundle pip 10.0.1 (GH-6546)

Upgrade ensurepip to bundle pip 10.0.1

6 years agobpo-33312: update Tools/gdb/libpython.py to match. (GH-6548)
Gregory P. Smith [Fri, 20 Apr 2018 18:32:08 +0000 (11:32 -0700)]
bpo-33312: update Tools/gdb/libpython.py to match. (GH-6548)

6 years agobpo-32232: by default, Setup modules are no longer built with -DPy_BUILD_CORE (GH...
xdegaye [Fri, 20 Apr 2018 15:03:49 +0000 (17:03 +0200)]
bpo-32232: by default, Setup modules are no longer built with -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.

6 years agobpo-33298: Wrap only constants with _PyCode_ConstantKey() in the compiler. (GH-6512)
Serhiy Storchaka [Fri, 20 Apr 2018 13:01:25 +0000 (16:01 +0300)]
bpo-33298: Wrap only constants with _PyCode_ConstantKey() in the compiler. (GH-6512)

6 years agobpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537)
Gregory P. Smith [Fri, 20 Apr 2018 05:41:19 +0000 (22:41 -0700)]
bpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537)

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.

6 years agoClean up the readme text around PGO a bit. (GH-6538)
Gregory P. Smith [Thu, 19 Apr 2018 15:58:17 +0000 (08:58 -0700)]
Clean up the readme text around PGO a bit. (GH-6538)

6 years agobpo-33189: pygettext.py now accepts only literal strings (GH-6364)
Serhiy Storchaka [Thu, 19 Apr 2018 06:23:03 +0000 (09:23 +0300)]
bpo-33189: pygettext.py now accepts only literal strings (GH-6364)

as docstrings and translatable strings, and rejects
bytes literals and f-string expressions.

6 years agobpo-33299: Return an object itself for some types in _PyCode_ConstantKey(). (GH-6513)
Serhiy Storchaka [Thu, 19 Apr 2018 05:28:04 +0000 (08:28 +0300)]
bpo-33299: Return an object itself for some types in _PyCode_ConstantKey(). (GH-6513)

6 years agoUpdate What's new in 3.7 to reference preadv, pwritev and posix_spawn (GH-6524)
Pablo Galindo [Thu, 19 Apr 2018 04:26:18 +0000 (05:26 +0100)]
Update What's new in 3.7 to reference preadv, pwritev and posix_spawn (GH-6524)

6 years agobpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758)
Denis Osipov [Wed, 18 Apr 2018 23:50:25 +0000 (04:50 +0500)]
bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758)

6 years agobpo-33308: Fix a crash in the parser module when convert an ST object. (#6519)
Serhiy Storchaka [Wed, 18 Apr 2018 22:55:37 +0000 (01:55 +0300)]
bpo-33308: Fix a crash in the parser module when convert an ST object. (#6519)

Converting with line_info=False and col_info=True crashed before.

6 years agobpo-11594: Ensure line-endings are respected when using 2to3 (GH-6483)
Aaron Ang [Tue, 17 Apr 2018 21:34:14 +0000 (14:34 -0700)]
bpo-11594: Ensure line-endings are respected when using 2to3 (GH-6483)

6 years agobpo-33295: Skip test using missing external site (GH-6504)
INADA Naoki [Tue, 17 Apr 2018 15:31:29 +0000 (00:31 +0900)]
bpo-33295: Skip test using missing external site (GH-6504)

`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.

6 years agobpo-33144: random.Random and subclasses: split _randbelow implementation (GH-6291)
Wolfgang Maier [Tue, 17 Apr 2018 15:16:17 +0000 (17:16 +0200)]
bpo-33144: random.Random and subclasses: split _randbelow implementation (GH-6291)

6 years agoFix spelling typo (GH-6443)
jdemeyer [Tue, 17 Apr 2018 15:15:44 +0000 (17:15 +0200)]
Fix spelling typo (GH-6443)

6 years agobpo-33205: dict: Change GROWTH_RATE to `used*3` (GH-6350)
INADA Naoki [Tue, 17 Apr 2018 06:53:34 +0000 (15:53 +0900)]
bpo-33205: dict: Change GROWTH_RATE to `used*3` (GH-6350)

6 years agofix pydoc-topics to work with Sphinx 1.7 (GH-6475)
Benjamin Peterson [Tue, 17 Apr 2018 05:56:46 +0000 (22:56 -0700)]
fix pydoc-topics to work with Sphinx 1.7 (GH-6475)

In fact, we now require a newer Sphinx version because APIs have moved around.

6 years agobpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)
Andrés Delfino [Tue, 17 Apr 2018 05:34:35 +0000 (02:34 -0300)]
bpo-33283: Mention PNG as a supported format by Tcl/Tk. (GH-6479)

6 years agoRevert 725476222a3c1f2f93162d75a540e6bcdeaa36fd (#6494)
Łukasz Langa [Tue, 17 Apr 2018 03:00:31 +0000 (20:00 -0700)]
Revert 725476222a3c1f2f93162d75a540e6bcdeaa36fd (#6494)

This note in documentation was never true.

6 years ago[lib2to3] Make grammar pickling faster (#6491)
Łukasz Langa [Tue, 17 Apr 2018 00:33:59 +0000 (17:33 -0700)]
[lib2to3] Make grammar pickling faster (#6491)

* 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.

6 years agoacks += Zsolt Dollenstein (#6490)
Łukasz Langa [Mon, 16 Apr 2018 23:24:05 +0000 (16:24 -0700)]
acks += Zsolt Dollenstein (#6490)

6 years agoAdd support for all string literals to lib2to3 (#6457)
Zsolt Dollenstein [Mon, 16 Apr 2018 21:33:31 +0000 (22:33 +0100)]
Add support for all string literals to lib2to3 (#6457)

6 years agoRemove to-be-deprecated urllib.request.urlretrieve function reference (#6454)
Andrés Delfino [Mon, 16 Apr 2018 14:02:56 +0000 (11:02 -0300)]
Remove to-be-deprecated urllib.request.urlretrieve function reference (#6454)

6 years agobpo-31947: remove None default for names param in Enum._create_ (GH-4288)
anentropic [Mon, 16 Apr 2018 03:40:35 +0000 (04:40 +0100)]
bpo-31947: remove None default for names param in Enum._create_ (GH-4288)

6 years agobpo-33270: Intern names for all anonymous code objects (#6472)
Zackery Spytz [Sun, 15 Apr 2018 22:12:29 +0000 (16:12 -0600)]
bpo-33270: Intern names for all anonymous code objects (#6472)

6 years agoRemoved a confusing line from a docstring in http.cookies (GH-6482)
Alex Gaynor [Sun, 15 Apr 2018 21:23:47 +0000 (17:23 -0400)]
Removed a confusing line from a docstring in http.cookies (GH-6482)

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.

6 years agobpo-33185: Improve wording and markup (GH-6477)
Nick Coghlan [Sun, 15 Apr 2018 13:32:05 +0000 (23:32 +1000)]
bpo-33185: Improve wording and markup (GH-6477)

Adds some working and markup fixes that I missed
in the initial commit for this issue.

(Follow-up to GH-6419)

6 years agobpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)
Nick Coghlan [Sun, 15 Apr 2018 11:52:57 +0000 (21:52 +1000)]
bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)

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.

6 years agobpo-33176: Add a toreadonly() method to memoryviews. (GH-6466)
Antoine Pitrou [Sat, 14 Apr 2018 17:49:21 +0000 (19:49 +0200)]
bpo-33176: Add a toreadonly() method to memoryviews. (GH-6466)

6 years agobpo-33184: Update Windows installer to OpenSSL 1.1.0h (GH-6463)
Steve Dower [Sat, 14 Apr 2018 00:30:34 +0000 (17:30 -0700)]
bpo-33184: Update Windows installer to OpenSSL 1.1.0h (GH-6463)

6 years agobpo-33265: use an actual method instead of a method-like function in ExitStack (GH...
jdemeyer [Fri, 13 Apr 2018 12:22:46 +0000 (14:22 +0200)]
bpo-33265: use an actual method instead of a method-like function in ExitStack (GH-6456)

`MethodType` has the exact semantics that `ExitStack` needs,
so we can avoid creating a Python level closure.

6 years agoitemgetter add dict example (GH-1280)
WeizhongTu [Fri, 13 Apr 2018 01:33:08 +0000 (09:33 +0800)]
itemgetter add dict example (GH-1280)

6 years agoFix error messages in argparse examples (GH-6435)
suic86 [Wed, 11 Apr 2018 18:45:04 +0000 (20:45 +0200)]
Fix error messages in argparse examples (GH-6435)

The examples in argparse documentation use `error: too few arguments`
error message which was removed in this commit f97c59a in 2011.

6 years agobpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)
Serhiy Storchaka [Wed, 11 Apr 2018 16:15:51 +0000 (19:15 +0300)]
bpo-33260: Regenerate token.py after removing ASYNC and AWAIT. (GH-6447)

6 years agobpo-33097: Fix submit accepting callable after executor shutdown by interpreter exit...
Mark Nemec [Tue, 10 Apr 2018 17:23:14 +0000 (18:23 +0100)]
bpo-33097: Fix submit accepting callable after executor shutdown by 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.

6 years agobpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)
Devon R [Tue, 10 Apr 2018 05:21:18 +0000 (14:21 +0900)]
bpo-33253: Fix xxsubtype.bench() to accept correct str signature. (GH-6439)

6 years agobpo-31201: Clarify command to re-run failing test(s) with example (GH-6417)
Aaron Ang [Mon, 9 Apr 2018 21:09:31 +0000 (14:09 -0700)]
bpo-31201: Clarify command to re-run failing test(s) with example (GH-6417)

6 years agobpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. ...
Serhiy Storchaka [Mon, 9 Apr 2018 17:09:17 +0000 (20:09 +0300)]
bpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. (GH-6259)

Based on patch by Oleg Krasnikov.

6 years agobpo-33031: Remove dead code in C implementation of OrderedDict. (GH-6120)
Serhiy Storchaka [Mon, 9 Apr 2018 16:14:26 +0000 (19:14 +0300)]
bpo-33031: Remove dead code in C implementation of OrderedDict. (GH-6120)

This code doesn't have effect on the final result, but causes
GCC 8 warnings and can have an undefined behavior.