[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-11 Thread Ramesh Sahoo
Ramesh Sahoo added the comment: Thank Steven for correcting and guiding me. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41523] functools.cached_property does not satisfy the property check

2020-08-11 Thread William Pickard
William Pickard added the comment: In the lru_cache example, I think property is using the result of 'lru_cache(c)', which in turns returns a property instance, not a subtype instance. -- nosy: +WildCard65 ___ Python tracker

[issue41475] Make __future__.annotations default 3.10 in What's New 3.7

2020-08-11 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5de00f63d47b5aa1714ad2d88772ad55b10feea0 by Miss Islington (bot) in branch '3.9': bpo-41475: Fix note in "What's new in 3.7" (GH-21733) (#21832) https://github.com/python/cpython/commit/5de00f63d47b5aa1714ad2d88772ad55b10feea0 --

[issue41523] functools.cached_property does not satisfy the property check

2020-08-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, cached_property is a completely different class. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue37296] pdb next vs __next__

2020-08-11 Thread Irit Katriel
Irit Katriel added the comment: Do you mean the python version? (Pdb) import sys (Pdb) sys.version '3.10.0a0 ' -- nosy: +iritkatriel ___ Python tracker ___

[issue41523] functools.cached_property does not satisfy the property check

2020-08-11 Thread Bernát Gábor
Bernát Gábor added the comment: I think they're implemented differently and have slightly different semantics, but they're equal from a user point of view most of the time 樂 -- nosy: +Bernát Gábor ___ Python tracker

[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-11 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: -Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41522] IDLE: configdialog tab icons

2020-08-11 Thread E. Paine
New submission from E. Paine : Currently, the tabs on the configdialog's Notebook only have a text description. I propose we add icons to the tabs to make them a little more colourful, new-user-friendly, etc. I have drafted a version which uses icons found in the Public Domain (I can

[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-11 Thread Edward K Ream
Edward K Ream added the comment: You're welcome. It was a pleasure working with you all on this issue. I enjoyed learning the PR workflow, and I enjoyed the discussion of the merits. One last comment. Like everything in life, links and their implied endorsements are provisional. If a link

[issue33786] @asynccontextmanager doesn't work well with async generators

2020-08-11 Thread Joshua Oreman
Joshua Oreman added the comment: This doesn't appear to have been backported to 3.7, even though it's in 3.6.6 and 3.8.0a0. -- nosy: +Joshua Oreman, lukasz.langa ___ Python tracker

[issue41523] functools.cached_property does not satisfy the property check

2020-08-11 Thread Bernat Gabor
Bernat Gabor added the comment: I understand under the hood they're differenet, however I think cached_property wanted to be a shorter/better version of @property@lru_cache which does passes this check. Tools expecting properties to pass that check now need to extend their check... and

[issue41523] functools.cached_property does not satisfy the property check

2020-08-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > They are both descriptors, but cached_property is not a data descriptor. I think this is one of the key reasons this should not return "True" for isinstance(A.b, property). Also, cached_property does not allow you to implement a setter or a

[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-11 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset d1d6a1c6abf76b27c247ead8a8872011db77cf58 by Guido van Rossum in branch '3.9': [3.9] bpo-41504: Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773) (GH-21830)

[issue40994] Very confusing documenation for abc.Collections

2020-08-11 Thread Sydney Pemberton
Sydney Pemberton added the comment: If you look at the Jupyter notebook it should be fairly clear but to summarize here is the issue: class collections.abc.Container class collections.abc.Hashable class collections.abc.Sized class collections.abc.Callable ABCs for classes that provide

[issue41523] functools.cached_property does not satisfy the property check

2020-08-11 Thread Bernat Gabor
New submission from Bernat Gabor : from functools import cached_property, lru_cache class A: @property def a(self): return '' @cached_property def b(self): return '' @property @lru_cache def c(self): return "" print(isinstance(A.a, property))

[issue41523] functools.cached_property does not satisfy the property check

2020-08-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are not much things common to property and cached_property. cached_property does not have attributes fget, fset, fdel. They are both descriptors, but cached_property is not a data descriptor. -- ___

[issue41522] IDLE: configdialog tab icons

2020-08-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think we can agree that making the dialogs and in particular the settings dialog more visually inviting is a good thing. However, two problems are priority and differing aesthetic opinions. Some thoughts off the top of my head... I consider revising tab

[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-11 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.8 ___ Python tracker

[issue41525] Python '--help' has corrupted text.

2020-08-11 Thread William Pickard
New submission from William Pickard : Running Python's '--help' argument yields some corrupted text: "-X dev: enable CPythonâ?Ts â?odevelopment modeâ??, introducing additional runtime" -- components: Interpreter Core messages: 375204 nosy: WildCard65 priority: normal severity: normal

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-11 Thread Peter Lovett
New submission from Peter Lovett : "Setup was successful" dialog box text overflows the box, and last line can't be read. -- components: Installation files: Python 3.9.0rc1 setup successful overflow dialog box.PNG messages: 375206 nosy: PeterL777 priority: normal severity: normal

[issue10399] AST Optimization: inlining of function calls

2020-08-11 Thread Yonatan Goldschmidt
Change by Yonatan Goldschmidt : -- nosy: +Yonatan Goldschmidt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41475] Make __future__.annotations default 3.10 in What's New 3.7

2020-08-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +20963 pull_request: https://github.com/python/cpython/pull/21835 ___ Python tracker ___

[issue41525] Python '--help' has corrupted text.

2020-08-11 Thread Peter Lovett
Peter Lovett added the comment: Also appearing in 3.9.0rc1 AMD64 I think it's transliterated Unicode, rather than an actual corruption. I'm on Win10, so it might be a Windows command shell issue (although it is showing bad in cmd, PS7 and PS5). Help messages should be plain ASCII to avoid

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-11 Thread Zachary Ware
Change by Zachary Ware : -- assignee: -> steve.dower components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue10486] http.server doesn't set all CGI environment variables

2020-08-11 Thread Maarten
Maarten added the comment: The CGI examples of urwid (see http://urwid.org/manual/displaymodules.html#cgi-web-display-module-web-display) don't work on http.server because of missing meta variables. Using cgitb, I found out that the webdriver expects the environment variable

[issue41524] PyOS_mystricmp advances pointers too far

2020-08-11 Thread William Meehan
New submission from William Meehan : The existing implementation of PyOS_mystricmp increments both pointers as long as the first string hasn't reached the end yet. If the second string ends first, then we increment past the null byte. If there is a difference in the middle of the two

[issue41524] PyOS_mystricmp advances pointers too far

2020-08-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch! Do you mind to provide a PR for this William? -- keywords: +easy (C) nosy: +serhiy.storchaka stage: -> needs patch ___ Python tracker

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-11 Thread wyz23x2
wyz23x2 added the comment: +1. I observe it too. -- nosy: +wyz23x2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41525] Python '--help' has corrupted text.

2020-08-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch nosy: +serhiy.storchaka nosy_count: 2.0 -> 3.0 pull_requests: +20964 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21836 ___ Python tracker

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should not such changes be widely discussed on the Python-Dev mailing list before merging? -- nosy: +serhiy.storchaka ___ Python tracker

[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-11 Thread Ramesh Sahoo
Change by Ramesh Sahoo : -- resolution: works for me -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-11 Thread Ramesh Sahoo
Ramesh Sahoo added the comment: Hi all, Thanks for your valuable response. I would like to inform you that I found this issue while playing with the following code. This is reproducible with Python 3.8. Please find the following details and let me know if I am doing something wrong.

[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-11 Thread Ramesh Sahoo
Ramesh Sahoo added the comment: Additional note: The following program completes all 5 iterations. #!/usr/bin/python3 stack = [s for s in range(5)] c = 0 for i in stack: c += 1 print(f"{'='*10} loop {c} {'='*10}") if i == 0 or i == 1 or i == 2: print(f"{i}\n") else:

[issue41513] Scale by power of two in math.hypot()

2020-08-11 Thread Mark Dickinson
Mark Dickinson added the comment: Fine by me in principle; I haven't had a chance to look at the code yet. While we're doing this, any chance we could special-case the two-argument hypot to use the libm hypot directly? On many platforms the libm hypot will be correctly rounded, or close to

[issue33129] Add kwarg-only option to dataclass

2020-08-11 Thread wyz23x2
wyz23x2 added the comment: Since '/' was introduced in Python 3.8, support for positional parameters should be supported too. -- nosy: +wyz23x2 versions: +Python 3.9 ___ Python tracker

[issue31904] Python should support VxWorks RTOS

2020-08-11 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +20950 pull_request: https://github.com/python/cpython/pull/21821 ___ Python tracker ___

[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-11 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41169] socket.inet_pton raised when pass an IPv6 address like "[::]" to it

2020-08-11 Thread wyz23x2
Change by wyz23x2 : -- versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22893] IDLE: __future__ does not work in startup code.

2020-08-11 Thread wyz23x2
Change by wyz23x2 : -- title: Idle: __future__ does not work in startup code. -> IDLE: __future__ does not work in startup code. ___ Python tracker ___

[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Tue, Aug 11, 2020 at 07:16:20AM +, Ramesh Sahoo wrote: > for i in stack: > print("inside if Popped =",stack.pop(stack.index(i))) You are mutating the list while you iterate over it. This is prone to cause trouble. Here's is a much smaller

[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2020-08-11 Thread wyz23x2
Change by wyz23x2 : -- versions: +Python 3.7, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-08-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1d541c25c8019f7a0b80b3e1b437abe171e40b65 by Mohamed Koubaa in branch 'master': bpo-1635741: Port multiprocessing ext to multiphase init (GH-21378) https://github.com/python/cpython/commit/1d541c25c8019f7a0b80b3e1b437abe171e40b65 --

[issue38912] test_asyncio altered the execution environment

2020-08-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset a0b57b3317d6653255415af5228c94485aa57a0d by Victor Stinner in branch '3.9': bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718) (GH-21827)

[issue38912] test_asyncio altered the execution environment

2020-08-11 Thread STINNER Victor
STINNER Victor added the comment: On the AArch64 RHEL8 buildbot, I managed to reproduce a ENV_CHANGED issue with only these two test_asyncio tests: test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_ssl_verify_failed

[issue38912] test_asyncio altered the execution environment

2020-08-11 Thread STINNER Victor
STINNER Victor added the comment: test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_ssl_verified fails randomly and emits an "unraisable exception". Logs: + /home/vstinner/python/master/python -m test --matchfile /tmp/tmpz2f1v5aq test_asyncio --fail-env-changed -v ==

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +20951 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21822 ___ Python tracker ___

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread Christian Heimes
Christian Heimes added the comment: +1 -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20953 pull_request: https://github.com/python/cpython/pull/21824 ___ Python tracker ___

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread miss-islington
miss-islington added the comment: New changeset fabd7bb8e0450f16ed5c5c0ad575aa413d65712d by Victor Stinner in branch 'master': bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21822) https://github.com/python/cpython/commit/fabd7bb8e0450f16ed5c5c0ad575aa413d65712d

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0ee0b2938cb606151d8d287472c838044bad4a0e by Victor Stinner in branch 'master': bpo-41521: Replace whitelist/blacklist with allowlist/denylist (GH-21823) https://github.com/python/cpython/commit/0ee0b2938cb606151d8d287472c838044bad4a0e

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread STINNER Victor
New submission from STINNER Victor : I propose to replace whitelist/blacklist with allowlist/denylist. The terms whitelist and blacklist can be associated to color skins which isn't the intent. To avoid confusion, I propose to use neutral terms: allowlist and denylist. Moreover, as a french

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20952 pull_request: https://github.com/python/cpython/pull/21823 ___ Python tracker ___

[issue40994] Very confusing documenation for abc.Collections

2020-08-11 Thread Irit Katriel
Irit Katriel added the comment: Can you be more specific about what you found confusing? What is the documentation bug? What do you mean by "this point in the documentation"? Even better, can you suggest how to rewrite the documentation to make it clearer? -- nosy: +iritkatriel

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20954 pull_request: https://github.com/python/cpython/pull/21825 ___ Python tracker ___

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20955 pull_request: https://github.com/python/cpython/pull/21826 ___ Python tracker ___

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread STINNER Victor
STINNER Victor added the comment: Another rationale from "Inclusive Chromium code": Terms such as “blacklist” and “whitelist” reinforce the notion that black==bad and white==good. That Word Black, by Langston Hughes illustrates this problem in a lighthearted, if somewhat pointed way. These

[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20957 pull_request: https://github.com/python/cpython/pull/21828 ___ Python tracker

[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +20958 pull_request: https://github.com/python/cpython/pull/21829 ___ Python tracker ___

[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-11 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum nosy_count: 4.0 -> 5.0 pull_requests: +20959 pull_request: https://github.com/python/cpython/pull/21830 ___ Python tracker

[issue38912] test_asyncio altered the execution environment

2020-08-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20956 pull_request: https://github.com/python/cpython/pull/21827 ___ Python tracker ___

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-11 Thread STINNER Victor
STINNER Victor added the comment: "While the etymology of the words isn't steeped in racial undertones or history like other problematic tech word choices, there is no harm in changing them to synonyms that as just as understandable and avoid the question entirely"

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2020-08-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Issue 41314 changed the __future__ annotations default version to 3.10. 3.10.0a1 is scheduled for next Oct 5, less than 2 months from now. It would be good if PR 20434 were merged before that. -- nosy: +terry.reedy

[issue41503] Race between setTarget and flush in logging.handlers.MemoryHandler

2020-08-11 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41475] Make __future__.annotations default 3.10 in What's New 3.7

2020-08-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: __future__.annotations set to become default in Python 4.0? -> Make __future__.annotations default 3.10 in What's New 3.7 versions: -Python 3.7 ___ Python tracker

[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-11 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 7b3ceaa71051d811bfee0b62ef9cb0fd2121c7ee by Miss Islington (bot) in branch '3.8': [3.8] bpo-41504: Add links to asttokens, leoAst, LibCST and parso to ast docs (GH-21773) (GH-21829)

[issue41504] Add links to asttokens, leoAst, LibCST and Parso to ast.rst

2020-08-11 Thread Guido van Rossum
Guido van Rossum added the comment: The master commit was e3c971ccfa58afcb2656b71b95e10b9703f2ad32 (somehow because the commit message didn't contain the bpo-41504 tag the automation didn't work flawlessly). -- ___ Python tracker

[issue41520] 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-11 Thread STINNER Victor
Change by STINNER Victor : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-11 Thread STINNER Victor
Change by STINNER Victor : -- title: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise. -> codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise. ___ Python tracker

[issue41129] setup.py test for macOS SDK files may incorrectly classify files in other file systems

2020-08-11 Thread Andrew
Andrew added the comment: Hi Ronald. The basic idea is that >= macOS 10.15.1 Apple has made most of the filesystem read only on a folder by folder basis. They separate user-writable onto a separate filesystem, treat it like a disk, and they mount it under /System/Volumes/ as "Data".

[issue41168] Lack of proper checking in PyObject_SetAttr leads to segmentation fault

2020-08-11 Thread Petr Viktorin
Petr Viktorin added the comment: Closing; please re-open if you have more info. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41191] PyType_FromModuleAndSpec is not mentioned in 3.9 What's new

2020-08-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +20960 pull_request: https://github.com/python/cpython/pull/21831 ___ Python tracker

[issue41475] Make __future__.annotations default 3.10 in What's New 3.7

2020-08-11 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 76643c10ede2813ca921464fe839e81caee21a84 by Ram Rachum in branch 'master': bpo-41475: Fix note in "What's new in 3.7" (#21733) https://github.com/python/cpython/commit/76643c10ede2813ca921464fe839e81caee21a84 --

[issue41475] Make __future__.annotations default 3.10 in What's New 3.7

2020-08-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +20961 pull_request: https://github.com/python/cpython/pull/21832 ___ Python tracker

[issue41475] Make __future__.annotations default 3.10 in What's New 3.7

2020-08-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +20962 pull_request: https://github.com/python/cpython/pull/21833 ___ Python tracker ___