[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 ___ _

[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

[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 ___ ___

[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

[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

[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
Change by STINNER Victor : -- nosy: +dino.viehland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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 ___ __

[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)

[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

[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

[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 -- ___

[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

[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 _

[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

[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

[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

[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 Batuhan
Batuhan added the comment: Origin of this thread: https://github.com/simonpercivall/astunparse/pull/44 -- nosy: +BTaskaya, pablogsal ___ 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

[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

[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

[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
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: Maybe we need to clarify to the docs of 'unparse' that the AST object needs to be valid. -- ___ Python tracker ___ __

[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

[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

[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

[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 ___ _

[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

[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

[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

[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 ___ ___

[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

[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

[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 ___ __

[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

[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

[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

[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 __

[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

[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

[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: 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 ___

[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

[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
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 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. -- ___

[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 ___ _

[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

[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
Change by STINNER Victor : -- keywords: +patch pull_requests: +17580 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18203 ___ 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: > 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

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

2020-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Implicit conversion can also hide some bugs. Semantically os.environ is an str to str mapping and os.environb is a bytes to bytes mapping. -- nosy: +serhiy.storchaka ___ Python tracker

[issue39453] Use-after-free in list contain

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

[issue39453] Use-after-free in list contain

2020-01-27 Thread miss-islington
miss-islington added the comment: New changeset 9e1ed518a576897f914227bf538bac426a02a081 by Miss Islington (bot) (Dong-hee Na) in branch 'master': bpo-39453: Add testcase for bpo-39453 (GH-18202) https://github.com/python/cpython/commit/9e1ed518a576897f914227bf538bac426a02a081 -- no

[issue39453] Use-after-free in list contain

2020-01-27 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +17582 pull_request: https://github.com/python/cpython/pull/18205 ___ 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: New changeset 4a46adc7746930c4589ee483cad88d3f8504c045 by Victor Stinner in branch 'master': bpo-39459: test.pythoninfo logs effective uid/gid (GH-18203) https://github.com/python/cpython/commit/4a46adc7746930c4589ee483cad88d3f8504c045 -- _

[issue39466] Spam

2020-01-27 Thread Zachary Ware
Zachary Ware added the comment: I've removed the `User` role from that account since all of its posts have been spam; it will no longer be able to post. -- nosy: +zach.ware resolution: fixed -> not a bug title: Great -> Spam ___ Python tracker

[issue39453] Use-after-free in list contain

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

[issue39248] test_distutils fails on PPC64 Fedora 3.x: /tmp/subprocess.py

2020-01-27 Thread David Edelsohn
David Edelsohn added the comment: The file was created and owned by another user. I have removed the file. I have reached out to the user to find out why he is creating it. -- ___ 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 this example of implicit conversion is only for Path objects which are currently implicitly converted throughout the stdlib where appropriate, and this looks like one of those appropriate places. I don't know enough about os.environb to offer an opin

[issue38610] use-after-free in list object function

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

[issue38610] use-after-free in list object function

2020-01-27 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue39466] Spam

2020-01-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Zachary. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue39467] Allow to deprecate CLI arguments in argparse

2020-01-27 Thread hervé
New submission from hervé : Today it's not possible to deprecate CLI arguments designed with argparse, it could be useful to introduce deprecation feature in argparse to allow developers to inform their apps's users when an argument is planed to be removed in the future. -- components

[issue39467] Allow to deprecate CLI arguments in argparse

2020-01-27 Thread hervé
Change by hervé : -- keywords: +patch pull_requests: +17585 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18208 ___ Python tracker ___ ___

[issue39424] [easy] test_signal: test_pidfd_send_signal() uses deprecated assertRaisesRegexp() method

2020-01-27 Thread Hakan
Hakan added the comment: I want to work on this as my first contribution -- nosy: +hakancelik ___ Python tracker ___ ___ Python-bug

[issue39467] Allow to deprecate CLI arguments in argparse

2020-01-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +djarb, paul.j3, rhettinger -4383 ___ Python tracker ___ ___ Python-bugs-list mailing

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

2020-01-27 Thread Eryk Sun
Eryk Sun added the comment: Supporting __fspath__ for os.environ[b] makes it consistent with POSIX os.putenv, which already supports it via PyUnicode_FSConverter. For example: os.putenv(Path('spam'), Path('eggs')) getenv = ctypes.CDLL('libc.so.6').getenv getenv.restype = ctypes.c_

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

2020-01-27 Thread Dino Viehland
Dino Viehland added the comment: The curious thing about this is other tests in CircularImportTests are importing packages from test.test_import.data in the exact same way. -- ___ Python tracker ___

[issue39468] .python_history write permission improvements

2020-01-27 Thread Aurora
New submission from Aurora : On a typical Linux system, if you run 'chattr +i /home/user/.python_history', and then run python, then exit, the following error message will be printed out: Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/usr/local/lib/python3.9/site.py

[issue39468] .python_history write permission improvements

2020-01-27 Thread Aurora
Aurora added the comment: https://github.com/opensource-assist/cpython/blob/opensource-assist-patch-sitepy-1/Lib/site.py -- ___ 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: > AMD64 Fedora Stable Clang Installed 3.x: > https://buildbot.python.org/all/#/builders/127/builds/212 So, I added effective uid/gid to pythoninfo, here you have: os.getegid: 1000 os.geteuid: 1000 os.getgid: 1000 os.getgrouplist: 1000 os.getgroups: 1000 os.ge

[issue39468] .python_history write permission improvements

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

[issue39468] .python_history write permission improvements

2020-01-27 Thread Aurora
Change by Aurora : -- pull_requests: -17586 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue39468] .python_history write permission improvements

2020-01-27 Thread Aurora
Change by Aurora : -- pull_requests: +17589 pull_request: https://github.com/python/cpython/pull/18210 ___ Python tracker ___ ___ Py

[issue39430] tarfile.open(mode="r") race condition when importing lzma

2020-01-27 Thread Brett Cannon
Brett Cannon added the comment: > When was this change made? It has always been this way, so no change here. We have actually improved the situation over the years with attempts at better locking in importlib itself. -- ___ Python tracker

[issue39468] .python_history write permission improvements

2020-01-27 Thread SilentGhost
SilentGhost added the comment: 1. Your PR contains unrelated changes 2. Please test your code: submitting syntactically incorrect code just wastes everyone's time -- nosy: +SilentGhost ___ Python tracker __

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

2020-01-27 Thread Brett Cannon
Brett Cannon added the comment: I don't think this should be done (and I honestly would have disagreed with the Popen change for its 'env' argument or any other place that is dealing with environment variables). Environment variables are strings, period, so they should be specified as such;

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

2020-01-27 Thread Brett Cannon
Brett Cannon added the comment: Was the Makefile updated to install Lib/test/test_import/date/unwritable? -- nosy: +brett.cannon ___ Python tracker ___ ___

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

2020-01-27 Thread Dino Viehland
Dino Viehland added the comment: Ahh, that's probably it Brett, I didn't know that was there, thanks! -- ___ Python tracker ___ ___

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

2020-01-27 Thread Dino Viehland
Change by Dino Viehland : -- pull_requests: +17590 pull_request: https://github.com/python/cpython/pull/18211 ___ 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: > I don't think this should be done (and I honestly would have disagreed with > the Popen change for its 'env' argument or any other place that is dealing > with environment variables). Environment variables are strings, period, so > they should be specified

[issue39469] Support for relative home path in pyvenv.cfg

2020-01-27 Thread Jeff Edwards
New submission from Jeff Edwards : Currently, the interpreter only supports absolute paths for the 'home' directory in the pyvenv.cfg file. While this works when the interpreter is always installed at a fixed location, it impacts the portability of virtual environments and can make it notabl

[issue38631] Replace Py_FatalError() with regular Python exceptions

2020-01-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17591 pull_request: https://github.com/python/cpython/pull/18212 ___ Python tracker ___ __

[issue39469] Support for relative home path in pyvenv.cfg

2020-01-27 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +17592 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18213 ___ Python tracker ___ __

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

2020-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Path-like objects are now unintentionally accepted for many non-path things, like hostname in socket.sethostname() and username in os.initgroups(). I also think it was a mistake, and we should not make new mistakes. --

[issue38631] Replace Py_FatalError() with regular Python exceptions

2020-01-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17594 pull_request: https://github.com/python/cpython/pull/18214 ___ Python tracker ___ __

[issue39248] test_distutils fails on PPC64 Fedora 3.x: /tmp/subprocess.py

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: The buildbot is back to green, thank you David :-) https://buildbot.python.org/all/#/builders/8/builds/254 -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue39282] python-config --embed documentation

2020-01-27 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Leaving this for @victor to decide since he is the PR author. -- nosy: +nanjekyejoannah, vstinner ___ Python tracker ___ __

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

2020-01-27 Thread Eryk Sun
Eryk Sun added the comment: > I honestly would have disagreed with the Popen change for its 'env' > argument or any other place that is dealing with environment > variables os.spawnve (Windows) and os.execve support __fspath__ for the env dict partially due to me (bpo-28114), so sorry if th

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

2020-01-27 Thread Ethan Furman
Ethan Furman added the comment: The idea behind PEP 519 was to alleviate str(path_obj) calls between the os/program interface. We can either make that as consistent as we can as we find places that still require the str(path_obj) idiom, or we can make users remember which ones do, and which

[issue39430] tarfile.open(mode="r") race condition when importing lzma

2020-01-27 Thread Ethan Furman
Ethan Furman added the comment: Cool. I appreciate all the work in this area, thank you! -- ___ Python tracker ___ ___ Python-bugs

[issue38631] Replace Py_FatalError() with regular Python exceptions

2020-01-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17595 pull_request: https://github.com/python/cpython/pull/18215 ___ Python tracker ___ __

[issue38631] Replace Py_FatalError() with regular Python exceptions

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset a94c6b61aa5c09237b8105e5aee638cd54197b6f by Victor Stinner in branch 'master': bpo-38631: Avoid Py_FatalError() in PyModule_Create2() (GH-18212) https://github.com/python/cpython/commit/a94c6b61aa5c09237b8105e5aee638cd54197b6f --

[issue38631] Replace Py_FatalError() with regular Python exceptions

2020-01-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 47ee8a6063c22ec272fe7a2d95d12f7811ebb48b by Victor Stinner in branch 'master': bpo-38631: Avoid Py_FatalError() in _memory_release() (GH-18214) https://github.com/python/cpython/commit/47ee8a6063c22ec272fe7a2d95d12f7811ebb48b -- _

[issue39470] Indicate that os.makedirs is equivalent to Path.mkdir

2020-01-27 Thread Joannah Nanjekye
New submission from Joannah Nanjekye : :func:`os.makedirs` is equivalent to ``mkdir -p`` and :meth:`Path.mkdir()` when given an optional *exist_ok* argument. -- messages: 360808 nosy: nanjekyejoannah priority: normal severity: normal status: open title: Indicate that os.makedirs is equ

  1   2   >