[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 thread local, they are accessible from all threads, and collecting garbage 
in one thread affects other threads.

For truly disabling GC globally you need to use a counted semaphore or other 
synchronization primitives, and this can be implemented at Python level. But 
what are use cases for this context manager? Isn't naive approach enough?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 object 
should be accepted. Several similar propositions already were rejected for this 
reason.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20632] Define a new __key__ protocol

2018-02-04 Thread Raymond Hettinger

Change by Raymond Hettinger :


--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.   This is 
analogous to the list() builtin- where the core ability is to write s.append(e) 
and there is a convenience of calling list(iterable).

Another reason the first example goes first because it is simple.  It shows 
counting in isolation with no other distractions (an in-vitro example).

The second example is in a more complex environment incorporating file access 
and regular expressions (an in-vivo example).

FWIW, there are plenty of examples of using the += style.  Here's one I use in 
my Python courses:

'Scan a log file from a NASA server'

import collections, re, pprint

visited = collections.Counter()
with open('notes/nasa_19950801.log') as f:
for line in f:
mo = re.search(r'GET\s+(\S+)\s+200', line)
if mo is not None:
url = mo.group(1)
visited[url] += 1

pprint.pprint(visited.most_common(20))

I've had good luck with people understanding the docs as-is, so I'm going to 
decline the suggestion.  I do appreciate you taking the time to share your 
thoughts.

--
assignee: docs@python -> rhettinger
nosy: +rhettinger
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 / downgraded after Python is built.
And header version may not be consistent with kernel version.

There are some cases that system may return error for unsupported setsockopt() 
on Linux.

So I think websocket-client should catch OSError for setsockopt.

But if there are many broken libraries in the world, it's considerable
that hide it on Python side.

Kamil said "This behavior breaks many libraries that i use."
But I saw only websocket-client.  How many other libraries?

--
nosy: +inada.naoki

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 system, so 
there should not has this problem.
Correct me if I'm wrong.

> The other option would be to always hide the new constant on Windows in 3.6, 
> and make it unconditionally available on 3.7.

Search on GitHub [1], most people only check whether `socket` has such flags, 
like this:
if hasattr(socket, "TCP_KEEPCNT"):
...

Most of they don't check platform or Python version, so I'm -1 on this option.

-
TCP_KEEPIDLE and TCP_KEEPINTVL were added in Windows 10 1709. [2]
The master branch on AppVeyor is using 10.0.16229 (1709) SDK. [3]
While 3.6 branch is using 10.0.15062 (1703) SDK. [4]
If you agree the way of PR 5523, maybe we should remove these two flags as well.

[1] 
https://github.com/search?l=Python&p=1&q=TCP_KEEPCNT&type=Code&utf8=%E2%9C%93
[2] https://msdn.microsoft.com/en-us/library/windows/desktop/ms738596.aspx
[3] https://github.com/isuruf/cpython/blob/master/PCbuild/python.props#L78
[4] https://github.com/isuruf/cpython/blob/3.6/PCbuild/python.props#L77

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 coverage.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/fea0a12f6bee4a36b2c9533003e33a12c58d2d91


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32720] Format mini-language integer definition is incorrect

2018-02-04 Thread Mariatta Wijaya

Change by Mariatta Wijaya :


--
pull_requests: +5370

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/a8c25d1c7f0d395861cc3e10dd01989150891c95


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8722] Documentation for __getattr__

2018-02-04 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5369

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8722] Documentation for __getattr__

2018-02-04 Thread miss-islington

Change by miss-islington :


--
keywords: +patch
pull_requests: +5368

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 accounted for 
multi-threading (e.g. backed by a counted semaphore or the functional 
equivalent), or else by making gc enable/disable status have a thread local 
toggle in addition to the global one (so the context manager can ensure "GC is 
off *in this thread*, regardless of the global status").

Either of those two options requires changes to the main GC machinery though, 
as otherwise you basically *can't* write a correct context manager for this use 
case, since a direct call to gc.enable() in another thread would always be 
problematic.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 less of an important part of the language than Python3-recall Python 2's 
configure script has --without-unicode!. However, in Python 3, Unicode is a 
core language concept and literally baked into the syntax of the language. I 
therefore propose moving all of unicodedata's tables and algorithms into the 
interpreter core proper and converting Modules/unicodedata.c into a facade. 
This will remove awkward maneuvers like ast.c importing unicodedata in order to 
perform normalization. Having unicodedata readily accessible to the str type 
would also permit higher a fidelity unicode implementation. For example, 
implementing language-tailored str.lower() requires having canonical combining 
class of a character available. This data lives only in unicodedata currently.

--
components: Unicode
messages: 311634
nosy: benjamin.peterson, ezio.melotti, vstinner
priority: normal
severity: normal
stage: needs patch
status: open
title: merge the underlying data stores of unicodedata and the str type
type: enhancement
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/d1f318105b8781b01f3507d5cb0fd841b977d5f2


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-02-04 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5365

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 editor window.  It made the 
Startup tab look nicer.   :-)

--
nosy: +csabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/4abcbc0f0de8dc3c245950e118cd9d374dbfe42b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
>>> cnt = Counter()
>>> for word in ['red', 'blue', 'red', 'green', 'blue', 'blue']:
... cnt[word] += 1
>>> cnt
Counter({'blue': 3, 'red': 2, 'green': 1})

clearly this could simply be : 

>>> # Tally occurrences of words in a list
>>> cnt = Counter(['red', 'blue', 'red', 'green', 'blue', 'blue'])
>>> cnt
Counter({'blue': 3, 'red': 2, 'green': 1})

(i.e. the iteration through the array is unneeded in this example).

The 2nd example is better in showing the 'entry-level' use of the Counter class.

There possibly does need to be a simple example of when you might manually 
increment the Counter class - but I don't think that the examples given 
illustrate that in a useful way; and I personally haven't come across a 
use-case for manually incrementing the Counter class entires that couldn't be 
accomplished with a comprehension or generator expression passed directly to 
the Counter constructor.

--
assignee: docs@python
components: Documentation
messages: 311630
nosy: anthony-flury, docs@python
priority: normal
severity: normal
status: open
title: collections.counter examples are misleading
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/1c2b138671656abf8563a0cd7ef27c8c2e0be4e6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/5b933aa8ec8b1c04488c26b3d61b813e237f55d9


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 x.0b1, so the overlap was much less.)  I will edit to make that explicit. 
 So only 3.6 should have conflicts.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-02-04 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5362

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-02-04 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5363

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/845d86485e35a26478aedb3dc127d632fdc65759


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to be overridden just to remove args)

However, if a class has a custom __new__ at one point (in a parent class), and 
at a later point __bases__ is changed, object.__new__ will still reject 
arguments, although __new__ may not be overridden anymore at that point. See 
attached file.

I can't check with all Python 3 versions, but the same code works fine in 
Python 2.

--
files: bases.py
messages: 311622
nosy: VA
priority: normal
severity: normal
status: open
title: object.__new__ does not accept arguments if __bases__ is changed
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file47425/bases.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, select etc.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/71b94e30b1d63c789908482b3b808cc613e57267


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> test_check_hostname() of test_ftplib started to fail randomly

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 documentation is in the reference manual, but it's 
flawed:

https://docs.python.org/3.7/reference/compound_stmts.html#the-for-statement

- The behavior it's describing is specific to list iterators, but it pretends 
to apply to "mutable sequences" in general (which may or may not mimic list 
iterators in relevant respects).

- It's not clear that the "length of the sequence" (list!) is evaluated anew on 
each iteration (not, e.g., captured once at the start of the `for` loop).

- While it describes things that can go wrong, it doesn't describe the common 
useful case:  appending to a list during iteration (for example, in a 
breadth-first search).

--
assignee: docs@python
components: Documentation
messages: 311614
nosy: docs@python, tim.peters
priority: normal
severity: normal
stage: needs patch
status: open
title: Mutating a list while iterating:  clarify the docs
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 itself?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 only function call is f('spam') which has a single positional 
argument.

I believe the author was referencing the output of print("Annotations:", 
f.__annotations__) which was:
Annotations: {'ham': , 'return': , 'eggs': }

and then confused that with 4.7.2. Keyword Arguments 
(https://docs.python.org/3.5/tutorial/controlflow.html#keyword-arguments) where 
it points out that keyword arguments follow positional arguments.  However, the 
difference between identifying a positional argument vs keyword argument is 
done at the function CALL, not the function DEFINITION since any argument can 
be both positional or keyword, depending on how it is referenced.

Moreover, the last sentence in 4.7.2. Keyword Arguments, points out that the 
order of unsorted sequences is undefined, which would then explain why 'return' 
appears in the middle here instead of at the end.

--
assignee: docs@python
components: Documentation
messages: 311612
nosy: John Hossbach, docs@python
priority: normal
severity: normal
status: open
title: 4.7.7. Function Annotations
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 supported. But the 
command line is not a path-like object. It is a concatenation of quoted program 
name and arguments. Neither operation for path-like objects makes sense for a 
command line.

I think this change should be reverted.

--
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 work without allowing combinations like Control+X, 
Control-F.

--
nosy: +csabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 raise a TypeError if the argument is not of type bytes, str or is a 
os.PathLike object, and that's probably why I wrote the initial code the way I 
did (catching TypeError from os.fsdecode).

Doesn't the try-except block actually catch this TypeError? I don't understand 
off the top of my head why my code doesn't catch this exception..

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
status: open
title: IDLE: Update configdialog docstrings to reflect extension integration
type: enhancement
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
--
Traceback (most recent call last):
  File "C:\py\cpython3.7\lib\unittest\mock.py", line 1191, in patched
return func(*args, **keywargs)
  File "C:\py\cpython3.7\lib\test\test_tarfile.py", line 1152, in 
test_ordered_recursion
support.unlink(os.path.join(path, "1"))
  File "C:\py\cpython3.7\lib\test\support\__init__.py", line 394, in unlink
_unlink(filename)
  File "C:\py\cpython3.7\lib\test\support\__init__.py", line 344, in _unlink
_waitfor(os.unlink, filename)
  File "C:\py\cpython3.7\lib\test\support\__init__.py", line 341, in _waitfor
RuntimeWarning, stacklevel=4)
RuntimeWarning: tests may fail, delete still pending for 
C:\py\cpython3.7\build\test_python_8504\@test_8504_tmp-tardir\directory\1

==
ERROR: test_directory_size (test.test_tarfile.GzipWriteTest)
--
Traceback (most recent call last):
  File "C:\py\cpython3.7\lib\test\test_tarfile.py", line 1121, in 
test_directory_size
os.mkdir(path)
FileExistsError: [WinError 183] Cannot create a file when that file already 
exists: 
'C:\\py\\cpython3.7\\build\\test_python_8504\\@test_8504_tmp-tardir\\directory'

==
ERROR: test_ordered_recursion (test.test_tarfile.GzipWriteTest)
--
Traceback (most recent call last):
  File "C:\py\cpython3.7\lib\unittest\mock.py", line 1191, in patched
return func(*args, **keywargs)
  File "C:\py\cpython3.7\lib\test\test_tarfile.py", line 1137, in 
test_ordered_recursion
os.mkdir(path)
FileExistsError: [WinError 183] Cannot create a file when that file already 
exists: 
'C:\\py\\cpython3.7\\build\\test_python_8504\\@test_8504_tmp-tardir\\directory'

==
ERROR: test_directory_size (test.test_tarfile.LzmaWriteTest)
--
Traceback (most recent call last):
  File "C:\py\cpython3.7\lib\test\test_tarfile.py", line 1121, in 
test_directory_size
os.mkdir(path)
FileExistsError: [WinError 183] Cannot create a file when that file already 
exists: 
'C:\\py\\cpython3.7\\build\\test_python_8504\\@test_8504_tmp-tardir\\directory'

==
ERROR: test_ordered_recursion (test.test_tarfile.LzmaWriteTest)
--
Traceback (most recent call last):
  File "C:\py\cpython3.7\lib\unittest\mock.py", line 1191, in patched
return func(*args, **keywargs)
  File "C:\py\cpython3.7\lib\test\test_tarfile.py", line 1137, in 
test_ordered_recursion
os.mkdir(path)
FileExistsError: [WinError 183] Cannot create a file when that file already 
exists: 
'C:\\py\\cpython3.7\\build\\test_python_8504\\@test_8504_tmp-tardir\\directory'

==
ERROR: test_directory_size (test.test_tarfile.WriteTest)
--
Traceback (most recent call last):
  File "C:\py\cpython3.7\lib\test\test_tarfile.py", line 1121, in 
test_directory_size
os.mkdir(path)
FileExistsError: [WinError 183] Cannot create a file when that file already 
exists: 
'C:\\py\\cpython3.7\\build\\test_python_8504\\@test_8504_tmp-tardir\\directory'

==
ERROR: test_ordered_recursion (test.test_tarfile.WriteTest)
--
Traceback (most recent call last):
  File "C:\py\cpython3.7\lib\unittest\mock.py", line 1191, in patched
return func(*args, **keywargs)
  File "C:\py\cpython3.7\lib\test\test_tarfile.py", line 1137, in 
test_ordered_recursion
os.mkdir(path)
FileExistsError: [WinError 183] Cannot create a file when that file already 
exists: 
'C:\\py\\cpython3.7\\build\\test_python_8504\\@test_8504_tmp-tardir\\directory'

--

--
stage: patch review -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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) [MSC v.1911 32 
bit (Intel)]
== Windows-10-10.0.16299-SP0 little-endian
== cwd: C:\py\cpython3.7\build\test_python_11092
== CPU count: 2
== encodings: locale=cp1251, FS=utf-8
Run tests sequentially
0:00:00 [1/1] test_subprocess
test_nonexisting_with_pipes (test.test_subprocess.ProcessTestCase) ... FAIL
test_nonexisting_with_pipes (test.test_subprocess.ProcessTestCaseNoPoll) ... 
skipped 'Test needs selectors.PollSelector'

==
FAIL: test_nonexisting_with_pipes (test.test_subprocess.ProcessTestCase)
--
Traceback (most recent call last):
  File "C:\py\cpython3.7\lib\test\test_subprocess.py", line 1194, in 
test_nonexisting_with_pipes
self.assertEqual(stderr, "")
AssertionError: 'Traceback (most recent call last):\n  Fil[923 chars]le\n' != ''
Diff is 965 characters long. Set self.maxDiff to None to see it.

--
Ran 2 tests in 0.171s

FAILED (failures=1, skipped=1)
test test_subprocess failed
test_subprocess failed

1 test failed:
test_subprocess

Total duration: 391 ms
Tests result: FAILURE


Here stderr is:

Traceback (most recent call last):
  File "C:\py\cpython3.7\lib\subprocess.py", line 1101, in _execute_child
args = os.fsdecode(args)  # os.PathLike -> str
  File "C:\py\cpython3.7\\lib\os.py", line 821, in fsdecode
filename = fspath(filename)  # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not list

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 16, in 
  File "C:\py\cpython3.7\lib\subprocess.py", line 756, in __init__
restore_signals, start_new_session)
  File "C:\py\cpython3.7\lib\subprocess.py", line 1104, in _execute_child
args[0] = os.fsdecode(args[0])  # os.PathLike -> str
  File "C:\py\cpython3.7\\lib\os.py", line 821, in fsdecode
filename = fspath(filename)  # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not tuple

In _execute_child args is passed to os.fsdecode() unless it is a string. In 
this case args is a list. os.fsdecode() doesn't accept a list.

The regression was introduced in issue31961.

--
components: Library (Lib), Windows
messages: 311603
nosy: Phaqui, gregory.p.smith, paul.moore, serhiy.storchaka, steve.dower, 
tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Popen doesn't work on Windows when args is a list
type: behavior
versions: Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: C:\py\cpython3.8\PCBuild\win32\python_d.exe
File: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp
Line: 258

Expression: _osfile(fh) & FOPEN

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

And tests are hung.

When ran tests in 3.7 on Windows I got multiple messages 
"minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(49) : Assertion failed: 
(_osfile(fh) & FOPEN)" on output. This may be related.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 protocol is a STREAM of data by design, not a sequence of packets.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, which may be considered as 
unexpected behavior.

--
components: asyncio
messages: 311600
nosy: Boss Kwei, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: write() method in Transport should not buffer data
versions: Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 should 
be reselected again.

Both selector-based and proactor transports are affected.

--
components: asyncio
messages: 311598
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Choose protocol implementation on transport.set_protocol()
versions: Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

BTW. I'm -1 on building the installer with anything but the compiler included 
in Xcode (and it would be nice to build with a recent version of Xcode to use 
an up-to-date compiler and SDK)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that's a different issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/07ca9afaa8768b44baf816b4998d209ed3e0088f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 'manager_owned'" error.

If someone knows of a workaround until the PR is accepted, it would be 
appreciated as well.

--
nosy: +hniksic

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/1a0239e12e161609fdf68f13cedbabca9bf353f1


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com