[issue39112] Misleading documentation for tuple

2019-12-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe that this is a duplicate issue. As noted before, filter, map, reversed, and zip are classes, but they return iterators and are documented differently. -- nosy: +terry.reedy versions: -Python 3.5, Python 3.6

[issue39111] Misleading documentation for NotImplemented

2019-12-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue19083] IDNA prefix should be case insensitive

2019-12-27 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.4 ___ Python tracker ___

[issue19083] IDNA prefix should be case insensitive

2019-12-27 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +17170 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17726 ___ Python tracker ___

[issue39145] Innocuous parent class changes multiple inheritance MRO

2019-12-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: Whether this proposed change is worth a PEP is a value judgement, but whether it will need a PEP is, I think, a fact. It is a backwards incompatible change (it will change the inheritance order of classes) potentially breaking people's code. Its not a

[issue39145] Innocuous parent class changes multiple inheritance MRO

2019-12-27 Thread Cyker Way
Cyker Way added the comment: a typo: ...at this time we know we can extract X in (f1') because X is NOT in any tail... Missed the "NOT" in the previous text. -- ___ Python tracker

[issue39145] Innocuous parent class changes multiple inheritance MRO

2019-12-27 Thread Cyker Way
Cyker Way added the comment: Thanks for reply. It's not about the Python's implementation of C3 but C3 itself being used as the MRO algorithm in Python. It bites when you remove an independent interface from your class definition and its method calls become something else. I think I can

[issue39136] Typos in whatsnew file and docs

2019-12-27 Thread Gurupad Hegde
Gurupad Hegde added the comment: Hi, I am a new contributor here. Have created the below pull request. https://github.com/python/cpython/pull/17720 Please let me know if i have to do anything else from my end. -- nosy: +gurupad93 ___ Python

[issue38731] bad input crashes py_compile library

2019-12-27 Thread miss-islington
miss-islington added the comment: New changeset 04c1efe5acc89b6f3f2c208604a1c35641e8a380 by Miss Islington (bot) in branch '3.8': bpo-38731: Fix function signature of quiet in docs (GH-17719) https://github.com/python/cpython/commit/04c1efe5acc89b6f3f2c208604a1c35641e8a380 -- nosy:

[issue39145] Innocuous parent class changes multiple inheritance MRO

2019-12-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: Have you read the description of how the MRO is calculated? It's a standard algorithm. So long as the result matches the C3 linearisation algorithm, then it's not a bug. https://en.wikipedia.org/wiki/C3_linearization

[issue38731] bad input crashes py_compile library

2019-12-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 98f0f04b5016e63561d313a3446b7b58f2c12611 by Pablo Galindo (Batuhan Taşkaya) in branch 'master': bpo-38731: Fix function signature of quiet in docs (GH-17719)

[issue38731] bad input crashes py_compile library

2019-12-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +17169 pull_request: https://github.com/python/cpython/pull/17725 ___ Python tracker ___

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread miss-islington
miss-islington added the comment: New changeset d7aa3d26845be77ebca1b3954830aace6ef31e58 by Miss Islington (bot) in branch '3.7': bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread miss-islington
miss-islington added the comment: New changeset 2786fdec79c35b4a68afea2bbbedbba3b6eb2269 by Miss Islington (bot) in branch '3.8': bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +17168 pull_request: https://github.com/python/cpython/pull/17723 ___ Python tracker ___

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +17167 pull_request: https://github.com/python/cpython/pull/17722 ___ Python tracker ___

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ef7eaafc9d2e370cf79b3674e56f643bbfe239e2 by Pablo Galindo (Anthony Shaw) in branch 'master': bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)

[issue39145] Innocuous parent class changes multiple inheritance MRO

2019-12-27 Thread Cyker Way
New submission from Cyker Way : With an inheritance graph like this: A C B D (X) A E Adding or removing class X in E's parents will change the order of A and C in E's MRO: EBDAC vs EBDCXA. I couldn't imagine what would be the "perfect"

[issue39090] Document various options for getting the absolute path from pathlib.Path objects

2019-12-27 Thread Josh Holland
Change by Josh Holland : -- nosy: +anowlcalledjosh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39142] logging.config.dictConfig will convert namedtuple to ConvertingTuple

2019-12-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Can you please attach a sample script with the handler used to illustrate the issue? -- nosy: +vinay.sajip, xtreak ___ Python tracker

[issue37542] UDP sendto() sends duplicate packets

2019-12-27 Thread Alex Grönholm
Alex Grönholm added the comment: Can you reproduce this on localhost, or over Ethernet while only listening on that specific interface? If not, then likely this is just a Wireshark artifact. Failing that, you should construct a script that allows others to try to reproduce the effect.

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +17166 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17721 ___ Python tracker ___

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread anthony shaw
anthony shaw added the comment: Also, make tags will reset the "tags" file, whereas, make TAGS will not. If you ran "make tags" then "make TAGS" you will have a corrupt etags file -- ___ Python tracker

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread anthony shaw
New submission from anthony shaw : make tags will include - Modules/_ctypes/ where as make TAGS will not. Also, neither include the Python source files for the standard library, which both etags and ctags are capable of handling. PR to follow -- components: Build messages: 358917

[issue38731] bad input crashes py_compile library

2019-12-27 Thread Batuhan
Change by Batuhan : -- pull_requests: -17163 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22640] Add silent mode for py_compile

2019-12-27 Thread Batuhan
Change by Batuhan : -- pull_requests: +17165 pull_request: https://github.com/python/cpython/pull/17719 ___ Python tracker ___ ___

[issue39136] Typos in whatsnew file and docs

2019-12-27 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +17164 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17720 ___ Python tracker ___

[issue38731] bad input crashes py_compile library

2019-12-27 Thread Batuhan
Change by Batuhan : -- pull_requests: +17163 pull_request: https://github.com/python/cpython/pull/17719 ___ Python tracker ___ ___

[issue39143] Implementing sub-generation steps in the gc

2019-12-27 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : While I was re-reading The Garbage Collection Handbook [Moss, Hosking, Jones], I have been doing some benchmarks of different aspects of our garbage collection and taking statistics using the pyperformance suite as long as several "production"

[issue33944] Deprecate and remove pth files

2019-12-27 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: No. You can't put an usercustomize in a wheel. -- ___ Python tracker ___ ___

[issue39117] Performance regression for making bound methods

2019-12-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39142] logging.config.dictConfig will convert namedtuple to ConvertingTuple

2019-12-27 Thread Henrique
New submission from Henrique : While passing { "version": 1, "disable_existing_loggers": False, "formatters": { "verbose": {"format": "%(levelname)s %(asctime)s %(module)s %(message)s"} }, "handlers": { "stackdriver": { "class":

[issue39082] AsyncMock is unable to correctly patch static or class methods

2019-12-27 Thread Aniket Panse
Change by Aniket Panse : -- keywords: +patch pull_requests: +17162 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17717 ___ Python tracker ___

[issue39075] types.SimpleNamespace should preserve attribute ordering (?)

2019-12-27 Thread Eric Snow
Eric Snow added the comment: > IMHO, dropping the sort should be a default behavior. If some user need > this feature, maybe we could supply a param to open the sort function or not? Consider opening a separate issue (or start a thread on python-ideas) about adding a more sophisticated

[issue39076] Use types.SimpleNamespace for argparse.Namespace

2019-12-27 Thread Eric Snow
Eric Snow added the comment: Anyway, this probably isn't a discussion worth extending much further. I don't think it's important enough. :) So if you have reservations about this then feel free to close the issue. -- ___ Python tracker

[issue39076] Use types.SimpleNamespace for argparse.Namespace

2019-12-27 Thread Eric Snow
Eric Snow added the comment: Sorry if there was any confusion. I didn't mean to suggest we get rid of argparse.Namespace (in favor of SimpleNamespace). Rather, the former would subclass the latter. > * types.SimpleNamespace() sorts attributes, so this would get in the way of > issue

[issue35143] `from __future__ import annotations` has no effect inside `ast.parse`

2019-12-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I don't think this is a bug. Technically the 'from __future__ import annotations' is a compiler option, not an AST one. Also, the flag says that "annotations become strings at runtime" and at the point, we have an AST is not still runtime. The

[issue39141] IDLE Clear function returns 256 on Mac OS Catalina

2019-12-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26219] implement per-opcode cache in ceval

2019-12-27 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38671] pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not exist

2019-12-27 Thread Tzu-ping Chung
Change by Tzu-ping Chung : -- keywords: +patch pull_requests: +17161 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17716 ___ Python tracker ___

[issue33944] Deprecate and remove pth files

2019-12-27 Thread Michel Desmoulin
Michel Desmoulin added the comment: Can usercustomize.py be used as an alternative to "*.pth" execution magic ? -- nosy: +Michel Desmoulin ___ Python tracker ___

[issue39141] IDLE Clear function returns 256 on Mac OS Catalina

2019-12-27 Thread David Turner
New submission from David Turner : Trying to set up shortcut function to clear screen but its not working as expected on my Mac OS Catalina -- below is txt from idle import os >>> cls= lambda: os.system('clear') >>> cls() 256 -- messages: 358908 nosy: twiste...@gmail.com priority:

[issue35143] `from __future__ import annotations` has no effect inside `ast.parse`

2019-12-27 Thread Batuhan
Batuhan added the comment: > Having a real "ast.unparse" would be better however. It seems that the > building blocks are all there, just not in that form. Now we have that :) https://docs.python.org/3.9/whatsnew/3.9.html#improved-modules -- ___

[issue39032] wait_for and Condition.wait still not playing nicely

2019-12-27 Thread Antonin Rousset
Change by Antonin Rousset : -- nosy: +Antonin Rousset ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39134] can't construct dataclass as ABC (or runtime check as data protocol)

2019-12-27 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks. Can you be specific about “modern libraries”? Please clarify your use cases. -- ___ Python tracker ___

[issue38131] compile(mode='eval') uninformative error message

2019-12-27 Thread Batuhan
Change by Batuhan : -- components: +Interpreter Core -Library (Lib) nosy: +BTaskaya versions: +Python 3.9 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue38131] compile(mode='eval') uninformative error message

2019-12-27 Thread Batuhan
Batuhan added the comment: with PR 17715 >>> import ast >>> expr_without_lineno_but_ok = >>> ast.Expression(body=ast.BinOp(left=ast.Num(n=2), right=ast.Num(n=2), >>> op=ast.Add())) >>> expr_with_lineno_but_with_wrong_body = >>> ast.Expression(body=[ast.BinOp(left=ast.Num(n=2),

[issue38131] compile(mode='eval') uninformative error message

2019-12-27 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +17160 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17715 ___ Python tracker ___

[issue33165] Add stacklevel parameter to logging APIs

2019-12-27 Thread Evandro Coan
Change by Evandro Coan : -- pull_requests: +17159 pull_request: https://github.com/python/cpython/pull/17714 ___ Python tracker ___

[issue39134] can't construct dataclass as ABC (or runtime check as data protocol)

2019-12-27 Thread Alexander Hirner
Alexander Hirner added the comment: Pardon my sloppiness. 1. That should have been PEP 544. The last point referred to the notion of data protocols [0]. 2. I think solving this issue for dataclasses would ensure better composition with modern libraries and other idioms like Protocol and