[issue32621] Problem of consistence in collection.abc documentation

2018-01-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue32621] Problem of consistence in collection.abc documentation

2018-01-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> docs@python components: +Documentation, Library (Lib) nosy: +docs@python stage: -> needs patch ___ Python tracker ___ __

[issue32683] isinstance is calling ob.__getattribute__ as a fallback instead of object.__class__.__get__

2018-01-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: Dan, I don't understand what you think the code snippet shows: you're calling isclass on an object which *actually is a class* and show that it returns True. What did you expect it to return? How does the code snippet you give demonstrate a problem? You say

[issue32626] Subscript unpacking raises SyntaxError

2018-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tuples often need parentheses when embedded in expressions. So often that beginners often think that they are required. I believe this should be closed as 'not a bug'. I nosied the two authors of the implementation for their opinion. -- nosy: +Jos

[issue32626] Subscript unpacking raises SyntaxError

2018-01-26 Thread Ben Burrill
Ben Burrill added the comment: Yeah, but in this case, you don't need parentheses unless you use unpacking. That is unexpected behavior. -- ___ Python tracker ___ ___

[issue32678] Lazy import ast in inspect

2018-01-26 Thread INADA Naoki
INADA Naoki added the comment: New changeset 37420deb80dcf0fc41a728838b0340b93ca01d90 by INADA Naoki in branch 'master': bpo-32678: inspect: Import ast lazily (GH-5344) https://github.com/python/cpython/commit/37420deb80dcf0fc41a728838b0340b93ca01d90 -- _

[issue32678] Lazy import ast in inspect

2018-01-26 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue32668] deepcopy() fails on ArgumentParser instances

2018-01-26 Thread Nitish
Nitish added the comment: This seems to have been fixed in the latest master. Commit I tested: 37420deb80dcf0fc41a728838b0340b93ca01d90 -- nosy: +nitishch ___ Python tracker _

[issue31368] Support asynchronous, non-blocking buffered reads (RWF_NONBLOCK)

2018-01-26 Thread STINNER Victor
STINNER Victor added the comment: I set the priority to release blocker to make sure that I don't forget to merge the PR before Python 3.7b1 (next monday?). The PR is *almost* ready, remaining issues are mostly related to documentation and coding style. -- priority: normal -> release

[issue31368] Support asynchronous, non-blocking buffered reads (RWF_NONBLOCK)

2018-01-26 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou: "In any case, I think this would take the form of new low-level calls in the posix module, i.e. add thin wrappers around the new system / libc calls." "new system / libc calls"... well, preadv() is available on FreeBSD since FreeBSD 6 :-) And

[issue31368] Add os.preadv() and os.pwritev()

2018-01-26 Thread STINNER Victor
Change by STINNER Victor : -- title: Support asynchronous, non-blocking buffered reads (RWF_NONBLOCK) -> Add os.preadv() and os.pwritev() ___ Python tracker ___ ___

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-26 Thread Eric V. Smith
Eric V. Smith added the comment: I apologize for the length of this, but I want to be as precise as possible. I've no doubt made some mistakes, so corrections and discussion are welcomed. I'm adding the commented text at the end of this message to dataclasses.py. I'm repeating it here for disc

[issue31368] Add os.preadv() and os.pwritev()

2018-01-26 Thread STINNER Victor
STINNER Victor added the comment: FYI in 2013 I proposed to use writev() in the io module, but it was inefficient: bpo-17655. -- ___ Python tracker ___ ___

[issue32304] Upload failed (400): Digests do not match on .tar.gz ending with x0d binary code

2018-01-26 Thread Éric Araujo
Éric Araujo added the comment: New changeset 995c60d2656c022359aac3fe713d8464c8db5716 by Éric Araujo (Bo Bayles) in branch '3.6': [3.6] bpo-32304: Fix distutils upload for tar files ending with b'\r' (GH-5264) (GH-5330) https://github.com/python/cpython/commit/995c60d2656c022359aac3fe713d8464

[issue27505] Missing documentation for setting module __class__ attribute

2018-01-26 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 85527cf50a9a4eecaca4022f7c6cb9e0bae1fa5f by Nick Coghlan (Cheryl Sabella) in branch 'master': bpo-27505: Add change notes in module attribute docs (GH-5320) https://github.com/python/cpython/commit/85527cf50a9a4eecaca4022f7c6cb9e0bae1fa5f ---

[issue27505] Missing documentation for setting module __class__ attribute

2018-01-26 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 8f68cb7db37322cfeeb8338e78474e5f25d930c5 by Nick Coghlan (Cheryl Sabella) in branch '3.6': [3.6] bpo-27505: Retrofit module __class__ documentation from 3.7 (GH-5321) https://github.com/python/cpython/commit/8f68cb7db37322cfeeb8338e78474e5f25d930c5

[issue27505] Missing documentation for setting module __class__ attribute

2018-01-26 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the PRs! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-26 Thread Nick Coghlan
Nick Coghlan added the comment: Eric's current proposal sounds sensible to me, but I'll note that if we deem it necessary, the code that implicitly sets `__hash__ = None` to override object.__hash__ when __eq__ is defined could also set some other marker to make it more explicit that that hap

[issue32664] Connector "|" missing between ImportError and LookupError

2018-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Agreed, like there is a bar between NameError and OSError. The 2.7 version does not have the problem. -- nosy: +terry.reedy ___ Python tracker __

[issue32664] Connector "|" missing between ImportError and LookupError

2018-01-26 Thread KINEBUCHI Tomohiko
Change by KINEBUCHI Tomohiko : -- keywords: +patch pull_requests: +5201 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue32664] Connector "|" missing between ImportError and LookupError

2018-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR-1173 fixed this for 3.7, but it was not backported then. I added a comment there. -- keywords: -patch stage: patch review -> backport needed versions: -Python 3.7 ___ Python tracker

[issue32677] Add.isascii() to str, bytes and bytearray

2018-01-26 Thread INADA Naoki
INADA Naoki added the comment: New changeset a49ac9902903a798fab4970ccf563c531199c3f8 by INADA Naoki in branch 'master': bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342) https://github.com/python/cpython/commit/a49ac9902903a798fab4970ccf563c531199c3f8 -- _

[issue32644] unittest.mock.call len() error

2018-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please either upload or include in a post a minimal testcase that reproduces the problem. We can neither debug the problem or know if we fix it without one. -- nosy: +michael.foord, terry.reedy ___ Python tracker

[issue32645] test_asyncio: TLS tests fail on "x86 Windows7" buildbot

2018-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I ran f:\dev\3x>python -m test -j5 test_asyncio test_asyncio test_asyncio test_asyncio test_asyncio on fresh Win10 build and got ... 0:01:02 [5/5] test_asyncio passed (62 sec) F:\dev\3x\lib\asyncio\selector_events.py:648: ResourceWarning: unclosed transport <

[issue32666] Valgrind documentation seems to need updating

2018-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Christian or Brett, do either of you know who maintains the Valgrind stuff? There is no listing in the Expert's index. -- nosy: +brett.cannon, christian.heimes, terry.reedy ___ Python tracker

[issue32677] Add.isascii() to str, bytes and bytearray

2018-01-26 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +5202 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-01-26 Thread Марк Коренберг
New submission from Марк Коренберг : Proof: import asyncio async def test(): while True: print('sleeping 1') await asyncio.gather(asyncio.sleep(1), return_exceptions=True) async def amain(): print('creating task') qwe = asyncio.Task(test()) prin

[issue32668] deepcopy() fails on ArgumentParser instances

2018-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hi, you seem to be in luck, regardless of version. Python 3.7.0a4+ (heads/master:a49ac99029, Jan 27 2018, 00:11:50) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import argparse >>> from copy im

[issue26219] implement per-opcode cache in ceval

2018-01-26 Thread Nick Coghlan
Nick Coghlan added the comment: With the 3.7 beta deadline just around the corner, 3.8 will be the next opportunity to reconsider this idea. -- versions: +Python 3.8 -Python 3.6 ___ Python tracker __

[issue32684] asyncio.gather(..., return_exceptions=True) swallows cancellation

2018-01-26 Thread R. David Murray
R. David Murray added the comment: See also issue 26923, but I think this problem is different. -- nosy: +r.david.murray ___ Python tracker ___

<    1   2