[issue40640] Tutorial for Continue missing ... line

2020-05-22 Thread Florian Dahlitz
Florian Dahlitz added the comment: Please go head @docor...@sonic.net! It's a good one to get familiar with the process of contributing. Yes, PR stands for Pull Request. There is the devguide (https://devguide.python.org/), which documents how to contribute. In fact, the quick guide may be

[issue40648] Test file mode on Windows

2020-05-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: File mode is not tested on Windows -> Test file mode on Windows ___ Python tracker ___ ___

[issue40648] File mode is not tested on Windows

2020-05-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.10 -Python 3.9 ___ Python tracker ___

[issue23188] Provide a C helper function to chain raised (but not yet caught) exceptions

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: > The documentation of PyErr_SetObject, PyErr_SetString et al should also be > updated to mention exception chaining. I just posted a PR to do the above: https://github.com/python/cpython/pull/20329 -- ___ Python

[issue23188] Provide a C helper function to chain raised (but not yet caught) exceptions

2020-05-22 Thread Chris Jerdonek
Change by Chris Jerdonek : -- keywords: +patch pull_requests: +19597 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20329 ___ Python tracker

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: YoSTEALTH, are you both allowed and willing to do so? The patch is not completely trivial and you seem to have the needed knowledge. (I don't.) -- ___ Python tracker

[issue40738] backspace character \b not processed by IDLE

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am considering terminal simulation as an option, but there is not exactly a standard to emulate. \b originally meant the same as the typewrite backspace and modern US computer keyboard left arrow key <- (move cursor left without erasing), which would

[issue40710] IDLE: Malfunctioning of '\r'

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Note that 'sciencecomputer' is a different possible result if \r does not switch the simulated terminal from the normal insert mode to overwrite mode. I am considering terminal simulation as an option in IDLE, but there is not exactly a standard to

[issue40640] Tutorial for Continue missing ... line

2020-05-22 Thread Chas Belov
Chas Belov added the comment: Um, Python newcomer here. What's a PR? Pull request? I'm happy to do it if you can point me to the how-to. I know my way around git, and not around Python community standards. You are also welcome to go ahead and make the change; thank you for asking.

[issue40708] Clearing the screen of IDLE interactive mode in Windows

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: See #23220 for backspace and return behavior. -- versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue40738] backspace character \b not processed by IDLE

2020-05-22 Thread Stan Hendryx
New submission from Stan Hendryx : The backspace character \b is not processed correctly in IDLE 3.8.2: >>> print("deleted\b file") deleted file Running the interpreter from Terminal, it works: >>> print("deleted\b file") delete file Same result on two systems: MacBook Pro, one on OSX

[issue40439] Error in an external reference

2020-05-22 Thread miss-islington
miss-islington added the comment: New changeset dc3239177ff26cb6a12e437a1f507be730fe8ba7 by Miss Islington (bot) in branch '3.8': bpo-40439: Update broken link in lexical analysis docs (GH-20184) https://github.com/python/cpython/commit/dc3239177ff26cb6a12e437a1f507be730fe8ba7 --

[issue40439] Error in an external reference

2020-05-22 Thread miss-islington
miss-islington added the comment: New changeset 962c814ca77fb1873908f2daeda59c2637ad3bf1 by Miss Islington (bot) in branch '3.9': bpo-40439: Update broken link in lexical analysis docs (GH-20184) https://github.com/python/cpython/commit/962c814ca77fb1873908f2daeda59c2637ad3bf1 --

[issue40439] Error in an external reference

2020-05-22 Thread miss-islington
miss-islington added the comment: New changeset 0af9bef61afffbf128aba76a2e578059621b4f00 by Miss Islington (bot) in branch '3.7': bpo-40439: Update broken link in lexical analysis docs (GH-20184) https://github.com/python/cpython/commit/0af9bef61afffbf128aba76a2e578059621b4f00 --

[issue40439] Error in an external reference

2020-05-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: @audpa31, thank you for the report and @Akarys, thank you for the pull request. -- nosy: +cheryl.sabella resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40733] Make IDLE doc more visible, mention in main python docs page

2020-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that finding the online doc is slight pain. It is not listed in the Modules index because idlelib, not IDLE, is the stdlib module, and does not have a doc page. I may add one or, if possible, make the page serve as one, as part of this issue.

[issue40439] Error in an external reference

2020-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +19596 pull_request: https://github.com/python/cpython/pull/20328 ___ Python tracker ___

[issue40439] Error in an external reference

2020-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +19595 pull_request: https://github.com/python/cpython/pull/20327 ___ Python tracker ___

[issue40439] Error in an external reference

2020-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +19594 pull_request: https://github.com/python/cpython/pull/20326 ___ Python tracker ___

[issue40439] Error in an external reference

2020-05-22 Thread miss-islington
miss-islington added the comment: New changeset af23f0d3cf19343512e6ca1fe1d46a5dbe425719 by Matteo Bertucci in branch 'master': bpo-40439: Update broken link in lexical analysis docs (GH-20184) https://github.com/python/cpython/commit/af23f0d3cf19343512e6ca1fe1d46a5dbe425719 --

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2020-05-22 Thread Ned Deily
Ned Deily added the comment: Irv, thanks for the feedback and the attempt. I think we had a little bit of a misunderstanding on our end so I don't think we need you to try anything more for this problem. Terry, I apologize if I left the impression that there was some doubt about whether

[issue40552] Enhance for loop and copy example in tutorial

2020-05-22 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Thanks for the PR Antoine Wecxsteen. I will close this. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32398] OSX C++ linking workaround in distutils breaks other packages

2020-05-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'm going to close this as the OP hasn't responded in over 2 years and Ronald was -1 on the solution. If the OP or someone else experiences this same problem, either this issue or a new one can be opened to address it. Thank you! -- nosy:

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > If you add a Py_INCREF before, the crash disappears. To be clear: the other crash is still in the reproduced: the one that Petr describes in his comment. In PR 20264 I have prepared the changes that I proposed previously (including the revert of

[issue40552] Enhance for loop and copy example in tutorial

2020-05-22 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 6fad3e6b49f6a9f8b8a6635c41371e4451479f86 by Antoine in branch 'master': bpo-40552 Add 'users' variable in code sample (tutorial 4.2). (GH-19992) https://github.com/python/cpython/commit/6fad3e6b49f6a9f8b8a6635c41371e4451479f86 --

[issue26415] Excessive peak memory consumption by the Python parser

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing as we have a new parser in 3.9 and the current one will be removed in Python 3.10. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38693] Use f-strings instead of str.format within importlib

2020-05-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: Did you want this one to land in 3.9? -- nosy: +cheryl.sabella ___ Python tracker ___ ___

[issue35707] time.sleep() should support objects with __float__

2020-05-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +belopolsky, p-ganssle versions: +Python 3.10 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2020-05-22 Thread Irv Kalb
Irv Kalb added the comment: Thanks Ned and Terry for your responses. Ned: I am currently teaching a course where my students and I are all using Python 3.7 and the current Pygame 1.9.6, so unfortunately, I cannot update to the newer development release of 2.0. I am also writing a book on

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: The PR for this issue has been closed, but the issue is now open for someone else to make a PR for it. Please credit the original author in the new PR. -- keywords: -patch nosy: +cheryl.sabella stage: patch review -> needs patch versions: +Python

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, I found the problem. The problem is that the reproduced does not correctly work the reference count of base_class because when construction get tuple of bases: PyObject *bases = PyTuple_New(1); result = PyTuple_SetItem(bases, 0, base_class); if

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have been playing with the reproducer and I am a bit confused: The reproducer crashes in the same way even after reverting PR 19414 so it does not seem related to it. This is what I get: >>> import reproducer >>> reproducer.Modules/gcmodule.c:114:

[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2020-05-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks. I'll look at this shortly. We're getting much closer. Just so that I don't lose other work I've done, am uploading new_merge2.py with in-line iterative tree construction of the initial tree. -- Added file:

[issue25095] test_httpservers hangs since Python 3.5

2020-05-22 Thread William Pickard
William Pickard added the comment: I'll get to it Saturday. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40663] Wrong generated annotation on subscripting

2020-05-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40663] Wrong generated annotation on subscripting

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a4d219b35e35f9efc406cd70f2812275bcd989fe by Batuhan Taskaya in branch '3.8': [3.8] bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156). (GH-20191)

[issue40663] Wrong generated annotation on subscripting

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 43300148c5f30317ebf767aa8853a957ee5c87fb by Batuhan Taskaya in branch '3.7': [3.7] bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156). (GH-20192)

[issue40663] Wrong generated annotation on subscripting

2020-05-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +19593 pull_request: https://github.com/python/cpython/pull/20324 ___ Python tracker

[issue39631] Fix file association MIME type on Windows

2020-05-22 Thread miss-islington
miss-islington added the comment: New changeset 1e5cf949ce36b6fe45db0e5e4a26c856c3b44278 by Miss Islington (bot) in branch '3.9': [3.9] bpo-39631: Adds NEWS entry (GH-20227) (GH-20241) https://github.com/python/cpython/commit/1e5cf949ce36b6fe45db0e5e4a26c856c3b44278 --

[issue40696] exception chain cycles cause hangs (was "Exception handling with "await" can hang in Python3.9.0b1")

2020-05-22 Thread Dennis Sweeney
Dennis Sweeney added the comment: Wouldn't Floyd's or Brent's cycle detection algorithms be better here than the allocation of a new set? I believe they might also eliminate the need to fast-path the first 100 or however many. As in: https://en.wikipedia.org/wiki/Cycle_detection --

[issue40214] test_ctypes.test_load_dll_with_flags Windows failure

2020-05-22 Thread miss-islington
miss-islington added the comment: New changeset 0cc7becde0bfe896fd23b5cb14fedfb8f2066fca by Miss Islington (bot) in branch '3.8': bpo-40214: Fix ctypes WinDLL test with insecure flags (GH-19652) https://github.com/python/cpython/commit/0cc7becde0bfe896fd23b5cb14fedfb8f2066fca --

[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2020-05-22 Thread miss-islington
miss-islington added the comment: New changeset 16d07812dd3833295cc001d19eea42eecbdb6ea5 by Miss Islington (bot) in branch '3.8': bpo-40327: Improve atomicity, speed, and memory efficiency of the items() loop (GH-19628)

[issue39073] email incorrect handling of crlf in Address objects.

2020-05-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: There are 3 open PRs for the backport of this to 3.6, 3.7, and 3.8. It looks like they just need to be approved and miss-islington will take care of the rest. -- nosy: +cheryl.sabella ___ Python tracker

[issue40737] Handle PyModule_AddObject() error correctly in sqlite3

2020-05-22 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +19592 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20323 ___ Python tracker ___

[issue40737] Handle PyModule_AddObject() error correctly in sqlite3

2020-05-22 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : According to the documentation, PyModule_AddObject() only decrements the reference count of value on success. The calling code must PyDECREF() manually on error. Fixed by attached patch. -- components: Library (Lib) files:

[issue23188] Provide a C helper function to chain raised (but not yet caught) exceptions

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: I just want to point out one difference between _PyErr_ChainExceptions and PyErr_SetObject that I encountered while working on this issue: https://bugs.python.org/issue40696 While both functions set the context, only PyErr_SetObject does a check to prevent

[issue40731] CWI url's protocol on LICENSE file from http to https

2020-05-22 Thread Guido van Rossum
Guido van Rossum added the comment: It works just fine with http:// (redirects to https). Thanks for testing our workflow. It works just fine. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40696] exception chain cycles cause hangs (was "Exception handling with "await" can hang in Python3.9.0b1")

2020-05-22 Thread Chris Jerdonek
Change by Chris Jerdonek : -- stage: patch review -> needs patch versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue40696] exception chain cycles cause hangs (was "Exception handling with "await" can hang in Python3.9.0b1")

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: Good to hear, Mariusz! And thanks for the report! Also, as discussed above, I'm leaving this issue open (and retitling) until the following more general issue is fixed: try: raise RuntimeError except Exception as exc: print(f'handling: {exc!r}')

[issue40696] Exception handling with "await" can hang in Python3.9.0b1

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: New changeset 7f77ac463cff219e0c8afef2611cad5080cc9df1 by Miss Islington (bot) in branch '3.9': bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287) https://github.com/python/cpython/commit/7f77ac463cff219e0c8afef2611cad5080cc9df1 --

[issue40679] show class name in method invocation TypeError

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: > _PyObject_FunctionString as discussed here ( > https://bugs.python.org/issue37645 ) returns a string that also includes the > module name where applicable. By the way, Dennis, regarding the above, one thing I noticed is that Python doesn't currently

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2020-05-22 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: -chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2020-05-22 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: -chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40696] Exception handling with "await" can hang in Python3.9.0b1

2020-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +19591 pull_request: https://github.com/python/cpython/pull/20322 ___ Python tracker ___

[issue40736] better message for re.search TypeError ("expected string or bytes-like object")

2020-05-22 Thread Chris Jerdonek
New submission from Chris Jerdonek : This TypeError could be a bit better: "/Users/runner/runners/2.262.1/work/cpython/cpython/Lib/test/test_nntplib.py", line 293, in test_with_statement if re.search(r'(?i)KEY.TOO.SMALL', ssl_err.reason): File

[issue40696] Exception handling with "await" can hang in Python3.9.0b1

2020-05-22 Thread Mariusz Felisiak
Mariusz Felisiak added the comment: Chris, many thanks for detailed explanation, extensive investigation, and a fix! We'll also review Django's code in the next few days. -- ___ Python tracker

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: See also: https://bugs.python.org/issue40735 (test_with_statement) -- nosy: +chris.jerdonek ___ Python tracker ___

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: See also: https://bugs.python.org/issue40735 (test_with_statement) -- nosy: +chris.jerdonek ___ Python tracker ___

[issue40735] test_nntplib: sporadic failures, NetworkedNNTP_SSLTests.test_with_statement

2020-05-22 Thread Chris Jerdonek
New submission from Chris Jerdonek : A sporadic failure of test_nntplib.NetworkedNNTP_SSLTests.test_with_statement on the CI for macOS: https://github.com/python/cpython/pull/20321/checks?check_run_id=700729471#step:6:612 See also: * https://bugs.python.org/issue19613 (test_article_head_body)

[issue38490] statistics: add covariance, Pearson's correlation, and simple linear regression

2020-05-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: @steven.daprano and @tim.peters, please take a look at the PR as it is just waiting on your approval. Thanks! -- nosy: +cheryl.sabella ___ Python tracker

[issue40679] show class name in method invocation TypeError

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks again, Dennis! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40679] show class name in method invocation TypeError

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: New changeset b5cc2089cc354469f12eabc7ba54280e85fdd6dc by Dennis Sweeney in branch 'master': bpo-40679: Use the function's qualname in certain TypeErrors (GH-20236) https://github.com/python/cpython/commit/b5cc2089cc354469f12eabc7ba54280e85fdd6dc

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40732] New realpath breaks setuptools_scm

2020-05-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: Good news is it looks like the issue with setuptools_scm can be address in a relatively straightforward manner (https://github.com/pypa/setuptools_scm/issues/436#issuecomment-632899446). I think that means the answers to the above questions are: -

[issue40733] mention IDLE in main python docs page

2020-05-22 Thread paul rubin
Change by paul rubin : -- title: mention IDLE in main python ocs page -> mention IDLE in main python docs page ___ Python tracker ___

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-22 Thread paul rubin
New submission from paul rubin : This is in the standard python 3.7.3 install under Debian 10. It's possible that this is on purpose, and it's (separately) possible that the Debian packagers did this for some reason. I'm not sure it's a bug but am reporting it as it's an oddity that might

[issue40696] Exception handling with "await" can hang in Python3.9.0b1

2020-05-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: New changeset 7c30d12bd5359b0f66c4fbc98aa055398bcc8a7e by Chris Jerdonek in branch 'master': bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287) https://github.com/python/cpython/commit/7c30d12bd5359b0f66c4fbc98aa055398bcc8a7e --

[issue40696] Exception handling with "await" can hang in Python3.9.0b1

2020-05-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +19590 pull_request: https://github.com/python/cpython/pull/20321 ___ Python tracker

[issue40732] New realpath breaks setuptools_scm

2020-05-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: To make matters more complicated, `git rev-parse --show-toplevel` also returns the realpath: ``` # git rev-parse --show-toplevel //vmware-host/Shared Folders/home/code/main/path ``` -- ___ Python tracker

[issue40733] mention IDLE in main python ocs page

2020-05-22 Thread Ned Deily
Change by Ned Deily : -- components: +IDLE nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40733] mention IDLE in main python ocs page

2020-05-22 Thread paul rubin
New submission from paul rubin : The IDLE documentation is in https://docs.python.org/3/library/idle.html which is not where I'd have thought to look for it, since I think of IDLE as an application rather than a library. So I looked for it on the main docs page, docs.python.org, and didn't

[issue40732] New realpath breaks setuptools_scm

2020-05-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: It's because on Unix: ``` >>> os.path.relpath('/Users/jaraco/code/main/path/.flake8', '') '.flake8' ``` But on Windows, relpath raises an error for the comparable call: ``` >>> os.path.relpath('vmware-host\\shared >>>

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I don't think the examples you mention is proof of inconsistent behaviour: > * list expressions do have their scope and do not overwrite local variables comprehensions have their own scope in Python 3 and this is documented. General blocks (like

[issue40103] ZipFile.extractall is not multiprocess safe with regard to directory creation.

2020-05-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +serhiy.storchaka, twouters ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40105] Updating zip comment doesn't truncate the zip file

2020-05-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +serhiy.storchaka, twouters ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40732] New realpath breaks setuptools_scm

2020-05-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: It seems the underlying reason the behavior fails is the (intended) difference resolving the empty path to a realpath when a symlink points to another volume. The failing routine invokes realpath early

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > What would be the downsides of reverting and documenting that tp_traverse > must visit Py_TYPE(self)? Not much IMHO, I actually would prefer this solution over any automatic "hacks". The reason is that any hack will be technically violating the

[issue40720] accessing mmap of file that is overwritten causes bus error

2020-05-22 Thread Marten H. van Kerkwijk
Marten H. van Kerkwijk added the comment: I should probably have added that the bus error happens on linux. On Windows, the opening of the file for writing leads to an error, as the file is still opened for reading inside the mmap. -- ___ Python

[issue40506] add support for os.Pathlike filenames in zipfile.ZipFile.writestr

2020-05-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +serhiy.storchaka, twouters versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___

[issue40732] New realpath breaks setuptools_scm

2020-05-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40730] Odd sentence in 3.9 What's New

2020-05-22 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, @DahlitzFlorian! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 ___ Python tracker

[issue40692] Adjust test_concurrent_futures to run more of its tests if multiprocessing.synchronize is missing

2020-05-22 Thread Zachary Ware
Change by Zachary Ware : -- components: +Library (Lib), Tests -asyncio ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40692] Adjust test_concurrent_futures to run more of its tests if multiprocessing.synchronize is missing

2020-05-22 Thread Zachary Ware
Zachary Ware added the comment: Adding multiprocessing and concurrent.futures experts. -- components: -Tests nosy: +bquinlan, davin, pitrou versions: +Python 3.10 -Python 3.9 ___ Python tracker

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-22 Thread Petr Viktorin
Change by Petr Viktorin : Added file: https://bugs.python.org/file49182/reproducer.c ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-05-22 Thread Petr Viktorin
Petr Viktorin added the comment: Ha! I think I found the issue in PySide now. It's different, but it's still a CPython issue. It's actually a variant of the "defining class" problem from PEP 573. It's legal to get the value of a slot, using PyType_GetSlot. It's reasonable to assume that

[issue40728] UnboundLocalError as a result of except statement variable re-assignment

2020-05-22 Thread Oleksandr Suvorov
Oleksandr Suvorov added the comment: Mark, I'm not sure if this is even documented, I find this a bit inconsistent when compared to the behavior of other statements, E.g.: * list expressions do have their scope and do not overwrite local variables * with statement does overwrite the

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: > Perhaps related... Now I'm thinking the issue is different, so I've created issue40732 to track the realpath issue. -- ___ Python tracker

[issue40732] New realpath breaks setuptools_scm

2020-05-22 Thread Jason R. Coombs
New submission from Jason R. Coombs : I've encountered an apparent regression on Python 3.8 on Windows when the current working directory is in a symlink to another volume and one runs `setup.py develop` on a project using setuptools_scm (https://github.com/pypa/setuptools_scm/issues/436).

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: > I'll see if `realpath` satisfies the test suite needs for path pie. I've tried replacing `readlink` with `realpath` and the tests still pass on Unix-like OSs, and also passes on Python 3.8 on Windows, but now fails on older Pythons on Windows. Is there

[issue23794] http package should support HTTP/2

2020-05-22 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23794] http package should support HTTP/2

2020-05-22 Thread Brett Cannon
Brett Cannon added the comment: And now there's https://pypi.org/project/httpcore/ which wraps h2 and h11 into a single, low-level API. -- ___ Python tracker ___

[issue23738] Clarify documentation of positional-only default values

2020-05-22 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23721] Set up a daily test coverage run

2020-05-22 Thread Brett Cannon
Brett Cannon added the comment: We have coverage after every push now at https://codecov.io/gh/python/cpython. -- ___ Python tracker ___

[issue9216] FIPS support for hashlib

2020-05-22 Thread miss-islington
miss-islington added the comment: New changeset a08b7c3bb0ef9da32400d23b13f78245cd7a9541 by Miss Islington (bot) in branch '3.9': bpo-9216: hashlib usedforsecurity fixes (GH-20258) https://github.com/python/cpython/commit/a08b7c3bb0ef9da32400d23b13f78245cd7a9541 --

[issue23389] pkgutil.find_loader raises an ImportError on PEP 420 implicit namespace packages

2020-05-22 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: Perhaps related, I've encountered another apparent regression on Python 3.8 on Windows when the current working directory is in a symlink to another volume and one runs `setup.py develop` on a project using setuptools_scm

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread David Strobach
David Strobach added the comment: > Actually, Xonsh tests show that keyword AST nodes are missing 'lineno' > attribute, but that could be our fault. Yes, our fault. Sorry for the noise. -- ___ Python tracker

[issue9216] FIPS support for hashlib

2020-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +19589 pull_request: https://github.com/python/cpython/pull/20320 ___ Python tracker ___

  1   2   >