[issue41062] Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK()

2020-06-21 Thread Andrei Pashkin
New submission from Andrei Pashkin : To me it seems like Advanced Debugger Support C-API doesn't make sense without HEAD_LOCK() and HEAD_UNLOCK() which are private right now. When researching how C-API works I've found this comment in the source code:

[issue41061] Incorrect expressions / assert with side effect in hashtable

2020-06-21 Thread Christian Heimes
New submission from Christian Heimes : Coverity has found four issues in hashtable implementation and tests Py_hashtable_get_entry_generic(_Py_hashtable_t *ht, const void *key) CID 1464680 (#1 of 1): Evaluation order violation (EVALUATION_ORDER)write_write_typo: In entry = entry =

[issue41064] IDLE highlights wrong place when code has syntax error of ** unpacking dict in f-string

2020-06-21 Thread SilentGhost
Change by SilentGhost : -- type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41058] pdb reads source files using the locale encoding

2020-06-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +20199 pull_request: https://github.com/python/cpython/pull/21027 ___ Python tracker ___

[issue41058] pdb reads source files using the locale encoding

2020-06-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +20198 pull_request: https://github.com/python/cpython/pull/21026 ___ Python tracker

[issue41058] pdb reads source files using the locale encoding

2020-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 19fcffa92773e008e4f5efb80047420a0cfafeec by Serhiy Storchaka in branch 'master': bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010) https://github.com/python/cpython/commit/19fcffa92773e008e4f5efb80047420a0cfafeec

[issue41005] Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line

2020-06-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've commented on the attached PR. IMHO a correct fix is to catch and ignore PermissionError when calling xdg-settings (on all platforms). An xdg-settings executable that cannot be started due to permission problems is similar to that executable not being

[issue39783] Optimize construction of Path from other Paths by just returning the same object?

2020-06-21 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41052] Opt out serialization/deserialization for heap type

2020-06-21 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 6989af0bc7ea1e9a1acea16794e6f723d7b44110 by Dong-hee Na in branch 'master': bpo-41052: Opt out serialization/deserialization for _random.Random (GH-21002) https://github.com/python/cpython/commit/6989af0bc7ea1e9a1acea16794e6f723d7b44110

[issue41063] Avoid using the locale encoding for open() in tests

2020-06-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Many tests use open() with the locale encoding for writing or reading files. They are passed because the written and read data a ASCII, and file paths are ASCII. But they do not test the case of non-ASCII data and file paths. In general, most of uses of

[issue41064] Specialise syntax error of ** unpacking dict

2020-06-21 Thread E. Paine
E. Paine added the comment: This isn't an IDLE issue and is instead due to the core interpreter. This isn't a bug, there just isn't a more specialised error message for the dictionary unpacking failure. Changing the error message to something more helpful would be an enhancement and

[issue41063] Avoid using the locale encoding for open() in tests

2020-06-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Remove outdated tests for tp_print, pdb reads source files using the locale encoding, read_mime_types() should read the rule file using UTF-8, not the locale encoding ___ Python tracker

[issue41065] Use zip-strict in zoneinfo

2020-06-21 Thread Ram Rachum
Change by Ram Rachum : -- keywords: +patch pull_requests: +20202 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21031 ___ Python tracker ___

[issue41052] Opt out serialization/deserialization for heap type

2020-06-21 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 814b07bf814a804f60b897d18f1dbb5578b2c7fd by Dong-hee Na in branch '3.9': [3.9] bpo-41052: Opt out serialization/deserialization for _random.Random (GH-21002). (GH-21030)

[issue35975] Put back the ability to parse files where async/await aren't keywords

2020-06-21 Thread Stefan Behnel
Stefan Behnel added the comment: PRs look good to me. Here is a test that fails for me with the master branch and works with your fixes. It has a slightly odd place in the subinterpreter tests, but I would argue that it's not entirely misplaced there. You would want to know when

[issue41062] Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK()

2020-06-21 Thread Andrei Pashkin
Andrei Pashkin added the comment: Here is what I mean by "Advanced Debugger Support" API: https://docs.python.org/dev/c-api/init.html#advanced-debugger-support -- ___ Python tracker

[issue41061] Incorrect expressions / assert with side effect in hashtable

2020-06-21 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +20200 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21028 ___ Python tracker

[issue41005] Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line

2020-06-21 Thread SBC King
SBC King added the comment: yeah I've updated the pr please review -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41052] Opt out serialization/deserialization for heap type

2020-06-21 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +20201 pull_request: https://github.com/python/cpython/pull/21030 ___ Python tracker ___

[issue41035] zipfile.Path does not work properly with zip archives where paths start with /

2020-06-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: I created [jaraco/zipp#56](https://github.com/jaraco/zipp/issues/56) to track the issue in the backport. -- ___ Python tracker ___

[issue41055] Remove outdated tests for tp_print

2020-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f9bab74d5b34c64cf061e1629ff5f3092a4ca9b3 by Serhiy Storchaka in branch 'master': bpo-41055: Remove outdated tests for the tp_print slot. (GH-21006) https://github.com/python/cpython/commit/f9bab74d5b34c64cf061e1629ff5f3092a4ca9b3 --

[issue41005] Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line

2020-06-21 Thread SBC King
SBC King added the comment: yeah there is a bug as web browsers won't open when you launch them from python code please have a look at this issue posted on jupyternotebook github : https://github.com/jupyter/notebook/issues/3746 It was posted on the wrong place as it was not an issue with

[issue41005] Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line

2020-06-21 Thread SilentGhost
Change by SilentGhost : -- nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1944] Document PyUnicode_* API

2020-06-21 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41055] Remove outdated tests for tp_print

2020-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nice. I would have found the removed tests confusing. I presume tp_print had something to do with print as a statement. -- nosy: +terry.reedy ___ Python tracker

[issue41055] Remove outdated tests for tp_print

2020-06-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41064] IDLE highlights wrong place when code has syntax error of ** unpacking dict in f-string

2020-06-21 Thread JNCressey
New submission from JNCressey : Compare f"{*my_tuple}" with f"{**my_dict}". Both are syntax errors since you can't use unpacking here, but the bug is as follows: - For the tuple, IDLE highlights the asterisk and has the helpful message 'SyntaxError: can't use starred expression here', - But

[issue41065] Use zip-strict in zoneinfo

2020-06-21 Thread Ram Rachum
New submission from Ram Rachum : Writing the PR now. -- components: Library (Lib) messages: 371997 nosy: brandtbucher, cool-RR priority: normal severity: normal status: open title: Use zip-strict in zoneinfo type: enhancement versions: Python 3.10

[issue35975] Put back the ability to parse files where async/await aren't keywords

2020-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, I will add that diff (I'll probably add async def to the set of features tested). Do you mind if I just incorporate it in my diff? I could add an acknowledgment in the commit message. Otherwise you could send a separate PR. --

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-21 Thread Ravi Teja P
Change by Ravi Teja P : -- nosy: +rvteja92 nosy_count: 4.0 -> 5.0 pull_requests: +20204 pull_request: https://github.com/python/cpython/pull/21033 ___ Python tracker ___

[issue41035] zipfile.Path does not work properly with zip archives where paths start with /

2020-06-21 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41035] zipfile.Path does not work properly with zip archives where paths start with /

2020-06-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: Yes, I generally agree with your assessment. Let me know if you have any questions about the implementation as you're exploring a solution. -- ___ Python tracker

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-21 Thread miss-islington
miss-islington added the comment: New changeset 10bf6e482328f622f4b2659e4ad5e3d88f57ba58 by Miss Islington (bot) in branch '3.8': bpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl module. (GH-21009)

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-21 Thread Stefan Behnel
Stefan Behnel added the comment: This SO answer by Martijn Pieters explains the background: https://stackoverflow.com/a/44854477 and links to the original python-dev discussion: https://mail.python.org/pipermail/python-dev/2003-April/034535.html The current implementation checks that the

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-06-21 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: We can close this? -- nosy: +thatiparthy ___ Python tracker ___

[issue41064] f-string SyntaxError gives offset within fake line, other issues

2020-06-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +epaine ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41064] f-string SyntaxError gives offset within fake line, other issues

2020-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE highlights the location of a SyntaxError according to its .lineno and .offset attributes. For expressions within braces within f strings, the reported offset is respect to the expression augmented with surrounding ()s added, not the actual physical

[issue41059] Large number of Coverity reports for parser.c

2020-06-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41058] pdb reads source files using the locale encoding

2020-06-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: The 3.7 PR is up to the release manager to decide on, it probably isn't worth merging there as this i not security related. thanks for the fix Serhiy! -- nosy: +gregory.p.smith ___ Python tracker

[issue41058] pdb reads source files using the locale encoding

2020-06-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue41068] zipfile: read after write fails for non-ascii files

2020-06-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : When open a ZIP archive, write a file with non-ascii name in it, and, not closing the archive, read that file back, it fails: >>> import zipfile >>> with zipfile.ZipFile('test.zip', 'w') as zf: ... zf.writestr('йцукен', '') ... zf.read('йцукен')

[issue41035] zipfile.Path does not work properly with zip archives where paths start with /

2020-06-21 Thread sorrow
sorrow added the comment: >When the class is created? I mean the class instance -- ___ Python tracker ___ ___ Python-bugs-list

[issue41065] Use zip-strict in zoneinfo

2020-06-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41067] Haiku build fix - posix module

2020-06-21 Thread David CARLIER
Change by David CARLIER : -- components: Extension Modules nosy: devnexen priority: normal pull_requests: 20203 severity: normal status: open title: Haiku build fix - posix module type: compile error versions: Python 3.10 ___ Python tracker

[issue41058] pdb reads source files using the locale encoding

2020-06-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +20205 pull_request: https://github.com/python/cpython/pull/21034 ___ Python tracker ___

[issue40939] Remove the old parser

2020-06-21 Thread STINNER Victor
STINNER Victor added the comment: > bpo-40939: Remove the old parser (Part 2) (GH-21005) This change removes PyNode_Compile() which is part of the public C API. Would you mind to also deprecate it, as you did for PyParser_xxx() functions? -- ___

[issue41066] Update documentation for Pathlib

2020-06-21 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
New submission from Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : The correspondence section between os, os.path vs pathlib is missing two entries. https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module 1. os.link vs path.link_to 2.

[issue41035] zipfile.Path does not work properly with zip archives where paths start with /

2020-06-21 Thread sorrow
sorrow added the comment: >how common is this use-case I don't know about that. I just know that I have to make my program work with these files. Asking the clients to stop using this (presumably incorrect) format (or the program that makes it) is not an option. >It appears the file your

[issue40814] Update typing module documentation based on PEP 585

2020-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think we should deprecate List etc. (PEP 585 specifically punts on the topic) but it's good to start mentioning list[t] etc. in the docs. Do you want to volunteer to write some docs? -- ___ Python

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-21 Thread miss-islington
miss-islington added the comment: New changeset fbf94af2af3c09493481b8559b84f6e9f0628c37 by Miss Islington (bot) in branch '3.9': bpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl module. (GH-21009)

[issue41067] Haiku build fix - posix module

2020-06-21 Thread Gregory P. Smith
New submission from Gregory P. Smith : This type of change might make more sense to integrate into configure.ac and pyconfig.h.in. (does haiku use autoconf?) But even if not, lets not scatter haiku ifdef HAIKU references all over the codebase. Such ifdef's to redefine things should be

[issue41058] pdb reads source files using the locale encoding

2020-06-21 Thread miss-islington
miss-islington added the comment: New changeset 26f6126b2aa116b5c613c104bde0bb5b791a0bfc by Miss Islington (bot) in branch '3.9': bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010) https://github.com/python/cpython/commit/26f6126b2aa116b5c613c104bde0bb5b791a0bfc

[issue35975] Put back the ability to parse files where async/await aren't keywords

2020-06-21 Thread Stefan Behnel
Stefan Behnel added the comment: Feel free to use the patch in any way you like. -- ___ Python tracker ___ ___ Python-bugs-list

[issue38377] test_asyncio.test_events.GetEventLoopTestsMixin.test_get_event_loop_new_process mixin breaks in the Unix environment without working /dev/shm

2020-06-21 Thread STINNER Victor
STINNER Victor added the comment: Ok, macOS buildbots are back to green, I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41069] Use non-ascii file names in tests by default

2020-06-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The following PR increases coverage of tests by making some paths non-ascii: 1. test.support.TESTFN now contains non-ascii characters if possible. 2. The temporary directory used as current working directory in tests also contains non-ascii characters if

[issue41035] zipfile.Path does not work properly with zip archives where paths start with /

2020-06-21 Thread sorrow
sorrow added the comment: >`Path` public AP. API of course -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-06-21 Thread Ethan Furman
Ethan Furman added the comment: Not yet. I want to investigate the idea Ankesh Saha had some more. -- versions: +Python 3.10 -Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue41069] Use non-ascii file names in tests by default

2020-06-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +20206 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21035 ___ Python tracker

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-06-21 Thread Guido van Rossum
Guido van Rossum added the comment: That sounds like the right thing to do. You should be able to recognize pure Python __setattr__ implementations by the presence of slot_tp_setattro in the tp_setattro slot. (Likewise for __delattr__.) It's been really long since I looked at this -- do we

[issue41035] zipfile.Path does not work properly with zip archives where paths start with /

2020-06-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: >>It seems you may have discovered a use-case that violates that expectation, a >>case where `/a.txt` is identical to `a.txt`. > The thing is: it's not. I think maybe you misunderstood. I mean that the zipfile you have seems to be treating `/a.txt` as a

[issue39891] [difflib] Improve get_close_matches() to better match when casing of words are different

2020-06-21 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I fell like it's a bit weird to have a new function just for ignoring case, will a new function be required for every possible normalization like removing accents. One possible make the API handle those use cases would be to have a keyword-argument for this:

[issue41064] f-string SyntaxError gives offset within fake line, other issues

2020-06-21 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41058] pdb reads source files using the locale encoding

2020-06-21 Thread miss-islington
miss-islington added the comment: New changeset 14195597b3a877209c20d00e0ec844234e624d13 by Miss Islington (bot) in branch '3.8': bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010) https://github.com/python/cpython/commit/14195597b3a877209c20d00e0ec844234e624d13

[issue40939] Remove the old parser

2020-06-21 Thread miss-islington
miss-islington added the comment: New changeset 8ae5e8ec8147e6434454e66953c25848b848711a by Lysandros Nikolaou in branch '3.9': [3.9] bpo-40939: Deprecate PyNode_Compile (GH-21036) https://github.com/python/cpython/commit/8ae5e8ec8147e6434454e66953c25848b848711a --

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-21 Thread Ravi Teja P
Ravi Teja P added the comment: Hi I have raised a PR for this. But my PLA is yet to be updated (I have singed it). But add the fix to the existing versions (3.8, 3.9 and 3.10), do I need to raise PR for each of those branches? -- ___ Python

[issue40939] Remove the old parser

2020-06-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 564cd187677ae8d1488c4d8ae649aea34ebbde07 by Lysandros Nikolaou in branch 'master': bpo-40939: Rename PyPegen* functions to PyParser* (GH-21016) https://github.com/python/cpython/commit/564cd187677ae8d1488c4d8ae649aea34ebbde07

[issue40939] Remove the old parser

2020-06-21 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: Thanks Victor for the catch! I've opened a PR that deprecates PyNode_Compile in 3.9. -- ___ Python tracker ___

[issue40939] Remove the old parser

2020-06-21 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +20207 pull_request: https://github.com/python/cpython/pull/21036 ___ Python tracker ___

[issue41053] open() fails to read app exec links

2020-06-21 Thread Eryk Sun
Eryk Sun added the comment: Where the POSIX specification uses the term "symbolic link" [1], it means one and only one type of symlink, not multiple types of symlink with divergent behavior depending on the context. To be consistent, only one type of Windows reparse point [2] is classified

[issue41004] Hash collisions in IPv4Interface and IPv6Interface

2020-06-21 Thread Amir Mohamadi
Amir Mohamadi added the comment: No @rvteja92, you don't need open multiple PRs, only make your changes on master branch. for more informations read this: https://devguide.python.org/ And for the CLA sign it will take a while to be updated. --

[issue41068] zipfile: read after write fails for non-ascii files

2020-06-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list