[issue29317] test_copyxattr_symlinks fails

2018-02-02 Thread Nitish

Change by Nitish :


--
nosy: +nitishch

___
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-02 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5343

___
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-02 Thread Nick Coghlan

Nick Coghlan  added the comment:


New changeset 38bfa8418f5d39bcc7478b8f7aef4a632c26172e by Nick Coghlan (Mario 
Corchero) in branch 'master':
bpo-32691: Use mod_spec.parent when running modules with pdb (GH-5474)
https://github.com/python/cpython/commit/38bfa8418f5d39bcc7478b8f7aef4a632c26172e


--

___
Python tracker 

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



[issue32730] Allow py launcher to launch other registered Pythons

2018-02-02 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
versions:  -Python 3.4, Python 3.5

___
Python tracker 

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



[issue32692] test_threading.test_set_and_clear fails in AppVeyor CI

2018-02-02 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
nosy: +vstinner

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-02 Thread Eric Snow

Eric Snow  added the comment:

FYI, out of 2389 source lines in the C extension, 1563 are the channel-related 
code.  That means the non-channel code is 826 lines (about a third).  That 
non-channel code does not depend on the channel code at all and I considered 
splitting the source out, but figured there wasn't enough benefit.  However, I 
might revisit the matter later when I circle back to PEP 554. :)

--

___
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-02 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset 72584d23a54855ef5843d7475b7c5a904e3ef713 by Terry Jan Reedy in 
branch '3.6':
[3.6] bpo-30928: prepare idlelib/NEWS.txt for 3.6.5 entries. (#5508)
https://github.com/python/cpython/commit/72584d23a54855ef5843d7475b7c5a904e3ef713


--

___
Python tracker 

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



[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x

2018-02-02 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
pull_requests: +5342

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-02 Thread Eric Snow

Eric Snow  added the comment:


New changeset f33ecedcad5a001735fa4ded5d21caa2cbf27911 by Eric Snow (Miss 
Islington (bot)) in branch '3.7':
bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. (GH-5507)
https://github.com/python/cpython/commit/f33ecedcad5a001735fa4ded5d21caa2cbf27911


--

___
Python tracker 

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



[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x

2018-02-02 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
pull_requests:  -5339

___
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-02 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
pull_requests: +5341

___
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-02 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Nick, this is about better documenting the behavior of __get(set/del)attr__ in 
3.x it relations to AttributeError in a property.  I think I understand what it 
does and think the patch is correct.  Could you either review or suggest 
someone else who better understands core behavior like this?

--
components: +Interpreter Core
nosy: +ncoghlan
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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-02 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5340

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-02 Thread Eric Snow

Eric Snow  added the comment:

I've landed a PR that fixes all the memory leaks in the module.  It also fixes 
the 2 defects reported by coverity.  The only thing left here is to get the 
module building under Windows.

--

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-02 Thread Eric Snow

Eric Snow  added the comment:


New changeset 4e9da0d163731caa79811c723c703ee416c31826 by Eric Snow in branch 
'master':
bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. (#5507)
https://github.com/python/cpython/commit/4e9da0d163731caa79811c723c703ee416c31826


--

___
Python tracker 

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



[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x

2018-02-02 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
pull_requests: +5339

___
Python tracker 

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



[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-02-02 Thread Eric Snow

Change by Eric Snow :


--
pull_requests: +5338

___
Python tracker 

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



[issue32305] Namespace packages have inconsistent __file__ and __spec__.origin

2018-02-02 Thread Barry A. Warsaw

Change by Barry A. Warsaw :


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



[issue32303] Namespace packages have inconsistent __loader__ and __spec__.loader

2018-02-02 Thread Barry A. Warsaw

Change by Barry A. Warsaw :


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



[issue32303] Namespace packages have inconsistent __loader__ and __spec__.loader

2018-02-02 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:


New changeset a71397fb6603d0fe673acd7765c74699cd28fe7b by Barry Warsaw in 
branch '3.6':
[3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) (#5504)
https://github.com/python/cpython/commit/a71397fb6603d0fe673acd7765c74699cd28fe7b


--

___
Python tracker 

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



[issue32216] Document PEP 557 Data Classes (dataclasses module)

2018-02-02 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:

I'd be interested to help write the PR for this.

--
nosy: +Mariatta

___
Python tracker 

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



[issue16024] Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc

2018-02-02 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

Larry,

I've made a pull request for your patch.  It seemed like most of the original 
text was still in place, so I thought you might still want these changes.  You 
had also made changes to the What's New, but I didn't include those changes.

--
nosy: +csabella
versions: +Python 3.8 -Python 3.3

___
Python tracker 

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



[issue16024] Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc

2018-02-02 Thread Cheryl Sabella

Change by Cheryl Sabella :


--
pull_requests: +5337

___
Python tracker 

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



[issue32303] Namespace packages have inconsistent __loader__ and __spec__.loader

2018-02-02 Thread Barry A. Warsaw

Change by Barry A. Warsaw :


--
pull_requests: +5336

___
Python tracker 

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



[issue26855] android: add platform.android_ver()

2018-02-02 Thread pmpp

Change by pmpp :


--
nosy: +pmpp

___
Python tracker 

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



[issue32303] Namespace packages have inconsistent __loader__ and __spec__.loader

2018-02-02 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:


New changeset a23d30f64bd9c5655cfae7f359d4279c47f6cab3 by Barry Warsaw in 
branch '3.7':
bpo-32303 - Consistency fixes for namespace loaders (GH-5481) (#5503)
https://github.com/python/cpython/commit/a23d30f64bd9c5655cfae7f359d4279c47f6cab3


--

___
Python tracker 

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



[issue32754] feature request: asyncio.gather/wait cancel children on first exception

2018-02-02 Thread Yury Selivanov

Yury Selivanov  added the comment:

I think it's a good idea and I wanted to implement it by copying TaskGroups 
from curio in 3.7.  But then I saw Trio's nurseries and I have a few ideas 
about slightly different design inspired by both curio and Trio :)

I have some very WIP code that I plan to finish in a few weeks. I'll update 
this issue then.

--

___
Python tracker 

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



[issue32754] feature request: asyncio.gather/wait cancel children on first exception

2018-02-02 Thread Alexander Mohr

New submission from Alexander Mohr :

currently gather/wait allow you to return on the first exception and leave the 
children executing.

A very common use case that I have is of launching multiple tasks, and if any 
of them fail, then all should fail..otherwise the other tasks would continue 
running w/o anyone listening for the results.  To accomplish this I wrote a 
method like the following: 
https://gist.github.com/thehesiod/524a1f005d0f3fb61a8952f272d8709e.  I think it 
would be useful to many others as on optional perhaps a parameter to each of 
these methods.

What do you guys think?

--
components: asyncio
messages: 311527
nosy: asvetlov, thehesiod, yselivanov
priority: normal
severity: normal
status: open
title: feature request: asyncio.gather/wait cancel children on first exception
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



[issue32753] ssl.SSLError exceptions in test_poplib

2018-02-02 Thread Yury Selivanov

Change by Yury Selivanov :


--
nosy:  -yselivanov

___
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-02 Thread R. David Murray

Change by R. David Murray :


--
nosy: +r.david.murray

___
Python tracker 

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



[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-02 Thread Yury Selivanov

Yury Selivanov  added the comment:

Thank you, Bar!

Looking forward to see more contributions to asyncio from you!

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



[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-02 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 7e4cf8e95d2971ae0d5fb417152183070184293f by Yury Selivanov (Bar 
Harel) in branch '3.6':
[3.6] bpo-32734: Fix asyncio.Lock multiple acquire safety issue (GH-5466) 
(#5502)
https://github.com/python/cpython/commit/7e4cf8e95d2971ae0d5fb417152183070184293f


--

___
Python tracker 

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



[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-02 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 2b5937ec0ae88cd0b4cc0c8534f21c435ee94662 by Yury Selivanov (Miss 
Islington (bot)) in branch '3.7':
bpo-32734: Fix asyncio.Lock multiple acquire safety issue (GH-5466) (#5501)
https://github.com/python/cpython/commit/2b5937ec0ae88cd0b4cc0c8534f21c435ee94662


--

___
Python tracker 

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



[issue32423] The Windows SDK version 10.0.15063.0 was not found

2018-02-02 Thread William Woodall

William Woodall  added the comment:

I can confirm this bug using both VS 2015 and VS 2017 on Windows 10.

The patch provided by isuruf works for me too.

--
nosy: +wjwwood

___
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-02 Thread Yarko Tymciurak

Yarko Tymciurak  added the comment:

...also, my initial build (after inspecting git log) was from (as I usually do) 
master/HEAD;

To check that this was indeed from v3.7.0b1 release, I `distclean` and checked 
out the v3.7.0b1 tag, and rebuilt.   (Looks like same error / behavior).

--

___
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-02 Thread R. David Murray

Change by R. David Murray :


--
nosy: +christian.heimes

___
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-02 Thread Yarko Tymciurak

New submission from Yarko Tymciurak :

Just built v3.7.0b1, and have the following test hangs (see attached).

My build is on Ubuntu 16.04;  lsb_release -a output:

LSB Version:
core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description:Ubuntu 16.04.3 LTS
Release:16.04
Codename:   xenial

My "usual" config / build process:

$ make distclean
$ ./configure --enable-shared --enable-loadable-sqlite-extensions 
--with-system-ffi --with-ensurepip=upgrade --enable-optimizations
$ make -j

I have been building 3.7 weekly, from master, and I've never seen anything like 
this before.

--
components: asyncio
files: v3.7.0b1-test-failure.txt
messages: 311521
nosy: asvetlov, yarkot, yselivanov
priority: normal
severity: normal
status: open
title: ssl.SSLError exceptions in test_poplib
type: crash
versions: Python 3.7
Added file: https://bugs.python.org/file47421/v3.7.0b1-test-failure.txt

___
Python tracker 

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



[issue32752] no information about accessing typing.Generic type arguments

2018-02-02 Thread Paul Pinterits

New submission from Paul Pinterits :

The documentation of the typing module explains how to instantiate generic 
types, but there is no information about how to extract the type arguments from 
a generic type.

Example:

>>> list_of_ints = typing.List[int]
>>> 
>>> # how do we get  out of list_of_ints?
>>> list_of_ints.???


Through trial and error I've discovered list_of_ints.__args__, which *seems* to 
be what I'm looking for, but since it's never mentioned in the docs, it's 
unclear whether this __args__ attribute is an implementation detail or not.

Please document the official/intended way to extract type arguments from a 
Generic.

--
assignee: docs@python
components: Documentation
messages: 311520
nosy: Paul Pinterits, docs@python
priority: normal
severity: normal
status: open
title: no information about accessing typing.Generic type arguments
type: enhancement
versions: 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



[issue32614] Fix documentation examples of using re with escape sequences

2018-02-02 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
assignee: docs@python -> terry.reedy
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.6

___
Python tracker 

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



[issue32614] Fix documentation examples of using re with escape sequences

2018-02-02 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset fbf8e823c02ac1c93a48609cc74e439e19ccb426 by Terry Jan Reedy in 
branch '3.6':
 [3.6] bpo-32614: Modify re examples to use a raw string to prevent wa…  …rning 
(GH-5265) (GH-5500)
https://github.com/python/cpython/commit/fbf8e823c02ac1c93a48609cc74e439e19ccb426


--

___
Python tracker 

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



[issue13553] Tkinter Tk args and Gnome Shell application name

2018-02-02 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
versions: +Python 3.6, Python 3.8

___
Python tracker 

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



[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-02 Thread Bar Harel

Change by Bar Harel :


--
pull_requests: +5335

___
Python tracker 

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



[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-02 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5334

___
Python tracker 

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



[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-02 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 2f79c014931cbb23b08a7d16c534a3cc9607ae14 by Yury Selivanov (Bar 
Harel) in branch 'master':
bpo-32734: Fix asyncio.Lock multiple acquire safety issue (GH-5466)
https://github.com/python/cpython/commit/2f79c014931cbb23b08a7d16c534a3cc9607ae14


--
status: pending -> open

___
Python tracker 

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



[issue32614] Fix documentation examples of using re with escape sequences

2018-02-02 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset c7de1d7ca62e2b67b90d6c178e63453c03833b75 by Terry Jan Reedy (Miss 
Islington (bot)) in branch '3.7':
bpo-32614: Modify re examples to use a raw string to prevent warning (GH-5265) 
(#5499)
https://github.com/python/cpython/commit/c7de1d7ca62e2b67b90d6c178e63453c03833b75


--

___
Python tracker 

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



[issue32614] Fix documentation examples of using re with escape sequences

2018-02-02 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
pull_requests: +5333

___
Python tracker 

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



[issue32734] Asyncio Lock safety issue (unlimited acquire)

2018-02-02 Thread Bar Harel

Change by Bar Harel :


--
status: open -> pending

___
Python tracker 

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



[issue32614] Fix documentation examples of using re with escape sequences

2018-02-02 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5332

___
Python tracker 

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



[issue32614] Fix documentation examples of using re with escape sequences

2018-02-02 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset 66771422d0541289d0b1287bc3c28e8b5609f6b4 by Terry Jan Reedy 
(Cheryl Sabella) in branch 'master':
bpo-32614: Modify re examples to use a raw string to prevent warning (GH-5265)
https://github.com/python/cpython/commit/66771422d0541289d0b1287bc3c28e8b5609f6b4


--

___
Python tracker 

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



[issue32751] wait_for(future, ...) should wait for the future (even if a timeout occurs)

2018-02-02 Thread Yury Selivanov

Yury Selivanov  added the comment:

Looks like a bug.  Andrew, if you have time to look at this, please feel free 
to go ahead; I'm going to be unavailable till Feb 12 (so I can take a look 
myself after that).

--

___
Python tracker 

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



[issue30516] Documentation for datetime substract operation incorrect?

2018-02-02 Thread Cheryl Sabella

Change by Cheryl Sabella :


--
keywords: +easy
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



[issue31356] Add context manager to temporarily disable GC

2018-02-02 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Indeed if unit testing is the main use case, I don't really see the point of 
adding C code.  People can code a simple helper using 
`contextlib.contextmanager` in a couple of lines.

--

___
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-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

I concur with Yury in every point.

The idea looks good for three core developers, but I just don't understand 
this. This feature looks useless and misleading to me. It is not atomic and 
doesn't ensure anything, despite its name. If it will be added in the stdlib, 
there should be very good explanation of its purpose and limitations in the 
documentation. And I agree that unittest may be better place than gc if the 
purpose of it is testing.

--

___
Python tracker 

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



[issue32614] Fix documentation examples of using re with escape sequences

2018-02-02 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
nosy: +serhiy.storchaka
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



[issue31356] Add context manager to temporarily disable GC

2018-02-02 Thread Yury Selivanov

Yury Selivanov  added the comment:

> The idea which this issue represents is not rejected.  It is a good one, we 
> found a need for it during the dev sprint last September.

Well, not everybody thinks it is a good one.  I, for instance, don't think it's 
a good idea, so it is at least one "-1".  I saw Serhiy was unsure about this 
new feature too, so maybe there are two "-1"s; I don't know.  So I kindly 
ask(-ed) for it to be openly discussed on python-dev, instead of making a 
unilateral decision.

The problem with the current design is that GC can become enabled inside the 
'with' block at any time:

with gc.ensure_disabled():
# gc.is_enabled() might be True !

The GC can become enabled from another OS thread, as we have one GC per 
process.  Adding a locking mechanism might be tricky in terms of 
implementation, and risky in terms of allowing people to accidentally have a 
deadlock or something.  In short, I don't see any way to make this context 
manager to work reliably in CPython.

Therefore, I think that the best location for a helper like this would be some 
unittesting helpers collection, as it can work only under some very specific 
conditions.  The core 'gc' module is currently a collection of low-level 
primitives.  I think we need a very solid motivation to add a core GC function 
that works unreliably and is suitable only for unittesting (at best).  

Maybe I'm completely wrong here, in which case I would love to be proved wrong 
and not just ignored.

--

___
Python tracker 

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



[issue32303] Namespace packages have inconsistent __loader__ and __spec__.loader

2018-02-02 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5331

___
Python tracker 

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



[issue32303] Namespace packages have inconsistent __loader__ and __spec__.loader

2018-02-02 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:


New changeset bbbcf8693b876daae4469765aa62f8924f39a7d2 by Barry Warsaw in 
branch 'master':
bpo-32303 - Consistency fixes for namespace loaders (#5481)
https://github.com/python/cpython/commit/bbbcf8693b876daae4469765aa62f8924f39a7d2


--

___
Python tracker 

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



[issue32743] Typo in hamt.c comments

2018-02-02 Thread Dmitry Alimov

Dmitry Alimov  added the comment:

Fixed

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



[issue32751] wait_for(future, ...) should wait for the future (even if a timeout occurs)

2018-02-02 Thread Nathaniel Smith

New submission from Nathaniel Smith :

Currently, if you use asyncio.wait_for(future, timeout=) and the timeout 
expires, then it (a) cancels to the future, and then (b) returns. This is fine 
if the future is a Future, because Future.cancel is synchronous and completes 
immediately. But if the future is a Task, then Task.cancel merely requests 
cancellation, and it will complete later (or not). In particular, this means 
that wait_for(coro, ...) can return with the coroutine still running, which is 
surprising.

(Originally encountered by Alex Grönholm, who was using code like

async with aclosing(agen):
await wait_for(agen.asend(...), timeout=...)

and then confused about why the call to agen.aclose was raising an error 
complaining that agen.asend was still running. Currently this requires an 
async_generator based async generator to trigger; with a native async 
generator, the problem is masked by bpo-32526.)

--
components: asyncio
messages: 311509
nosy: asvetlov, giampaolo.rodola, njs, yselivanov
priority: normal
severity: normal
status: open
title: wait_for(future, ...) should wait for the future (even if a timeout 
occurs)
versions: 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



[issue31356] Add context manager to temporarily disable GC

2018-02-02 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

The idea which this issue represents is not rejected.  It is a good one, we 
found a need for it during the dev sprint last September.

--
priority: release blocker -> normal
resolution: rejected -> 
status: closed -> open
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



[issue31356] Add context manager to temporarily disable GC

2018-02-02 Thread Gregory P. Smith

Change by Gregory P. Smith :


--
stage: resolved -> needs patch

___
Python tracker 

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



[issue32750] lib2to3 log_error method behavior is inconsitent with documentation

2018-02-02 Thread Nick Smith

New submission from Nick Smith :

The log_error method in refactor.RefactoringTool raises the exception:

def log_error(self, msg, *args, **kwds):
"""Called when an error occurs."""
raise

but every usage of it implies that it does not, e.g:

def refactor_string(self, data, name):
"""Refactor a given input string.
Args:
data: a string holding the code to be refactored.
name: a human-readable name for use in error/log messages.
Returns:
An AST corresponding to the refactored input stream; None if
there were errors during the parse.
"""
# [..]
try:
tree = self.driver.parse_string(data)
except Exception as err:
self.log_error("Can't parse %s: %s: %s",
   name, err.__class__.__name__, err)
return
finally:
# [..]

This is the only explicit conflict I found in the documentation. From looking 
at the refactor_string function, it seems it should never raise on parse 
errors. Other uses of it are followed immediately by a return.

I'd like to see log_error only log the exception and continue.

--
components: 2to3 (2.x to 3.x conversion tool)
messages: 311507
nosy: soupytwist
priority: normal
severity: normal
status: open
title: lib2to3 log_error method behavior is inconsitent with documentation
type: behavior
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



[issue32394] socket lib beahavior change in 3.6.4

2018-02-02 Thread Kamil

Kamil  added the comment:

I am sorry, this is the right version
CHANGE:
#ifdef  TCP_KEEPCNT
PyModule_AddIntMacro(m, TCP_KEEPCNT);
#endif

TO:
#ifdef  TCP_KEEPCNT
#ifdef MS_WINDOWS
#if defined(_MSC_VER) && _MSC_VER >= 1800
//on Windows avaible only from Windows 10 1703 (Build:15063 )
 if (IsWindows10CreatorsOrGreater()) {
 PyModule_AddIntMacro(m, TCP_KEEPCNT);
 }
#else
 PyModule_AddIntMacro(m, TCP_KEEPCNT); 
#endif
#endif

AND CHANGE:
#ifdef  TCP_FASTOPEN
PyModule_AddIntMacro(m, TCP_FASTOPEN);
#endif

TO:
#ifdef  TCP_FASTOPEN
#ifdef MS_WINDOWS
#if defined(_MSC_VER) && _MSC_VER >= 1800
//on Windows avaible only from Windows 10 1607(Build: 14393)
 if (IsWindows10AnniversaryOrGreater()) {
 PyModule_AddIntMacro(m, TCP_FASTOPEN);
 }
#else
 PyModule_AddIntMacro(m, TCP_FASTOPEN);
#endif 
#endif

--

___
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-02 Thread Kamil

Kamil  added the comment:

With сorrect comments:
CHANGE:
#ifdef  TCP_KEEPCNT
PyModule_AddIntMacro(m, TCP_KEEPCNT);
#endif

TO:
#ifdef  TCP_KEEPCNT
#if defined(_MSC_VER) && _MSC_VER >= 1800
if (IsWindows10CreatorsOrGreater()) { //Windows 10 1703(Build:15063 )
PyModule_AddIntMacro(m, TCP_KEEPCNT);
}
#endif
#endif

AND CHANGE:
#ifdef  TCP_FASTOPEN
PyModule_AddIntMacro(m, TCP_FASTOPEN);
#endif

TO:
#ifdef  TCP_FASTOPEN
#if defined(_MSC_VER) && _MSC_VER >= 1800
if (IsWindows10AnniversaryOrGreater()) { //Windows 10 1607(Build: 14393)
PyModule_AddIntMacro(m, TCP_FASTOPEN);
}
#endif 
#endif

--

___
Python tracker 

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



[issue32674] minor documentation fix for '__import__'

2018-02-02 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:

Thanks!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 2.7, Python 3.6, Python 3.8

___
Python tracker 

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



[issue32674] minor documentation fix for '__import__'

2018-02-02 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:


New changeset 9b7b3a64560269188fcb43445becc5aacb4de2dc by Mariatta in branch 
'2.7':
bpo-32674: Improve the docstring for __import__ (GH-5339) (GH-5494)
https://github.com/python/cpython/commit/9b7b3a64560269188fcb43445becc5aacb4de2dc


--

___
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-02 Thread Kamil

Kamil  added the comment:

I suggest inserting the following code into socketmodule.c:

CHANGE:
#ifdef  TCP_KEEPCNT
PyModule_AddIntMacro(m, TCP_KEEPCNT);
#endif

TO:
#ifdef  TCP_KEEPCNT
#if defined(_MSC_VER) && _MSC_VER >= 1800
// Windows 10 1703 (15063)
if (IsWindows10CreatorsOrGreater()) {
PyModule_AddIntMacro(m, TCP_KEEPCNT);
}
#endif
#endif

AND CHANGE:
#ifdef  TCP_FASTOPEN
PyModule_AddIntMacro(m, TCP_FASTOPEN);
#endif

TO:
#ifdef  TCP_FASTOPEN
#if defined(_MSC_VER) && _MSC_VER >= 1800
// Windows 10 1703 (Build: 14393)
if (IsWindows10AnniversaryOrGreater()) {
PyModule_AddIntMacro(m, TCP_FASTOPEN);
}
#endif 
#endif

--

___
Python tracker 

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



[issue32748] Improve _asyncio.TaskStepMethWrapper and TaskWakeupMethWrapper reprs

2018-02-02 Thread Andrew Svetlov

Change by Andrew Svetlov :


--
resolution:  -> out of date
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



[issue32748] Improve _asyncio.TaskStepMethWrapper and TaskWakeupMethWrapper reprs

2018-02-02 Thread Andrew Svetlov

Andrew Svetlov  added the comment:

False alarm, sorry.

--

___
Python tracker 

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



[issue32748] Improve _asyncio.TaskStepMethWrapper and TaskWakeupMethWrapper reprs

2018-02-02 Thread Yury Selivanov

Yury Selivanov  added the comment:

I think I've fixed that.  Can you give me a script to repro?

--

___
Python tracker 

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



[issue32216] Document PEP 557 Data Classes (dataclasses module)

2018-02-02 Thread Ned Deily

Ned Deily  added the comment:

Marking this as a "deferred blocker" for exiting the beta phase.

--
nosy: +ned.deily
priority: high -> deferred blocker
stage:  -> needs patch
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



[issue32749] Remove dbm.dumb behavior deprecated in 3.6

2018-02-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +5330
stage:  -> patch review

___
Python tracker 

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



[issue32216] Document PEP 557 Data Classes (dataclasses module)

2018-02-02 Thread Eric V. Smith

Eric V. Smith  added the comment:

I was hoping a volunteer would step up to write the documentation, as it's 
definitely not my forte.

Raymond has also volunteered to help.

--

___
Python tracker 

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



[issue32749] Remove dbm.dumb behavior deprecated in 3.6

2018-02-02 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

Some behavior of dbm.dumb databases which was different from the behavior of 
other dbm databases was deprecated in 3.6 (issue21708). Now it is a time to 
remove it.

--
components: Library (Lib)
messages: 311497
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Remove dbm.dumb behavior deprecated in 3.6
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



[issue32216] Document PEP 557 Data Classes (dataclasses module)

2018-02-02 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

Do you have an ETA for the documentation PR?  I would be happy to review it.

--
nosy: +barry

___
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-02 Thread Yury Selivanov

Change by Yury Selivanov :


--
resolution:  -> rejected
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



[issue31356] Add context manager to temporarily disable GC

2018-02-02 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 29fd9eae432a54c963262e895b46f081f238539a by Yury Selivanov (Miss 
Islington (bot)) in branch '3.7':
Revert "bpo-31356: Add context manager to temporarily disable GC GH-5495 (#5496)
https://github.com/python/cpython/commit/29fd9eae432a54c963262e895b46f081f238539a


--

___
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-02 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5329

___
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-02 Thread Yury Selivanov

Yury Selivanov  added the comment:


New changeset 383b32fe108ea627699cc9c644fba5f8bae95d73 by Yury Selivanov in 
branch 'master':
Revert "bpo-31356: Add context manager to temporarily disable GC GH-5495
https://github.com/python/cpython/commit/383b32fe108ea627699cc9c644fba5f8bae95d73


--

___
Python tracker 

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



[issue32137] Stack overflow in repr of deeply nested dicts

2018-02-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


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



[issue32137] Stack overflow in repr of deeply nested dicts

2018-02-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset b7a2c17be8411bc4c7a2babdc650074c14204aa8 by Serhiy Storchaka in 
branch '2.7':
[2.7] bpo-32137: The repr of deeply nested dict now raises a RuntimeError 
(GH-4570) (#5493)
https://github.com/python/cpython/commit/b7a2c17be8411bc4c7a2babdc650074c14204aa8


--

___
Python tracker 

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



[issue20285] Improve object.__doc__ and help(object) output

2018-02-02 Thread R. David Murray

R. David Murray  added the comment:

If you want to be precise you could say "The last class in every __mro__ list."

--
nosy: +r.david.murray

___
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-02 Thread Yury Selivanov

Yury Selivanov  added the comment:

Since I'm going to be unavailable for the next 10 days, and I don't want this 
to be accidentally forgotten, I'll do the revert myself.  Opened a PR for that.

--
assignee: rhettinger -> 

___
Python tracker 

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



[issue32674] minor documentation fix for '__import__'

2018-02-02 Thread Mariatta Wijaya

Mariatta Wijaya  added the comment:


New changeset f61951b10cc08d3926a3ebaacc154d4149150ef4 by Mariatta (Miss 
Islington (bot)) in branch '3.6':
bpo-32674: Improve the docstring for __import__ (GH-5339) (GH-5489)
https://github.com/python/cpython/commit/f61951b10cc08d3926a3ebaacc154d4149150ef4


--

___
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-02 Thread Yury Selivanov

Change by Yury Selivanov :


--
pull_requests: +5328

___
Python tracker 

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



[issue32674] minor documentation fix for '__import__'

2018-02-02 Thread Mariatta Wijaya

Change by Mariatta Wijaya :


--
pull_requests: +5327

___
Python tracker 

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



[issue32337] Dict order is now guaranteed, so add tests and doc for it

2018-02-02 Thread Xiang Zhang

Xiang Zhang  added the comment:

This part needs editing too, the text and example. 
https://docs.python.org/3/library/stdtypes.html#dictionary-view-objects

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue32137] Stack overflow in repr of deeply nested dicts

2018-02-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
pull_requests: +5326

___
Python tracker 

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



[issue31804] multiprocessing calls flush on sys.stdout at exit even if it is None (pythonw)

2018-02-02 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +5325
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



[issue32137] Stack overflow in repr of deeply nested dicts

2018-02-02 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

The issue seems somewhat contrived but the fix looks fine to me.

--
assignee: rhettinger -> 

___
Python tracker 

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



[issue30449] Improve __slots__ datamodel documentation

2018-02-02 Thread Raymond Hettinger

Change by Raymond Hettinger :


--
assignee: 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-02 Thread Ma Lin

Ma Lin  added the comment:

Glad to see PR 5468 not merged, I found it makes socket.py complicated.

Now I'm inclined to patch the code in PyInit__socket(void) of socketmodule.c
https://github.com/python/cpython/blob/3.6/Modules/socketmodule.c#L6504

There already has a MS-Windows version checking
https://github.com/python/cpython/blob/3.6/Modules/socketmodule.c#L6511

In there, we can use GetVersionEx instead of GetVersion to get BuildNumber, 
then delete unusable opinions.

(I don't have enough skill to modify .c code)

--

___
Python tracker 

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



[issue32748] Improve _asyncio.TaskStepMethWrapper and TaskWakeupMethWrapper reprs

2018-02-02 Thread Andrew Svetlov

New submission from Andrew Svetlov :

Currently both helper classes have no custom tp_repr slot, it leads to 
autogenerated  values.

Both helpers are private but in debug mode asyncio loop reports about slow 
callbacks, the message doesn't point on executed coroutine -- it just prints 
'Executing  took 0.203 seconds'.

The only way to figure out what coroutine is slow is monkey-patching CTask 
implementation back to PyTask usage.
Sure, the method is too obscure for newbies.

--
components: asyncio
messages: 311486
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Improve _asyncio.TaskStepMethWrapper and TaskWakeupMethWrapper reprs
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



[issue32747] remove trailing spaces in docstring

2018-02-02 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


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



[issue32747] remove trailing spaces in docstring

2018-02-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset aa0735f597b072c0eb00404c4d7df359ddc26755 by Serhiy Storchaka 
(oldk) in branch 'master':
bpo-32747: Remove trailing spaces in docstrings. (GH-5491)
https://github.com/python/cpython/commit/aa0735f597b072c0eb00404c4d7df359ddc26755


--
nosy: +serhiy.storchaka

___
Python tracker 

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