[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: > https://src.fedoraproject.org/rpms/python39/pull-request/16 > os.getuid: 0 Maybe this failure comes from the fact that the test suite was run as the root user. I wrote PR 18203 to log the effective uid and gid in pythoninfo, to learn more about this is

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17580 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18203 ___ Python tracker ___ _

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-01-27 Thread Ethan Furman
Ethan Furman added the comment: True, but so is having Path objects not seemlessly usable. Also, isn't os.environ a special case where all values should be strings? -- ___ Python tracker ___

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: Issue also seen when building Python 3.9.0a3 on Fedora Rawhide: https://src.fedoraproject.org/rpms/python39/pull-request/16 Logs: https://jenkins-continuous-infra.apps.ci.centos.org/job/fedora-rawhide-pr-pipeline/2558/artifact/package-tests/logs/console.log

[issue39453] Use-after-free in list contain

2020-01-27 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +17579 pull_request: https://github.com/python/cpython/pull/18202 ___ Python tracker ___ _

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: Currently, os.environ behaves as a dictionary. When you put value into os.environ[key], os.environ[key] gives you back this value. If we start to convert value to a different type (convert something to str), it can be surprising. -- ___

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: The failure has been seen on other architectures on Fedora Rawhide when building the Python 3.8.1 package: https://koji.fedoraproject.org/koji/taskinfo?taskID=40870434 -- ___ Python tracker

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-01-27 Thread Ethan Furman
Ethan Furman added the comment: Adding `os.environ` support makes sense to me. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue38423] Event loop implementation docs advertise set_event_loop which doesn't work with asyncio.run

2020-01-27 Thread Cilyan Olowen
Cilyan Olowen added the comment: My bad, I did not check that asyncio.Event() was called before the application has a chance to properly set_event_loop with custom one. -- ___ Python tracker ___

[issue39466] Great

2020-01-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg360768 ___ Python tracker ___ ___ Python-bugs-li

[issue39466] Great

2020-01-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please stop spamming the bug tracker with random messages. -- nosy: +xtreak resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue38423] Event loop implementation docs advertise set_event_loop which doesn't work with asyncio.run

2020-01-27 Thread Cilyan Olowen
Cilyan Olowen added the comment: It doesn't seem to work either for asyncio.get_event_loop, especially when using asyncio.wait(), the loop complains that "RuntimeError: Task cb=[_wait.._on_completion() at lib\asyncio\tasks.py:440]> got Future attached to a different loop" -- nos

[issue39453] Use-after-free in list contain

2020-01-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4dbf2d8c6789a9b7299b142033073213604b8fdc by Pablo Galindo (Dong-hee Na) in branch 'master': bpo-39453: Make list.__contains__ hold strong references to avoid crashes (GH-18181) https://github.com/python/cpython/commit/4dbf2d8c6789a9b7299

[issue39466] Great

2020-01-27 Thread chris
New submission from chris : How do I start creating my own code, is there tutorial for this? https://logingit.com/amazon-from-a-to-z-www-atoz-amazon-work/ -- messages: 360768 nosy: Nadas priority: normal severity: normal status: open title: Great __

[issue39463] ast.Constant, bytes, and ast.unparse

2020-01-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Maybe we should only offically allow things that can be generated by > ast.parse? Yes, I think this is the way to go. In the future, we can expand the function to support more things, but for the first release, it should be as much restrictive as p

[issue37625] Class variable is still accessible after class instance has been overwritten out

2020-01-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg360765 ___ Python tracker ___ ___ Python-bugs-li

[issue37625] Class variable is still accessible after class instance has been overwritten out

2020-01-27 Thread Dominik Miedziński
Change by Dominik Miedziński : -- nosy: -miedzinski ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue39464] Allow translating argument error messages

2020-01-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue39464] Allow translating argparse error messages

2020-01-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- title: Allow translating argument error messages -> Allow translating argparse error messages ___ Python tracker ___ __

[issue39465] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2020-01-27 Thread Nick Coghlan
Change by Nick Coghlan : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue39465] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2020-01-27 Thread Nick Coghlan
New submission from Nick Coghlan : Both https://github.com/python/cpython/pull/18066 (collections module) and https://github.com/python/cpython/pull/18032 (asyncio module) ran into the problem where porting them to multi-phase initialisation involves replacing their usage of the `_Py_IDENTIFI

[issue37625] Class variable is still accessible after class instance has been overwritten out

2020-01-27 Thread chris
chris added the comment: Great and I look forward to getting more content. Incredibly great. https://logingit.com/dish-network-login/ -- ___ Python tracker ___ ___

[issue39104] ProcessPoolExecutor hangs on shutdown nowait with pickling failure

2020-01-27 Thread Patrick Buxton
Change by Patrick Buxton : -- nosy: +bquinlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue39464] Allow translating argument error messages

2020-01-27 Thread José Manuel Ferrer
New submission from José Manuel Ferrer : Argument error messages display the untranslatable text 'argument ', which should be translatable to other languages, just like it's possible to do with the rest of the constructed error message. -- components: Library (Lib) messages: 360764 nos

[issue39463] ast.Constant, bytes, and ast.unparse

2020-01-27 Thread Batuhan
Batuhan added the comment: > Maybe we need to clarify to the docs of 'unparse' that the AST object needs > to be valid. As I stated earlier, constant tuple like things are valid but don't fit on description. Maybe we should only offically allow things that can be generated by ast.parse? We

[issue33997] multiprocessing Pool hangs in terminate()

2020-01-27 Thread Alex Hall
Alex Hall added the comment: Sorry, I should have looked around more, I think my problem is https://bugs.python.org/issue22393 -- ___ Python tracker ___ _

[issue33997] multiprocessing Pool hangs in terminate()

2020-01-27 Thread Alex Hall
Alex Hall added the comment: I'm also experiencing hanging on terminate. I haven't made a debug build or anything but it's happening to me consistently on 3.8, although I haven't managed to create a small example to reproduce. Replacing pool.py with https://raw.githubusercontent.com/python/c

[issue39442] from __future__ import annotations makes dataclasses.Field.type a string, not type

2020-01-27 Thread Wojciech Łopata
Wojciech Łopata added the comment: I thought of this behaviour as a bug, because PEP 563 mentions breaking "applications depending on arbitrary objects to be directly present in annotations", while it is also breaking users of dataclasses.fields(), that is a part of the standard library. But

[issue39462] DataClass typo-unsafe attribute creation & unexpected behaviour (dataclasses)

2020-01-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue39463] ast.Constant, bytes, and ast.unparse

2020-01-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Maybe we need to clarify to the docs of 'unparse' that the AST object needs to be valid. -- ___ Python tracker ___ __

[issue39463] ast.Constant, bytes, and ast.unparse

2020-01-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg360757 ___ Python tracker ___ ___ Python-bugs-list

[issue39463] ast.Constant, bytes, and ast.unparse

2020-01-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > First, it breaks backward compatibility for older code that creates ast.Num > without specifying kind The ast changes during versions, and in the current master there are no "Num" nodes, so not much we could do there sadly. >Second, since bytes ar

[issue39463] ast.Constant, bytes, and ast.unparse

2020-01-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > First, it breaks backward compatibility for older code that creates ast.Num > without specifying kind The ast changes during versions, and in the current master there are no "Num" nodes, so not much we could do there safely. >Second, since bytes a

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-01-27 Thread STINNER Victor
Change by STINNER Victor : -- title: os.environ does not support Path-like values, but subprocess(..., env=...) does -> [RFE] os.environ should support Path-like values, like subprocess(..., env=...) type: -> enhancement ___ Python tracker

[issue39461] os.environ does not support Path-like values, but subprocess(..., env=...) does

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: subprocess.Popen encodes the env parameter using os.fsencode(). os.fsencode() has been patched in bpo-27182 to use os.fspath(): commit c1cbeedf0c650c3f7c64f04479070d39e15e1baf Author: Ethan Furman Date: Sat Jun 4 10:19:27 2016 -0700 issue27182: update

[issue39463] ast.Constant, bytes, and ast.unparse

2020-01-27 Thread Batuhan
Batuhan added the comment: Origin of this thread: https://github.com/simonpercivall/astunparse/pull/44 -- nosy: +BTaskaya, pablogsal ___ Python tracker ___ ___

[issue39463] ast.Constant, bytes, and ast.unparse

2020-01-27 Thread Tal Ben-Nun
Change by Tal Ben-Nun : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue39463] ast.Constant, bytes, and ast.unparse

2020-01-27 Thread Tal Ben-Nun
New submission from Tal Ben-Nun : In Python 3.8, the "kind" field was introduced into the Constant AST class. This brings about a problem when unparsing the AST for various packages. First, it breaks backward compatibility for older code that creates ast.Num without specifying kind (which is

[issue39462] DataClass typo-unsafe attribute creation & unexpected behaviour (dataclasses)

2020-01-27 Thread Marcel
Marcel added the comment: The demo-script also needs: "from dataclasses import dataclass" Sorry about this omission, I've attached the update -- Added file: https://bugs.python.org/file48866/bug_demo_dataclass_typo_unsafe.py ___ Python tracker

[issue39462] DataClass typo-unsafe attribute creation & unexpected behaviour (dataclasses)

2020-01-27 Thread Marcel
New submission from Marcel : After instantiation of a variable of a DataClass, it is possible to assign new attributes (that were not defined in defining the DataClass): data.new_attribute = 3.0 # does NOT raise Error! This gives unexpected behaviour: if you print the variable, then 'new_at

[issue39340] shutil.rmtree and write protected files

2020-01-27 Thread Peter Liedholm
Peter Liedholm added the comment: What I would expect is a consistent behaviour and as a user I am not interested in inner guts of differences between filesystems. Regards /Peter -- ___ Python tracker _

[issue39461] os.environ does not support Path-like values, but subprocess(..., env=...) does

2020-01-27 Thread Antony Lee
New submission from Antony Lee : As of Py3.8/Linux: In [1]: os.environ["foo"] = Path("bar") --- TypeError

[issue39320] Handle unpacking of */** arguments and rvalues in the compiler

2020-01-27 Thread Mark Shannon
Mark Shannon added the comment: New changeset 8a4cd700a7426341c2074a2b580306d2d60ec839 by Mark Shannon in branch 'master': bpo-39320: Handle unpacking of **values in compiler (GH-18141) https://github.com/python/cpython/commit/8a4cd700a7426341c2074a2b580306d2d60ec839 -- ___

[issue38337] inspect: getmembers calls properties

2020-01-27 Thread Jonas Drotleff
Jonas Drotleff added the comment: > Here is a link to the discussion of this on ideas Thank you for posting the link. I feel like I came to a dead end with this issue. As I am fairly new to CPython and have never contributed to this project before, I have no idea how to address this and to

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +Dormouse759 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-27 Thread STINNER Victor
New submission from STINNER Victor : s390x Fedora Rawhide 3.x: https://buildbot.python.org/all/#/builders/323/builds/6 == FAIL: test_add_file_after_2107 (test.test_zipfile.StoredTestsWithSourceFile)

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: Same error on x86 Gentoo Installed with X 3.x: https://buildbot.python.org/all/#/builders/128/builds/204 -- ___ Python tracker ___ __

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +dino.viehland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue39336] Immutable module type can't be used as package in custom loader

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x: bpo-39459. -- nosy: +vstinner ___ Python tracker ___

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: Test added in bpo-39336 by: commit 9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8 Author: Dino Viehland Date: Wed Jan 22 16:42:38 2020 -0800 bpo-39336: Allow packages to not let their child modules be set on them (#18006) * bpo-39336: Allow setattr

[issue39459] test_import: test_unwritable_module() fails on AMD64 Fedora Stable Clang Installed 3.x

2020-01-27 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Fedora Stable Clang Installed 3.x: https://buildbot.python.org/all/#/builders/127/builds/212 test_unwritable_module (test.test_import.CircularImportTests) ... ERROR == ERROR: test_unw

[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2020-01-27 Thread Kyle Stanley
Change by Kyle Stanley : -- keywords: +patch pull_requests: +17577 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18199 ___ Python tracker ___ ___

[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2020-01-27 Thread Kyle Stanley
Kyle Stanley added the comment: > The exception should probably be just ignored. It looks like the "ERROR_NETNAME_DELETED" (win32 error 64) exception is already ignored in multiprocessing's connection.wait(): https://github.com/python/cpython/blob/bccacd19fa7b56dcf2fbfab15992b6b94abb/Lib

[issue39380] ftplib uses latin-1 as default encoding

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: Before changing the default, I would prefer to see a PR adding an encoding parameter to the FTP constructor. -- ___ Python tracker ___ _

<    1   2