[issue41354] filecmp.cmp documentation does not match actual code

2020-12-27 Thread Christof Hanke
Christof Hanke added the comment: I understand that you are reluctant to change existing code. But for me as a sysadmin, the current behavior doesn't make sense for two reasons: * st.st_size is part of _sig. why would you do a deep compare if the two files have a different length ? *

[issue42736] Add support for making Linux prctl(...) calls to subprocess

2020-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: Felt and understood. The plethora of things to do between (v)fork+exec really makes me wish for a "little" eBPF interpreter rather than needing so much specific plumbing. But that'd have the same problem as preexec_fn: in absence of something that

[issue42763] Exposing a race in the "_warnings" resulting Python parser crash

2020-12-27 Thread Xinmeng Xia
New submission from Xinmeng Xia : This program is initially from "cpython/Lib/test/crashers/warnings_del_crasher.py" in Python 2.7. The original case is fixed for all version of Python and removed from "crashers" directory. However, if we replace the statement "for i in range(10):" of

[issue42762] infinite loop resulted by "yield"

2020-12-27 Thread Xinmeng Xia
New submission from Xinmeng Xia : Let's see the following program: def foo(): try: yield except: yield from foo() for m in foo(): print(i) === Expected output: On line"print(i)", NameError: name 'i' is not

[issue23328] urllib.request fails for proxy credentials that contain a '/' character

2020-12-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: https://github.com/python/cpython/pull/23973 will resolve this issue. The issue was localized to _parse_proxy method in urllib2. -- ___ Python tracker

[issue23328] urllib.request fails for proxy credentials that contain a '/' character

2020-12-27 Thread Senthil Kumaran
Change by Senthil Kumaran : -- keywords: +patch pull_requests: +22818 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23973 ___ Python tracker

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

2020-12-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 897387d2c8a956e74770c6bdd0447dfec61e8e27 by Erlend Egeberg Aasland in branch 'master': bpo-1635741: sqlite3: Fix ref leak introduced by commit bf64d90 (GH-23972) https://github.com/python/cpython/commit/897387d2c8a956e74770c6bdd0447dfec61e8e27

[issue42758] pathlib.Path to support the "in" operator (x in y)

2020-12-27 Thread Eric V. Smith
Change by Eric V. Smith : -- versions: -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42758] pathlib.Path to support the "in" operator (x in y)

2020-12-27 Thread Eric V. Smith
Eric V. Smith added the comment: Can you describe what this would do? How is it different from path.is_relative_to(other_path)? >>> import pathlib >>> pathlib.Path('/home/Torxed/machine.qcow2').is_relative_to(pathlib.Path('/home/Torxed')) True -- nosy: +eric.smith

[issue42513] Socket.recv hangs

2020-12-27 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40288] [subinterpreters] atexit module should not be loaded more than once per interpreter

2020-12-27 Thread STINNER Victor
STINNER Victor added the comment: Fixed by bpo-42639. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Make atexit state per interpreter ___ Python tracker

[issue42761] Why does python's Popen fail to pass environment variables on Mac OS X?

2020-12-27 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42761] Why does python's Popen fail to pass environment variables on Mac OS X?

2020-12-27 Thread AustEcon
New submission from AustEcon : I have described the issue in a stackoverflow question here: https://stackoverflow.com/questions/65466303/why-does-pythons-popen-fail-to-pass-environment-variables-on-mac-os-x In summary, I want to pass environment variables to a child process on Mac OS (Big

[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2020-12-27 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: You a totally right, looks like I tried to add a feature that no one asked for:) I have updated PR and removed `name` parameter from `property` constuctor. Thanks for your advice. -- ___

[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2020-12-27 Thread STINNER Victor
STINNER Victor added the comment: FYI I wrote an article about this issue: "Isolate Python Subinterpreters" https://vstinner.github.io/isolate-subinterpreters.html -- ___ Python tracker

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

2020-12-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22817 pull_request: https://github.com/python/cpython/pull/23972 ___ Python tracker ___

[issue42755] sqlite3.Connection.backup default value is diffrent between implmentation and docs

2020-12-27 Thread miss-islington
miss-islington added the comment: New changeset 9f6a37cc072dab9f9a13d491d3592d23d9809d2b by Miss Islington (bot) in branch '3.9': bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965) https://github.com/python/cpython/commit/9f6a37cc072dab9f9a13d491d3592d23d9809d2b -- nosy:

[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2020-12-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > In my opinion, it's expected behavior that `name` is > overwritten by `__set_name__` method. It is almost certain that there will be others won't share that expectation. The StackOverflow questions and bug reports are inevitable. Most examples of

[issue42736] Add support for making Linux prctl(...) calls to subprocess

2020-12-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Sun, Dec 27, 2020, at 14:53, Gregory P. Smith wrote: > Most prctl uses I noticed were PDEATHSIG but I'd need to explicitly > audit those. Users don't seem to care about it's documented main > thread caveat (which matches what I've seen; most programs

[issue42755] sqlite3.Connection.backup default value is diffrent between implmentation and docs

2020-12-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42755] sqlite3.Connection.backup default value is diffrent between implmentation and docs

2020-12-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +22816 pull_request: https://github.com/python/cpython/pull/23971 ___ Python tracker ___

[issue42755] sqlite3.Connection.backup default value is diffrent between implmentation and docs

2020-12-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22815 pull_request: https://github.com/python/cpython/pull/23970 ___ Python tracker

[issue42755] sqlite3.Connection.backup default value is diffrent between implmentation and docs

2020-12-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset abba83b4b91f78dc556dc0b7700ecb46cba22c01 by Erlend Egeberg Aasland in branch 'master': bpo-42755: Fix sqlite3.Connection.backup docs (GH-23965) https://github.com/python/cpython/commit/abba83b4b91f78dc556dc0b7700ecb46cba22c01

[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2020-12-27 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: Raymond, it's a good question. I have added `name` to `property` constructor to support cases when a property is added to a class after it was declared. For instance: ``` class Foo: pass Foo.foo = property(name='foo') f = Foo()

[issue42736] Add support for making Linux prctl(...) calls to subprocess

2020-12-27 Thread STINNER Victor
STINNER Victor added the comment: I agree that it would be nice to pack these parameters, similar to the Windows STARTUPINFO. The subprocess.Popen constructor has more and more parameter for functions executed between fork and exec: def __init__(self, args, bufsize=-1, executable=None,

[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2020-12-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yurii, this looks nice. I question whether *name* should be a part of the constructor because it immediately gets overridden by __set_name__ method. >>> class A: ...def x(self): ...return 44 ...x = property(x, name='y') ... >>>

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-27 Thread Ross Rhodes
Ross Rhodes added the comment: Hello Wüstengecko, Thanks for raising this issue. I've opened a PR which I believe will resolve the problem, but it's difficult to verify this against the mock socket setup. Feel free to leave feedback. -- ___

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-27 Thread Ross Rhodes
Change by Ross Rhodes : -- keywords: +patch nosy: +trrhodes nosy_count: 1.0 -> 2.0 pull_requests: +22814 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23969 ___ Python tracker

[issue42736] Add support for making Linux prctl(...) calls to subprocess

2020-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the golang SysProcAttr reference. The internals of _posixsubprocess have already becoming unwieldy with the abundance of args. Such a struct/object would also fit in well there and avoid excessive C stack use. (as izbyshev noted during the

[issue42753] "./configure" linux chrome beta

2020-12-27 Thread Gerrik Labra
Gerrik Labra added the comment: I do not have a C compiler. I do know from the chromebook support that my version of Linux is Debian. So I have that to work with. -- ___ Python tracker

[issue42750] tkinter.Variable equality inconsistency

2020-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You confuse variable and its value. tkinter.Variable is not a data container like list. It is a reference to external resource, Tcl variable, which contains value. If different Variable instances refer to different Tcl variables, they are different, even

[issue38435] Start the deprecation cycle for subprocess preexec_fn

2020-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: > "using Python is more portable than relying on a shell." Not in environments I use. :) There isn't an installed python interpreter that can be executed when deploying Python as an embedded interpreter such as anyone using pyoxidizer or similar. Plus

[issue42760] inspect.iscoroutine returns False for asynchronous generator functions

2020-12-27 Thread Paolo Lammens
New submission from Paolo Lammens : The `inspect.iscoroutinefunction` and `inspect.iscoroutine` functions return `False` for the `asend`, `athrow` and `aclose` methods of asynchronous generators (PEP 525). These are coroutine functions (i.e. one does e.g. `await gen.asend(value)`) so I would

[issue42738] subprocess: don't close all file descriptors by default (close_fds=False)

2020-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: Note that vfork() support has been merged for 3.10 via bpo-35823, so posix_spawn() is less of a performance carrot than it used to be on Linux. vfork() exists macOS, that code could likely be enabled there after some investigation+testing. Regardless,

[issue42759] Take into acount a Tcl interpreter when compare variables and fonts

2020-12-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +22813 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23968 ___ Python tracker

[issue42759] Take into acount a Tcl interpreter when compare variables and fonts

2020-12-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently instances of tkinter.Variable and tkinter.font.Font are considered equal when they have the same name even if they belong to different Tcl interpreters. But Tcl interpreters are isolated, and variables and fonts in different interpreters refer

[issue41450] OSError is not documented in ssl library, but still can be thrown

2020-12-27 Thread Senthil Kumaran
Change by Senthil Kumaran : -- components: +Library (Lib) -Documentation versions: +Python 3.10, Python 3.9 ___ Python tracker ___

[issue42093] Add opcode cache for LOAD_ATTR

2020-12-27 Thread Guido van Rossum
Guido van Rossum added the comment: Wow, this is amazing. I just found that this is now faster than slots. Should we mention that in What's New? (Of course there's an optimization possible for slots as well, but it would require complicating the cache struct. Maybe in 3.11. :-) --

[issue41450] OSError is not documented in ssl library, but still can be thrown

2020-12-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is resolved by Issue 31122 and code now raises SSLEOFError instead of OSError. The reason for OSError in the first place was PySSL_SetError function had the following call s->errorhandler();

[issue42758] pathlib.Path to support the "in" operator (x in y)

2020-12-27 Thread Anton Hvornum
New submission from Anton Hvornum : I would like to propose that the `pathlib.Path()` gets a `in` operator, much like that ipaddress has IP in Subnet, it would be nice if we could be able to do: ``` import pathlib pathlib.Path('/home/Torxed/machine.qcow2')

[issue42757] Class has two prototypes

2020-12-27 Thread Johann Bernhardt
New submission from Johann Bernhardt : Greetings, tl;dr Depending on how a class is imported it will have a differenct class name and therefore prototype. I ran into this issue when i used a class variable to implement an event bus. To reproduce you need a module and a submodule. The

[issue42747] Remove Py_TPFLAGS_HAVE_VERSION_TAG flag?

2020-12-27 Thread hai shi
hai shi added the comment: >I don't see the purpose of the Py_TPFLAGS_HAVE_VERSION_TAG flag. IMO, There have no more exact description of `Py_TPFLAGS_HAVE_VERSION_TAG`in docs, so I perfer to remove it. > By the way, is it worth it to remove Py_TPFLAGS_HAVE_FINALIZE? Or is it going > to

[issue28964] AST literal_eval exceptions provide no information about line number

2020-12-27 Thread Steve Merritt
Steve Merritt added the comment: Thank you! On Fri, Dec 25, 2020 at 11:05 AM Batuhan Taskaya wrote: > > Change by Batuhan Taskaya : > > > -- > resolution: -> fixed > stage: patch review -> resolved > status: open -> closed > > ___ > Python

[issue42750] tkinter.Variable equality inconsistency

2020-12-27 Thread Ivo Shipkaliev
Ivo Shipkaliev added the comment: "I personally think that being able to compare whether two tkinter variables point to the same Tk variable is very useful so needs to stay in some form." -- I concur. "However, I don't see any situation where comparing to see if two tkinter variables are

[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2020-12-27 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: I have implemented this feature using an idea provided by Xiang Zhang. Basically, property has new optional attribute `name` which will be added to msg of `AttributeError` in a case when `name` is set. --

[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2020-12-27 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch nosy: +uriyyo nosy_count: 8.0 -> 9.0 pull_requests: +22812 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23967 ___ Python tracker

[issue42513] Socket.recv hangs

2020-12-27 Thread Barney Stratford
Barney Stratford added the comment: Still waiting for the instrumented code to hang. It sometimes runs for a month or two before freezing. -- ___ Python tracker ___

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +22811 pull_request: https://github.com/python/cpython/pull/23966 ___ Python tracker ___

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-27 Thread Wüstengecko
New submission from Wüstengecko : Since Python 3.9, calling `smtplib.LMTP.connect()` without explicitly specifying any `timeout=` raises a `TypeError`. Specifying `None` or any integer value works correctly. ``` >>> import smtplib >>> smtplib.LMTP("/tmp/lmtp.sock") Traceback (most recent call

[issue42750] tkinter.Variable equality inconsistency

2020-12-27 Thread E. Paine
E. Paine added the comment: See also issue41851. I personally think that being able to compare whether two tkinter variables point to the same Tk variable is very useful so needs to stay in some form. However, I don't see any situation where comparing to see if two tkinter variables are the

[issue40077] Convert static types to heap types: use PyType_FromSpec()

2020-12-27 Thread STINNER Victor
STINNER Victor added the comment: Progress: 43% (89/206) of types are declared as heap types on a total of 206 types. $ grep -E 'static PyTypeObject .* =' $(find -name "*.c"|grep -v Doc/)|wc -l 117 $ grep -E 'PyType_Spec .* =' $(find -name "*.c")|wc -l 89 --

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

2020-12-27 Thread STINNER Victor
STINNER Victor added the comment: Progress: 77% (102/132) of extension modules use the new C API. I used different grep commands to count *all* extension modules, not only the Modules/ directory: $ grep -E '\' $(find -name "*.c"|grep -v Doc/|grep -v moduleobject.c)|wc -l 30 $ grep -E '\'

[issue42753] "./configure" linux chrome beta

2020-12-27 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Build -Installation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42753] "./configure" linux chrome beta

2020-12-27 Thread Eric V. Smith
Eric V. Smith added the comment: Do you have a C compiler installed? It's mentioned here https://devguide.python.org/setup/#unixhttps://devguide.python.org/setup/#unix I found a number of guides for building Python on Chromebooks via searching. I don't have any experience, so I'm not going

[issue42724] Change library name when building.

2020-12-27 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-27 Thread STINNER Victor
STINNER Victor added the comment: > New changeset dda12ad63e927e93d71462ad77cc84da55bada9b by Miss Islington > (bot) in branch '3.9': > bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic > linked with Tk >= 8.5 (GH-23955) test_tcl still fails on POWER6 AIX 3.9:

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

2020-12-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset bf64d9064ab641b1ef9a0c4bda097ebf1204faf4 by Erlend Egeberg Aasland in branch 'master': bpo-1635741: sqlite3 uses Py_NewRef/Py_XNewRef (GH-23170) https://github.com/python/cpython/commit/bf64d9064ab641b1ef9a0c4bda097ebf1204faf4 --

[issue42750] tkinter.Variable equality inconsistency

2020-12-27 Thread Ivo Shipkaliev
Change by Ivo Shipkaliev : -- title: tkinter.Variable equality consistency -> tkinter.Variable equality inconsistency ___ Python tracker ___

[issue42755] sqlite3.Connection.backup default value is diffrent between implmentation and docs

2020-12-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +22810 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23965 ___ Python tracker

[issue40956] Use Argument Clinic in sqlite3

2020-12-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +22809 pull_request: https://github.com/python/cpython/pull/23964 ___ Python tracker ___

[issue42740] typing.py get_args and get_origin should support PEP 604 and 612

2020-12-27 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +22808 pull_request: https://github.com/python/cpython/pull/23963 ___ Python tracker ___ ___

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test should be fixed now, but there is a configuration issue. -- nosy: +Michael.Felt versions: +Python 3.10, Python 3.8 ___ Python tracker

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9d7c5ab6a4ae9d69b39bd16c3195bf6405ddc2d1 by Miss Islington (bot) in branch '3.8': bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked with Tk >= 8.5 (GH-23955) (GH-23962)

[issue40956] Use Argument Clinic in sqlite3

2020-12-27 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 3ccef1ca474592e191a00e131dfbaf777db271e9 by Erlend Egeberg Aasland in branch 'master': bpo-40956: Convert _sqlite3.Connection to Argument Clinic, part 2 (GH-23838) https://github.com/python/cpython/commit/3ccef1ca474592e191a00e131dfbaf777db271e9

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-27 Thread miss-islington
miss-islington added the comment: New changeset dda12ad63e927e93d71462ad77cc84da55bada9b by Miss Islington (bot) in branch '3.9': bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked with Tk >= 8.5 (GH-23955)

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +22807 pull_request: https://github.com/python/cpython/pull/23962 ___ Python tracker ___

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +22806 pull_request: https://github.com/python/cpython/pull/23961 ___ Python tracker

[issue42749] test_tcl failed on 32-bit POWER6 AIX 3.9: big int issue with 9223372036854775808

2020-12-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b02ad2458bc127a7afdeef414fa68c9a7f1f32af by Serhiy Storchaka in branch 'master': bpo-42749: Fix testing bignum if Tkinter is compiled with Tk 8.4 and dynamic linked with Tk >= 8.5 (GH-23955)

[issue42755] sqlite3.Connection.backup default value is diffrent between implmentation and docs

2020-12-27 Thread Dong-hee Na
New submission from Dong-hee Na : Docs says that pages default value is 0 but the implementation is -1 docs: https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.backup impl: