Re: How to access a variable from one tab in another tab of a notebook?

2021-04-07 Thread Mohsen Owzar
Alan Gauld schrieb am Donnerstag, 8. April 2021 um 02:05:01 UTC+2: > On 07/04/2021 09:35, Mohsen Owzar wrote: > > > The problem is that I can't use the variable "val" from Tab2 in Tab 1, > > # Filename: Tab1.py > > from tkinter import * > > > > def gen_t1(frame): > > f = LabelFrame(frame,

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-04-07 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane nosy_count: 5.0 -> 6.0 pull_requests: +24008 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25272 ___ Python tracker

[issue43712] PEP 597: fileinput uses locale encoding

2021-04-07 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +24007 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25272 ___ Python tracker ___

[issue930024] os.path.realpath can't handle symlink loops

2021-04-07 Thread Barney Gale
Change by Barney Gale : -- nosy: +barneygale nosy_count: 3.0 -> 4.0 pull_requests: +24006 pull_request: https://github.com/python/cpython/pull/25264 ___ Python tracker ___

[issue36865] FileInput does not allow 'rt' mode, but all its existing delegates do

2021-04-07 Thread Inada Naoki
Inada Naoki added the comment: I don't think we should support "text for regular file but binary for compressed file" mode in FileInput. So no need to add 't'. We should just fix #5758. -- nosy: +methane resolution: -> duplicate stage: patch review -> resolved status: open -> closed

[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-07 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +24004 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25271 ___ Python tracker ___

[issue24132] Direct sub-classing of pathlib.Path

2021-04-07 Thread Barney Gale
Change by Barney Gale : -- pull_requests: +24005 pull_request: https://github.com/python/cpython/pull/25271 ___ Python tracker ___

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-07 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27002] Support different modes in posixpath.realpath()

2021-04-07 Thread Barney Gale
Barney Gale added the comment: Just stumbled upon this issue after submitting a PR: https://github.com/python/cpython/pull/25264 In my PR, `strict=False` is like `--canonicalize-missing`, and `strict=True` is like `--canonicalize-existing`. Looks like our patches are along similar lines.

[issue43754] Eliminate bindings for partial pattern matches

2021-04-07 Thread Brandt Bucher
Brandt Bucher added the comment: Guido informed me that Mark is currently maintaining a PEP 653 implementation branch. I checked it out today, and it looks like it has *lots* of conflicts with this one. For the time being, I'm going to experiment with other ways of accomplishing this that

Re: How to access a variable from one tab in another tab of a notebook?

2021-04-07 Thread Alan Gauld via Python-list
On 07/04/2021 09:35, Mohsen Owzar wrote: > The problem is that I can't use the variable "val" from Tab2 in Tab 1, > # Filename: Tab1.py > from tkinter import * > > def gen_t1(frame): > f = LabelFrame(frame, text='f', bg='lightgreen') > f.pack(expand=True, fill='both') > > b1 = Button(f,

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-07 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2021-04-07 Thread Ethan Furman
Ethan Furman added the comment: I think the best solution, albeit slightly backwards incompatible, is to change NamedTemporaryFile such that if (and only if) it is being used as a context manager, the underlying file is not closed until the context manager ends. This should be the default

[issue15443] datetime module has no support for nanoseconds

2021-04-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-07 Thread Eryk Sun
Eryk Sun added the comment: For a "~user" path, the value of userhome should always be used if target_user == current_user. If for some reason the USERPROFILE environment variable isn't defined, the fallback "%HOMEDRIVE%%HOMEPATH%" does not necessarily end in the user's name. Example

[issue43682] Make static methods created by @staticmethod callable

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: > If make staticmethod a calllable and always wrap open, we need to change also > its repr and add the __doc__ attribute (and perhaps other attributes to make > it more interchangeable with the original function). You right and I like this

[issue43682] Make static methods created by @staticmethod callable

2021-04-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24003 pull_request: https://github.com/python/cpython/pull/25268 ___ Python tracker ___

[issue31861] add aiter() and anext() functions

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: I proposed to PR 25266 to rename PyAnextAwaitable_Type to _PyAnextAwaitable_Type, and to initialize the type at Python startup: can someone please have a look? -- nosy: +vstinner ___ Python tracker

[issue43770] Rework C types initialization

2021-04-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24002 pull_request: https://github.com/python/cpython/pull/25266 ___ Python tracker ___

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset 3f3d82b84823eb28abeedf317bbe107bbe7f6492 by Barney Gale in branch 'master': bpo-39899: os.path.expanduser(): don't guess other Windows users' home directories if the basename of the current user's home directory doesn't match their username.

[issue43770] Rework C types initialization

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset df5dc1c7a536abc2b497cb9506f8a37949838309 by Victor Stinner in branch 'master': bpo-43770: _PyTypes_Init() inits more static types (GH-25265) https://github.com/python/cpython/commit/df5dc1c7a536abc2b497cb9506f8a37949838309 --

[issue43751] await anext() returns None when default is given

2021-04-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: Okay, the PR should fix those problems now. I am still apprehensive about whether all of the corner cases are covered, so reviews are welcome, as are suggestions of more test cases. -- ___ Python tracker

[issue43770] Rework C types initialization

2021-04-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24001 pull_request: https://github.com/python/cpython/pull/25265 ___ Python tracker ___

[issue15443] datetime module has no support for nanoseconds

2021-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > In telemetry, a nanosecond often translates to about a foot and 5 hours gets you to Pluto. Telemetry is exactly an application where absolute timestamps rarely make any sense. -- ___ Python tracker

[issue43770] Rework C types initialization

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset a518099078c8ae51860009fb801db897af9eed62 by Victor Stinner in branch 'master': bpo-43770: Sort types in _PyTypes_Init() (GH-25263) https://github.com/python/cpython/commit/a518099078c8ae51860009fb801db897af9eed62 --

[issue42247] unittest hides traceback frames in chained exceptions

2021-04-07 Thread Irit Katriel
Irit Katriel added the comment: I think this is the same as issue37712. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37712] Exception frames from unittest.TestCase.fail dependent on nesting

2021-04-07 Thread Irit Katriel
Irit Katriel added the comment: I think this is the same as issue42247. -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue43769] ipaddress module takes bytes input as valid ip address

2021-04-07 Thread Philip Bond
Philip Bond added the comment: Thanks Eric. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-04-07 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +24000 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25264 ___ Python tracker ___

[issue15443] datetime module has no support for nanoseconds

2021-04-07 Thread mdcb
mdcb added the comment: This brings me back some times. Sorry if I am not up to date, the issue as I recall from back then was there wasn't even microseconds. In telemetry, you can often have these kind time stamped measurements, it's not insignificant noise nobody cares about. --

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-04-07 Thread Miro Hrončok
Miro Hrončok added the comment: Python 3.10.0a7 with OpenSSL 3.0 from https://copr.fedorainfracloud.org/coprs/saprasad/openssl-3.0/ in https://copr.fedorainfracloud.org/coprs/g/python/openssl-3.0/package/python3.10/ (full logs available there). 3 tests failed: test_imaplib test_ssl

[issue43770] Rework C types initialization

2021-04-07 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +23999 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25263 ___ Python tracker ___

pandas/jupyther notebook?

2021-04-07 Thread Jim Byrnes
linux mint 20 python 3.8 jupyter 1.0.0 jedi 0.18.0 I am teaching myself pandas/jupyter notebooks. The problem I am having is tab autocomplete seems to be working erratically. Googling shows that most people solve autocomplete problems by putting import pandas as pd %config

[issue43770] Rework C types initialization

2021-04-07 Thread STINNER Victor
New submission from STINNER Victor : Currently, PyType_Ready() is called late on many static types, which can lead to bugs. For example, PyObject_SetAttr() can fail if the type of the object is not ready yet. PyType_Read() is responsible to initialize tp_getattro and tp_setattro members of

[issue15443] datetime module has no support for nanoseconds

2021-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Is there high enough demand for nanoseconds in datetime and time instances? How often nanosecond timestamps contain anything other than 0s or garbage in the last three digits? In my experience, all people want to do with such timestamps is to convert

[issue43769] ipaddress module takes bytes input as valid ip address

2021-04-07 Thread Eric V. Smith
Eric V. Smith added the comment: This is documented behavior. See https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Address "The following constitutes a valid IPv4 address: ... An integer packed into a bytes object of length 4 (most significant octet first). " And the

[issue43769] ipaddress module takes bytes input as valid ip address

2021-04-07 Thread Eric V. Smith
Eric V. Smith added the comment: The reproducer is: >>> ipaddress.IPv4Address(b"PING") IPv4Address('80.73.78.71') -- components: +Library (Lib) -Unicode nosy: +eric.smith ___ Python tracker

[issue43769] ipaddress module takes bytes input as valid ip address

2021-04-07 Thread Philip Bond
Philip Bond added the comment: To replicate ./cidr-gen.py google.com You will see the IP variable is a Russian IP but that was a red herring, I initially thought its was a compromised module. -- ___ Python tracker

[issue15443] datetime module has no support for nanoseconds

2021-04-07 Thread Paul Ganssle
Paul Ganssle added the comment: > I don't think full nanosecond support is feasible to complete in the > remaining weeks This may be so, but I think the important part of that question is "what work needs to be done and what questions need to be answered?" If the answer is that we need to

[issue43769] ipaddress module takes bytes input as valid ip address

2021-04-07 Thread Philip Bond
New submission from Philip Bond : Hi I came across an issue with the ipaddress module where it doesent raise a ValueError when passed a non IP address. Example see attached file use tabs for indents and that doesent work with the form. What happens is it when it takes b'PING' as the call

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-07 Thread Barney Gale
Barney Gale added the comment: Apologies, I think I started writing a comment before your reply was posted, which undid your changes. -- resolution: not a bug -> status: closed -> open versions: +Python 3.10 -Python 3.9 ___ Python tracker

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-07 Thread Eryk Sun
Eryk Sun added the comment: > The 3.8 backport is much more complicated, as we don't have access to > the PathSkipRoot function there. So we can't use the native function. I guess you missed the comment that I left on the PR a few days ago. The 3.8 backport can use the older PathSkipRootW()

[issue42923] Py_FatalError(): dump the list of extension modules

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3d55aa9e7365af76e40680271328deece27a7339 by Victor Stinner in branch 'master': bpo-42923: Fix _Py_DumpExtensionModules() for NULL sysdict (GH-25262) https://github.com/python/cpython/commit/3d55aa9e7365af76e40680271328deece27a7339 --

[issue42923] Py_FatalError(): dump the list of extension modules

2021-04-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23998 pull_request: https://github.com/python/cpython/pull/25262 ___ Python tracker ___

[issue15443] datetime module has no support for nanoseconds

2021-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: @pganssle - let's keep the substantive discussions in the tracker so that they are not lost on github. You wrote: """ what is still blocking / needs to be done on this? Beta freeze for Python 3.10 is coming up at the beginning of May and I think we

[issue43766] Implement PEP 647 (User-Defined Type Guards) in typing.py

2021-04-07 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43244] Move PyArena C API to the internal C API

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: "Remove Yield macro from pycore_ast.h" I'm happy that this one is gone, it was a common and annoying compiler warning on Windows! -- ___ Python tracker

[issue43244] Move PyArena C API to the internal C API

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset d27f8d2e07d31670af469ef387a37bc9e96ea8ad by Victor Stinner in branch 'master': bpo-43244: Rename pycore_ast.h functions to _PyAST_xxx() (GH-25252) https://github.com/python/cpython/commit/d27f8d2e07d31670af469ef387a37bc9e96ea8ad --

[issue43767] Compiler arning about 'Yield' macro redefinition on Windows

2021-04-07 Thread STINNER Victor
Change by STINNER Victor : -- superseder: -> Move PyArena C API to the internal C API ___ Python tracker ___ ___ Python-bugs-list

[issue36540] PEP 570: Python Positional-Only Parameters

2021-04-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3b1cf202976d9590d5b453c47b883f2e7cd1a7a5 by Saiyang Gou in branch '3.9': [3.9] bpo-36540: Improve doc of function definition regarding positional-only arguments (GH-25235) (GH-25259)

[issue36540] PEP 570: Python Positional-Only Parameters

2021-04-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4554ab435727a0f3b6441c9c1a8d3fe6534433c7 by Saiyang Gou in branch '3.8': [3.8] bpo-36540: Improve doc of function definition regarding positional-only arguments (GH-25235) (GH-25260)

[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: PR 25227: I reimplemented Py_Is() as a macro and I added unit tests. Other added functions simply call Py_Is(), example: #define Py_IsNone(x) Py_Is(x, Py_None) -- ___ Python tracker

[issue37609] support "UNC" device paths in ntpath.splitdrive

2021-04-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +23997 pull_request: https://github.com/python/cpython/pull/25261 ___ Python tracker ___

[issue36540] PEP 570: Python Positional-Only Parameters

2021-04-07 Thread Saiyang Gou
Change by Saiyang Gou : -- pull_requests: +23996 pull_request: https://github.com/python/cpython/pull/25260 ___ Python tracker ___

[issue43768] Possible race condition on multiprocessing.Manager().dict() on macOS

2021-04-07 Thread Jerry Chen
New submission from Jerry Chen : I am not sure if this is a bug or an expected case. Long story short, I tried to print the content of a `multiprocessing.Manager().dict()` in the main thread, but I got a strange error. I encountered this error only when the number of pools is rather large

[issue36540] PEP 570: Python Positional-Only Parameters

2021-04-07 Thread Saiyang Gou
Change by Saiyang Gou : -- pull_requests: +23995 pull_request: https://github.com/python/cpython/pull/25259 ___ Python tracker ___

[issue36540] PEP 570: Python Positional-Only Parameters

2021-04-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 58d72cab89cf9652acc0bf0007aa20b2bcc98499 by Saiyang Gou in branch 'master': bpo-36540: Improve doc of function definition regarding positional-only arguments (GH-25235)

[issue43767] Compiler arning about 'Yield' macro redefinition on Windows

2021-04-07 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! Dup of bpo-43244. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-07 Thread Guido van Rossum
Guido van Rossum added the comment: I assume the OP wants to have a class that doesn't allow positional patterns. The right way to spell that is indeed to add __match_args__ = () to the class, there's no need to add another flag to @dataclass. -- resolution: -> rejected stage:

[issue43767] Compiler arning about 'Yield' macro redefinition on Windows

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: Fixing this super annoying Yield warning was one of my motivation for moving Python-ast.h to the internal C API (pycore_ast.h) :-D I disliked that Python-ast.h defined tons of symbols without "Py" (or "_Py") prefix: commit

[issue43767] Compiler arning about 'Yield' macro redefinition on Windows

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: This issue should be fixed: commit d36d6a9c1808e87628ebaa855d4bec80130189f4 Author: Victor Stinner Date: Wed Apr 7 13:01:09 2021 +0200 bpo-43244: Remove Yield macro from pycore_ast.h (GH-25243) * pycore_ast.h no longer defines the Yield

[issue43767] Compiler arning about 'Yield' macro redefinition on Windows

2021-04-07 Thread Guido van Rossum
New submission from Guido van Rossum : When building from scratch on Windows I get this warning: c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winbase.h(103): warning C4005: 'Yield': macro redefinition [C:\Users\gvanrossum\cpython\PCbuild\pythoncore.vcxproj] I know there is

[issue42999] `pathlib.Path.link_to()` documentation is misleading

2021-04-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39659] pathlib calls `os.getcwd()` without using accessor

2021-04-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-07 Thread Steve Dower
Steve Dower added the comment: > Firstly, `os.path.expanduser()` is already documented to return the path > unchanged if the home directory can't be resolved: Ah, too bad. Doesn't prevent us from changing it, but hopefully it means that everyone using it is already checking the result and

[issue42999] `pathlib.Path.link_to()` documentation is misleading

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset 9f578734624d1c0172220556ca97898730144172 by Steve Dower in branch '3.8': bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294) https://github.com/python/cpython/commit/9f578734624d1c0172220556ca97898730144172 --

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f91fc7a679e076cb9a703f6db4d95b63935562e3 by Miss Islington (bot) in branch '3.9': bpo-43755: Update docs to reflect that lambda is not allowed in `comp_if` since 3.9 (GH-25231) (GH-25233)

[issue43739] Fixing the example code in Doc/extending/extending.rst to declare and initialize the pmodule variable to be of the right type.

2021-04-07 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43766] Implement PEP 647 (User-Defined Type Guards) in typing.py

2021-04-07 Thread Guido van Rossum
Guido van Rossum added the comment: Go for it! I assume that this will be pretty simple, right? TypeGuard[X] should show up in __annotations__ as exactly that. It can be implemented in pure Python. -- ___ Python tracker

[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching

2021-04-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: > This change is currently not documented in the dataclass > and namedtuple documentation, I don't think we need to do that. In the end, __match_args__ will be added in many places. The right place to document it is in the pattern matching docs.

[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Just chiming in to say that for PyPy this API would be extremely useful Thanks for that input. Given that there would be some value add, I withdraw my objection. > I proposed to declare it as a "static inline" function, > but I'm fine with a macro as

[issue18861] Problems with recursive automatic exception chaining

2021-04-07 Thread Irit Katriel
Irit Katriel added the comment: For the issue of which contexts need to be suppressed when __suppress_context__ is true, I think we don't need to keep the whole tree of exceptions. It might be enough to save the dynamic "nesting depth of the try-excepts". Here is a solution with two

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-07 Thread Brandt Bucher
Brandt Bucher added the comment: > Note that setting compare=False on a dataclass.field already excludes that > field from __match_args__... It appears you did find a genuine bug though! I was surprised by this comment, and after digging a bit deeper into _process_class found that we should

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-07 Thread Brandt Bucher
Brandt Bucher added the comment: I agree with Eric. You can already disable the automatic creation of __match_args__ by setting it yourself on the class being decorated, and "__match_args__ = ()" will make the class behave the exact same as if __match_args__ is not defined at all. >>> from

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-07 Thread Barney Gale
Barney Gale added the comment: Thanks for taking a look, Steve. A couple things maybe worth noting: Firstly, `os.path.expanduser()` is already documented to return the path unchanged if the home directory can't be resolved: > If the expansion fails or if the path does not begin with a

[issue42899] Is it legal to eliminate tests of a value, when that test has no effect on control flow?

2021-04-07 Thread Mark Shannon
Mark Shannon added the comment: I implemented it ages ago :) https://github.com/python/cpython/pull/24417 I need to be better at closing issues. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42999] `pathlib.Path.link_to()` documentation is misleading

2021-04-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +23994 pull_request: https://github.com/python/cpython/pull/25258 ___ Python tracker ___

[issue42999] `pathlib.Path.link_to()` documentation is misleading

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset 34f93002bac980176a670ce2a4038c3be84effed by Steve Dower in branch '3.9': bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294) https://github.com/python/cpython/commit/34f93002bac980176a670ce2a4038c3be84effed --

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-07 Thread Steve Dower
Steve Dower added the comment: I think this is worth unifying, but I'm concerned about making expanduser() return the original path on Windows - "~name" is a valid filename/relative path, and so code that does mkdir(expanduser("~nonuser/dir")) could create garbage in the current directory.

[issue42899] Is it legal to eliminate tests of a value, when that test has no effect on control flow?

2021-04-07 Thread Ethan Furman
Ethan Furman added the comment: Mark, it looks like the consensus is your proposal: "The implementation is allowed to skip any boolean test of a value, when it has *no* effect on the flow of the program and *at least one test* has already been performed on that value." Has the

[issue43716] curses.pair_number() function incorrect value under Windows

2021-04-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The curses module is not supported on Windows. windows-curses is a third-party library. Use the corresponding bug tracker to report an issue with windows-curses. -- nosy: +serhiy.storchaka resolution: -> third party stage: -> resolved status:

[issue39659] pathlib calls `os.getcwd()` without using accessor

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset b05440c52b9814dbd47f679d47367e87855bd7b5 by Barney Gale in branch 'master': bpo-39659: Route calls from pathlib.Path to os.getcwd() via the path accessor (GH-18834) https://github.com/python/cpython/commit/b05440c52b9814dbd47f679d47367e87855bd7b5

[issue42999] `pathlib.Path.link_to()` documentation is misleading

2021-04-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +23993 pull_request: https://github.com/python/cpython/pull/25257 ___ Python tracker ___

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-07 Thread Steve Dower
Steve Dower added the comment: The 3.8 backport is much more complicated, as we don't have access to the PathSkipRoot function there. So we can't use the native function. There's probably another way to implement the fix for 3.8, but I'm leaving that for another day. Feel free to chime in

[issue43244] Move PyArena C API to the internal C API

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: typed-ast was updated for these changes and to avoid including explicitly pydebug.h (it's included by Python.h: see bpo-35134 change): https://github.com/python/typed_ast/pull/158 -- ___ Python tracker

[issue43220] Argparse: Explicit default required arguments with add_mutually_exclusive_group are rejected

2021-04-07 Thread paul j3
paul j3 added the comment: An overlapping issue https://bugs.python.org/issue18943 argparse: default args in mutually exclusive groups That issue shows that this problem arises with small integers as well (<257), which in cpython have unique ids. It's an implementation detail, pypy for

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Just to add the last time isAlive was removed in favor of is_alive it was significant change enough that several libraries in Fedora packaging Python libraries and other open source code. The GitHub PR shows several projects that were affected and

[issue43075] ReDoS in urllib.request

2021-04-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset a21d4fbd549ec9685068a113660553d7f80d9b09 by Miss Islington (bot) in branch '3.9': bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (GH-25247) https://github.com/python/cpython/commit/a21d4fbd549ec9685068a113660553d7f80d9b09

[issue42999] `pathlib.Path.link_to()` documentation is misleading

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset 8aac1bea2eeac25a49f8912b67aacbedf9bc7934 by Barney Gale in branch 'master': bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294) https://github.com/python/cpython/commit/8aac1bea2eeac25a49f8912b67aacbedf9bc7934

[issue43739] Fixing the example code in Doc/extending/extending.rst to declare and initialize the pmodule variable to be of the right type.

2021-04-07 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39906] pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`

2021-04-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39906] pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset abf964942f97f6489360a75fd57b5e4f41c75f57 by Barney Gale in branch 'master': bpo-39906: Add follow_symlinks parameter to pathlib.Path.stat() and chmod() (GH-18864) https://github.com/python/cpython/commit/abf964942f97f6489360a75fd57b5e4f41c75f57

[issue43244] Move PyArena C API to the internal C API

2021-04-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23992 pull_request: https://github.com/python/cpython/pull/25256 ___ Python tracker ___

[issue43751] await anext() returns None when default is given

2021-04-07 Thread PEW's Corner
PEW's Corner added the comment: Regarding the custom async iterator, I don't know if this is the problem you're referring to, but the following code seems to terminate abruptly when running main2() (main1() is fine). This is without your changes, though. import asyncio class

[issue43495] Missing frame block push in compiler_async_comprehension_generator()

2021-04-07 Thread Mark Shannon
Mark Shannon added the comment: New changeset 7a7ba3d343d360a03a34bc3901628f9f40a58307 by tomKPZ in branch 'master': bpo-43495 : Push missing frame block in compile.c (GH-24865) https://github.com/python/cpython/commit/7a7ba3d343d360a03a34bc3901628f9f40a58307 -- nosy: +Mark.Shannon

[issue43766] Implement PEP 647 (User-Defined Type Guards) in typing.py

2021-04-07 Thread Ken Jin
New submission from Ken Jin : PEP 647 was recently accepted by the SC: https://mail.python.org/archives/list/python-...@python.org/thread/2ME6F6YUVKHOQYKSHTVQQU5WD4CVAZU4/ I'd like to work on the implementation for typing.py and any required docs later on (unless someone is already working on

[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-04-07 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: Just chiming in to say that for PyPy this API would be extremely useful, because PyPy's "is" is not implementable with a pointer comparison on the C level (due to unboxing we need to compare integers, floats, etc by value). Right now, C

[issue37952] Add support for export_keying_material to SSL library

2021-04-07 Thread Christer Weinigel
Change by Christer Weinigel : -- keywords: +patch pull_requests: +23991 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25255 ___ Python tracker

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-07 Thread Eric V. Smith
Eric V. Smith added the comment: What's the situation where having __match_args__ is actually harmful in some way? I understand that if the generated version is wrong, you'd want to specify it yourself. But what's the use case for not having __match_args__ at all? -- assignee: ->

  1   2   >