[issue31356] Add context manager to temporarily disable GC

2018-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. The used approach was broken in the presence of multiple threads too. It didn't guarantee even that GC will be disabled in the next line. 2. What is a sense of disabling GC in a single thread? Objects in Python are not

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2018-02-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +5371 ___ Python tracker ___ ___

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The bug itself can be easily fixed. But I think this PR shouldn't be merged at first place. Not all functions should accept path-like objects for arbitrary arguments. Only if the argument semantically is a path, a path-like

[issue20632] Define a new __key__ protocol

2018-02-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___

[issue32394] socket lib beahavior change in 3.6.4

2018-02-04 Thread INADA Naoki
INADA Naoki added the comment: It seems Linux has TCP_KEEPCNT from very old ages and just checking it's existence was OK for many years. So I'm +0.5 on this Python-side fix. -- ___ Python tracker

[issue32770] collections.counter examples are misleading

2018-02-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the suggestion. I respectfully disagree. The "core" functionality of Counter is the ability to write c['x'] += 1 without risking a KeyError. The add-on capability is to process an entire iterable all at once.

[issue32394] socket lib beahavior change in 3.6.4

2018-02-04 Thread INADA Naoki
INADA Naoki added the comment: > On Linux/Unix, the compile-time headers always consist with the system, so > there should not has this problem. > Correct me if I'm wrong. No. Compile-time and run-time system is not always consist. Kernel version may be upgraded /

[issue32394] socket lib beahavior change in 3.6.4

2018-02-04 Thread Ma Lin
Ma Lin added the comment: > We don't remove unsupported socket flags on Unix, why should we do it for > Windows? We have this problem because: compile with new Windows SDK, but run on old version Windows. On Linux/Unix, the compile-time headers always consist with the

[issue8722] Documentation for __getattr__

2018-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the patch Cheryl, and for the reviews Terry! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: Don't revert something just because you found a bug, we can fix it. fwiw, the PR passed appveyor's Windows run: https://ci.appveyor.com/project/python/cpython/build/3.7build11551 So if there's a bug, we're missing some kind of test

[issue8722] Documentation for __getattr__

2018-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset fea0a12f6bee4a36b2c9533003e33a12c58d2d91 by Nick Coghlan (Miss Islington (bot)) in branch '3.7': [3.7] bpo-8722: Document __getattr__ behavior with AttributeError in property (GH-5543)

[issue32720] Format mini-language integer definition is incorrect

2018-02-04 Thread Mariatta Wijaya
Change by Mariatta Wijaya : -- pull_requests: +5370 ___ Python tracker ___ ___

[issue8722] Documentation for __getattr__

2018-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset a8c25d1c7f0d395861cc3e10dd01989150891c95 by Nick Coghlan (Miss Islington (bot)) in branch '3.6': [3.6] bpo-8722: Document __getattr__ behavior with AttributeError in property (GH-5542)

[issue8722] Documentation for __getattr__

2018-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +5369 ___ Python tracker ___

[issue8722] Documentation for __getattr__

2018-02-04 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +5368 ___ Python tracker ___

[issue32691] "pdb -m " sets __main__.__package__ incorrectly

2018-02-04 Thread Nick Coghlan
Change by Nick Coghlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32720] Format mini-language integer definition is incorrect

2018-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: I didn't think to check those - it looks like they have the same problem with the same fix (i.e. the actual syntax is "digit+"). -- ___ Python tracker

[issue31356] Add context manager to temporarily disable GC

2018-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: If I recall the discussion correctly, it was: 1. That this was worth doing precisely because the naive approach is likely to be broken in the presence of multiple threads; 2. It was only worth doing either as a true global disable that

[issue32771] merge the underlying data stores of unicodedata and the str type

2018-02-04 Thread Benjamin Peterson
New submission from Benjamin Peterson : Both Objects/unicodeobject.c and Modules/unicodedatamodule.c rely on large generated databases (Objects/unicodetype_db.h, Modules/unicodename_db.h, Modules/unicodedata_db.h). This separation made sense in Python 2 where Unicode was

[issue8722] Documentation for __getattr__

2018-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset d1f318105b8781b01f3507d5cb0fd841b977d5f2 by Nick Coghlan (Cheryl Sabella) in branch 'master': bpo-8722: Document __getattr__ behavior with AttributeError in property (GH-4754)

[issue5594] IDLE startup configuration

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5366 stage: test needed -> patch review ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2018-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +5365 ___ Python tracker ___

[issue5594] IDLE startup configuration

2018-02-04 Thread Cheryl Sabella
Cheryl Sabella added the comment: I created a pull request for this ticket. I did not include any of the other issues/tickets for using the command line information on restart or any of the issues with running certain code. I also added template code to be used in a new

[issue5594] IDLE startup configuration

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- dependencies: +IDLE: Add docstrings and tests for editor.py reload functions ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2018-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4abcbc0f0de8dc3c245950e118cd9d374dbfe42b by Terry Jan Reedy (Miss Islington (bot)) in branch '3.7': bpo-30928: IDLE - update NEWS.txt. (GH-5539) (GH-5540)

[issue5594] IDLE startup configuration

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch, patch pull_requests: +5366, 5367 stage: test needed -> patch review ___ Python tracker

[issue32770] collections.counter examples are misleading

2018-02-04 Thread Anthony Flury
New submission from Anthony Flury : The first example given for collections.Counter is misleading - the documentation ideally should show the 'best' (one and only one) way to do something and the example is this : >>> # Tally occurrences of words in a list >>>

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for catching this. -- ___ Python tracker ___ ___

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: enhancement -> behavior ___ Python tracker

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1c2b138671656abf8563a0cd7ef27c8c2e0be4e6 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': bpo-32765: Update configdialog General tab create page docstring (GH-5529) (GH-5538)

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5b933aa8ec8b1c04488c26b3d61b813e237f55d9 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.7': bpo-32765: Update configdialog General tab create page docstring (GH-5529) (GH-5537)

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2018-02-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +5364 ___ Python tracker ___ ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2018-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Correction: entries currently go under "What's New in IDLE 3.7.0" for both master and 3.7 branches. Each "What's New in IDLE 3.x.0" is "since 3.(x-1).0 was released. (We used to not branch off x+1 until the first x.0rc1, instead of at

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +5362 ___ Python tracker ___

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +5363 ___ Python tracker ___

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 845d86485e35a26478aedb3dc127d632fdc65759 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-32765: Update configdialog General tab create page docstring (GH-5529)

[issue32769] Add 'annotations' to the glossary

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- assignee: docs@python components: Documentation keywords: easy nosy: csabella, docs@python priority: normal severity: normal status: open title: Add 'annotations' to the glossary type: enhancement versions: Python 3.8

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2018-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Add 1 new entry to all 3 versions. There will likely be merge conflicts to be resolved because the lower context is not the same, but this should establish a uniform lower context for the immediate future. -- versions: +Python 3.8

[issue31529] IDLE: Add docstrings and tests for editor.py reload functions

2018-02-04 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Terry, Could you put this one on your radar for review? Thanks! -- ___ Python tracker ___

[issue32739] collections.deque rotate(n=1) default value not documented

2018-02-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32768] object.__new__ does not accept arguments if __bases__ is changed

2018-02-04 Thread VA
New submission from VA : object.__new__ takes only the class argument, but it still accepts extra arguments if a class doesn't override __new__, and rejects them otherwise. (This is because __new__ will receive the same arguments as __init__ but __new__ shouldn't need

[issue32394] socket lib beahavior change in 3.6.4

2018-02-04 Thread Nathaniel Smith
Nathaniel Smith added the comment: The other option would be to always hide the new constant on Windows in 3.6, and make it unconditionally available on 3.7. -- nosy: +njs ___ Python tracker

[issue32394] socket lib beahavior change in 3.6.4

2018-02-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Socket constants a compile time values, obviously concrete operation system might not support a flag -- but we do nothing with it in runtime. All flags available on compile time are exposed, it's true for modules like socket, os,

[issue32394] socket lib beahavior change in 3.6.4

2018-02-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: We don't remove unsupported socket flags on Unix, why should we do it for Windows? -- nosy: +asvetlov ___ Python tracker

[issue32706] test_check_hostname() of test_ftplib started to fail randomly

2018-02-04 Thread Christian Heimes
Christian Heimes added the comment: poplib is also affected, see #32753 -- priority: normal -> high stage: patch review -> needs patch type: -> behavior versions: +Python 3.8 ___ Python tracker

[issue32728] Extend zipfile's compression level support to LZMA

2018-02-04 Thread bbayles
Change by bbayles : -- keywords: +patch pull_requests: +5361 stage: -> patch review ___ Python tracker ___

[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +pmoody ___ Python tracker ___ ___ Python-bugs-list

[issue32620] [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"

2018-02-04 Thread Larry Hastings
Larry Hastings added the comment: I wanted it in 3.4 too, it was breaking CI. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.4 ___ Python tracker

[issue32620] [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"

2018-02-04 Thread Larry Hastings
Larry Hastings added the comment: New changeset 71b94e30b1d63c789908482b3b808cc613e57267 by larryhastings in branch '3.4': [3.4] [3.5] bpo-32620: Remove failing pyenv call from CI config (GH-5274) (#5533)

[issue32753] ssl.SSLError exceptions in test_poplib

2018-02-04 Thread Christian Heimes
Christian Heimes added the comment: It's a duplicate of #32706. The new cert validation code causes the handshake to terminate properly. The old asyncore based test routine is not able to handle this correctly when the machine is under heavy load. -- resolution: ->

[issue32767] Mutating a list while iterating: clarify the docs

2018-02-04 Thread Tim Peters
New submission from Tim Peters : This has come up repeatedly, and the docs should be updated to resolve it: https://stackoverflow.com/questions/48603998/python-iterating-over-a-list-but-i-want-to-add-to-that-list-while-in-the-loop/48604036#48604036 Seemingly the only relevant

[issue32620] [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"

2018-02-04 Thread Larry Hastings
Change by Larry Hastings : -- pull_requests: +5360 ___ Python tracker ___ ___

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-04 Thread Anders Lorentsen
Anders Lorentsen added the comment: Wait a minute. The failing test is test_nonexisting_with_pipes, and it fails because args[0] is a tuple - how can that be? Nobody is supposed to pass cmd=sequence-where-first-element-is-a-tuple! Is everything all right with the test

[issue32766] 4.7.7. Function Annotations

2018-02-04 Thread John Hossbach
New submission from John Hossbach : https://docs.python.org/3.5/tutorial/controlflow.html#function-annotations The end of the first paragraph states, "The following example has a positional argument, a keyword argument, and the return value annotated:" However, the

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually this feature looks wrong to me. The args argument is either a sequence containing a program name and arguments, or a command line string. In the first case supporting path-like objects makes sense, and this was

[issue32739] collections.deque rotate(n=1) default value not documented

2018-02-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +5359 ___ Python tracker ___

[issue32739] collections.deque rotate(n=1) default value not documented

2018-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +5358 ___ Python tracker ___

[issue32739] collections.deque rotate(n=1) default value not documented

2018-02-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +5357 ___ Python tracker ___

[issue32761] IDLE Keymap for Cntl-A

2018-02-04 Thread Cheryl Sabella
Cheryl Sabella added the comment: That's interesting. I've always thought of Control+A to be 'select all'. https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts Do you think a new keybinding theme should be added for bash/emacs? I don't know how well emacs would

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-04 Thread Anders Lorentsen
Anders Lorentsen added the comment: Also, isn't there continuous integration testing? Everything passed on the PR, so where does this come from? -- ___ Python tracker

[issue30569] Tutorial section 2.1 has *nix example at 3.7, but Windows at 3.6

2018-02-04 Thread Cheryl Sabella
Cheryl Sabella added the comment: This is still an issue. Since it's more than updating the release version, I think someone more knowledgeable than me should fix it. I wouldn't want to miss something that should be included. -- versions: +Python 3.8

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5356 stage: -> patch review ___ Python tracker ___

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-04 Thread Anders Lorentsen
Anders Lorentsen added the comment: This is strange, because _execute_child calls os.fsdecode with `args` as the argument, which may be a list. os.fsdecode calls fspath. Now, the python docstring of _fspath, as defined in Lib/os.py on line 1031, clearly states that it will

[issue32765] IDLE: Update configdialog docstrings to reflect extension integration

2018-02-04 Thread Cheryl Sabella
New submission from Cheryl Sabella : The layout of the general tab changed with #27099, but the docstrings weren't updated with the new widgets. -- assignee: terry.reedy components: IDLE messages: 311606 nosy: csabella, terry.reedy priority: normal severity: normal

[issue32739] collections.deque rotate(n=1) default value not documented

2018-02-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +5355 stage: resolved -> patch review ___ Python tracker ___

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue30693] tarfile add uses random order

2018-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests are failing on Windows. == ERROR: test_ordered_recursion (test.test_tarfile.Bz2WriteTest)

[issue32764] Popen doesn't work on Windows when args is a list

2018-02-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : test_subprocess is failing on Windows. C:\py\cpython3.7>./python -m test -uall -v -m test_nonexisting_with_pipes test_subprocess Running Debug|Win32 interpreter... == CPython 3.7.0b1+ (heads/3.7:1a0239e, Feb 4 2018, 16:19:37)

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2018-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This made tests failing on Windows. See issue32764. -- nosy: +serhiy.storchaka stage: commit review -> needs patch status: closed -> open ___ Python tracker

[issue31851] test_subprocess hangs randomly on Windows with Python 3.x

2018-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When ran tests in 3.8 on Windows I got a number of dialpog windows with the following text: --- Microsoft Visual C++ Runtime Library --- Debug Assertion Failed! Program:

[issue32763] write() method in Transport should not buffer data

2018-02-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Transport buffers writes if kernel buffer is full, the behavior is intentional and present starting from very beginning of asyncio development. Moreover, two plain socket.send() calls can be joined into single TCP packet, TCP

[issue32763] write() method in Transport should not buffer data

2018-02-04 Thread Boss Kwei
New submission from Boss Kwei : write() method implemented in https://github.com/python/cpython/blob/master/Lib/asyncio/selector_events.py#L830 is not stable in somecases. If this method was called too quickly, separate data will be packed and sent in same tcp package,

[issue32227] singledispatch support for type annotations

2018-02-04 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > Do you think it should be added to the What's New? page for 3.7? I leave this up to Łukasz. -- ___ Python tracker

[issue30688] support named Unicode escapes (\N{name}) in re

2018-02-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue32762] Choose protocol implementation on transport.set_protocol()

2018-02-04 Thread Andrew Svetlov
New submission from Andrew Svetlov : New buffered transports was introduced in Python 3.7. Actual transport implementation (get_buffer() or data_received()) is determined in transport constructor. Protocol can be changed by `set_protocol()` method, the implementation

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-02-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: Is there anything we (the CPython developers) can do about this? If I read the issue correctly clang 5.x generates faster binaries than clang 3.x and 4.x. If that is indeed the issue there's probably not much we can do about this.

[issue28099] Drop Mac OS X Tiger support in Python 3.6

2018-02-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree, as long as there are other buildbots for macOS (and there appear to be buildbots for macOS 10.12 and 10.13). It would be nice to have buildbots running the OS releases for which installers are build (10.6 and 10.9), but

[issue32072] Issues with binary plists

2018-02-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: @larry: plists are Apple's equivalent to Windows INI files ;-) -- ___ Python tracker ___

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2018-02-04 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: The issue is also present in Python 3.7.0b1. -- versions: +Python 3.7 ___ Python tracker ___

[issue10544] yield expression inside generator expression does nothing

2018-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 07ca9afaa8768b44baf816b4998d209ed3e0088f by Serhiy Storchaka in branch 'master': bpo-10544: Disallow "yield" in comprehensions and generator expressions. (GH-4564)

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2018-02-04 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: I encountered this bug while testing the code in this StackOverflow answer: https://stackoverflow.com/a/48565011/1600898 The code at the end of the answer runs on Python 3.5, but fails on 3.6 with the "unexpected keyword argument

[issue32691] "pdb -m " sets __main__.__package__ incorrectly

2018-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 1a0239e12e161609fdf68f13cedbabca9bf353f1 by Nick Coghlan (Miss Islington (bot)) in branch '3.7': [3.7] bpo-32691: Use mod_spec.parent when running modules with pdb (GH-5510)

[issue30977] reduce uuid.UUID() memory footprint

2018-02-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___