[issue44267] Wrong PEP 515 parsing in decimal module (both C and Python versions)

2021-05-29 Thread Sergey B Kirpichev
Change by Sergey B Kirpichev : Added file: https://bugs.python.org/file50072/0001-bpo-44267-fix-parsing-Decimal-s-with-underscores.patch ___ Python tracker ___

[issue44267] Wrong PEP 515 parsing in decimal module (both C and Python versions)

2021-05-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +facundobatista, mark.dickinson, rhettinger ___ Python tracker ___ ___

Re: Selenium script - stuck - could someone take a look?

2021-05-29 Thread Veek M
On 2021-05-29, Dennis Lee Bieber wrote: > On Sat, 29 May 2021 09:40:35 - (UTC), Veek M declaimed > the following: > ah, yeah - man that took me a while to do (save to local file and use file:///). It's working now, basically xpath mistake because I've forgotten stuff.. but the script is

[issue44267] Wrong PEP 515 parsing in decimal module (both C and Python versions)

2021-05-29 Thread Sergey B Kirpichev
New submission from Sergey B Kirpichev : While working on issue44258 I discover that the decimal module doesn't follow specification in PEP 515: "The current proposal is to allow one underscore between digits, and after base specifiers in numeric literals." (c) For example: >>>

(OT) Re: Applying winpdb_reborn

2021-05-29 Thread Greg Ewing
On 30/05/21 1:46 pm, dn wrote: We always referred to it as an "oh-two-nine" ("029"). I had the privilege of helping to dismantle a couple of those when they were decommissioned at the University of Canterbury. Amazing pieces of technology -- purely electromechanical, no electronics in sight.

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2021-05-29 Thread Jordan Borean
Change by Jordan Borean : -- pull_requests: +25050 pull_request: https://github.com/python/cpython/pull/26454 ___ Python tracker ___

Re: Applying winpdb_reborn

2021-05-29 Thread dn via Python-list
On 30/05/2021 11.52, Rich Shepard wrote: > On Sun, 30 May 2021, Chris Angelico wrote: > Please excuse my long-winded description of a FORTRAN IV bug in an lake > ecosystem energy model I wrote at the University of Illinois in the early > 1970s. It is an example of what you wrote above. > > The

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-29 Thread Zac Hatfield-Dodds
Zac Hatfield-Dodds added the comment: Just chiming in with a plea to slow down the rate of changes to importlib.metadata - I understand that you want to tidy up the API, but even deprecations cause substantial work downstream. Would it really be so bad to support the older APIs until they

[issue44235] Remove l*gettext() and related functions in the gettext module

2021-05-29 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 14ba761078b5ae83519e34d66ab883743912c45b by Dong-hee Na in branch 'main': bpo-44235: Remove deprecated functions in the gettext module. (GH-26378) https://github.com/python/cpython/commit/14ba761078b5ae83519e34d66ab883743912c45b --

[issue44235] Remove l*gettext() and related functions in the gettext module

2021-05-29 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44266] AttributeError: module 'sys' has no attribute 'original_stdout'

2021-05-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: Correct, sys has no attribute 'original_stdout'. Do you have a file called `sys.py`? Rename it. -- nosy: +steven.daprano ___ Python tracker

[issue44266] AttributeError: module 'sys' has no attribute 'original_stdout'

2021-05-29 Thread Chinmay Malvania
New submission from Chinmay Malvania : I imported sys but when I use it, it says: AttributeError: module 'sys' has no attribute 'original_stdout' -- messages: 394746 nosy: chinmay.malvania priority: normal severity: normal status: open title: AttributeError: module 'sys' has no

Re: Applying winpdb_reborn

2021-05-29 Thread Chris Angelico
On Sun, May 30, 2021 at 9:53 AM Rich Shepard wrote: > > On Sun, 30 May 2021, Chris Angelico wrote: > > > (Plus, there's not always an opportunity to use a debug harness. Sometimes > > you just have to put your prints into production and let it run for two > > weeks in the hope that the bug will

[issue21550] Add Python implementation of the tar utility

2021-05-29 Thread Filipe Laíns
Filipe Laíns added the comment: Given the addition of the tarfile CLI and the seeming lack of interest, can this be closed? -- nosy: +FFY00 ___ Python tracker ___

Re: Applying winpdb_reborn

2021-05-29 Thread Rich Shepard
On Sun, 30 May 2021, Chris Angelico wrote: (Plus, there's not always an opportunity to use a debug harness. Sometimes you just have to put your prints into production and let it run for two weeks in the hope that the bug will show itself.) ChrisA, Please excuse my long-winded description of

Re: Applying winpdb_reborn

2021-05-29 Thread Rich Shepard
On Sun, 30 May 2021, Cameron Simpson wrote: Also, searching for "pdb tutorial" seems to find a bunch of links. Cameron, That's true. All the ones I've read list the various pdb commands. Knowing the commands is different from knowing when and how to apply them. I'll work back to remembering

[issue44262] tarfile: some content different output

2021-05-29 Thread Filipe Laíns
Filipe Laíns added the comment: I modified the script to keep the both Python generated tarballs and ran diffoscope, which presents the issue very clearly: $ diffoscope py.gz py2.gz --- py.gz +++ py2.gz ├── filetype from file(1) │ @@ -1 +1 @@ │ -gzip compressed data, was "py", last modified:

Re: Applying winpdb_reborn

2021-05-29 Thread Alan Gauld via Python-list
On 29/05/2021 19:10, Dennis Lee Bieber wrote: > On Sat, 29 May 2021 09:51:04 -0700 (PDT), Rich Shepard > declaimed the following: >> What I find interesting is that every web page I find on 'using pdb' does no >> more than explain the available commands; they don't explain the debugging >>

Re: Applying winpdb_reborn

2021-05-29 Thread Chris Angelico
On Sun, May 30, 2021 at 9:19 AM Cameron Simpson wrote: > > On 29May2021 09:51, Rich Shepard wrote: > >I knew the debugging process with Fortran and C, but haven't learned how to > >effectively use pdb to find bugs that don't issue a traceback or obvious > >wrong answer such as my module

Re: Applying winpdb_reborn

2021-05-29 Thread Cameron Simpson
On 30May2021 09:03, Cameron Simpson wrote: >>I knew the debugging process with Fortran and C, but haven't learned >>how to effectively use pdb to find bugs that don't issue a traceback or >>obvious >>wrong answer such as my module displaying an empty window with no >>widgets. Also, searching

Re: Applying winpdb_reborn

2021-05-29 Thread Cameron Simpson
On 29May2021 09:51, Rich Shepard wrote: >I've removed winpdb here as recommended by Philippe Fremy. I don't use >IDEs other than emacs so I'll stick with pdb. > >What I find interesting is that every web page I find on 'using pdb' does no >more than explain the available commands; they don't

[issue44261] SocketType documentation misleading

2021-05-29 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I propose to deprecate socket.SocketType. There's no reason to publicly expose _socket.socket separately from socket.socket, the only type that moat users should care about. SocketType isn't needed for type checking; socket.socket is itself a class and can

[issue43750] Undefined constant PACKET_MULTIHOST referred to in package socket

2021-05-29 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 5f28752f5b51a1866f2428eeaf6082266723c78d by Zackery Spytz in branch 'main': bpo-43750: Fix incorrect reference to PACKET_MULTIHOST in the docs (GH-25241) https://github.com/python/cpython/commit/5f28752f5b51a1866f2428eeaf6082266723c78d

[issue44229] Intermittent connection errors in ssl tests on macOS CI

2021-05-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > This might be the same macOS bug. It could be, but the same thing happens on Windows -- ___ Python tracker ___

[issue44265] Create an MSI Package

2021-05-29 Thread Muhammad Hussein Ammari
New submission from Muhammad Hussein Ammari : Hi, Please create an MSI package. (like Python v3.4.4 or Python v2.7.18) https://www.python.org/ftp/python/3.4.4/python-3.4.4.amd64.msi https://www.python.org/ftp/python/2.7.18/python-2.7.18.amd64.msi Thanks. -- components: Installation,

[issue44229] Intermittent connection errors in ssl tests on macOS CI

2021-05-29 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Here's the output when with test.support.verbose = True: test_ssl: testing with 'OpenSSL 1.1.1k 25 Mar 2021' (1, 1, 1, 11, 15) under Mac ('11.3.1', ('', '', ''), 'x86_64')

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-05-29 Thread Guido van Rossum
Guido van Rossum added the comment: > What is/was the initial reason to not preserve the MRO for a TypedDict? Hm, I can't say for sure. I believe it had something to do with TypedDict instances being instances of dict at runtime, but I can't actually reconstruct the reason. Maybe it's

[issue42085] Add dedicated slot for sending values

2021-05-29 Thread Irit Katriel
Irit Katriel added the comment: New changeset d338ce0796e5fe8e54dfe52f93ed9d5936ad3efe by Miss Islington (bot) in branch '3.10': bpo-42085: [docs] Add versionadded for am_send in type object documentation (GH-25465) (GH-26453)

[issue42085] Add dedicated slot for sending values

2021-05-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +25049 pull_request: https://github.com/python/cpython/pull/26453 ___ Python tracker ___

[issue42085] Add dedicated slot for sending values

2021-05-29 Thread Irit Katriel
Irit Katriel added the comment: New changeset 0b11c429c7f1721d9ffb9ae19e3e8e2e7bd6444d by Martmists in branch 'main': bpo-42085: [docs] Add versionadded for am_send in type object documentation (GH-25465) https://github.com/python/cpython/commit/0b11c429c7f1721d9ffb9ae19e3e8e2e7bd6444d

[issue42085] Add dedicated slot for sending values

2021-05-29 Thread Martmists
Change by Martmists : -- nosy: +martmists nosy_count: 4.0 -> 5.0 pull_requests: +25048 pull_request: https://github.com/python/cpython/pull/25465 ___ Python tracker ___

[issue44264] Add descriptive error message when environment variable not detected

2021-05-29 Thread David Gene
New submission from David Gene : Using os.environ[KEY] with a non-existent environment variable key only gives a simple KeyError, which may be fine for a developer to understand, but if a user of a Python program were to come across it, it may not indicate what they needed to do to avoid the

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-29 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25046 pull_request: https://github.com/python/cpython/pull/26452 ___ Python tracker ___

[issue38768] [feature request] Add lldb equivalent to Tools/gdb

2021-05-29 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: This looks useful: https://lldb.llvm.org/use/python.html -- ___ Python tracker ___ ___

[issue44263] Better explain the GC contract for PyType_FromSpecWithBases

2021-05-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d8ce746e7c5193757c8d316105870b0dc5d6fa53 by Miss Islington (bot) in branch '3.10': bpo-44263: Mention PyType_Ready in the gc protocol warning (GH-26445) (#26446)

[issue39529] Deprecate get_event_loop()

2021-05-29 Thread Ben Darnell
Ben Darnell added the comment: > The maintenance burden of the introduced deprecation should be pretty low. This is going to cause an unpleasant amount of churn in the Tornado community. It's been idiomatic (going back 12 years now) to do all your setup in synchronous code before starting

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2021-05-29 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42125] linecache cannot get source for the __main__ module with a custom loader

2021-05-29 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Applying winpdb_reborn

2021-05-29 Thread Rich Shepard
On Sat, 29 May 2021, Dennis Lee Bieber wrote: Except the copy of winpdb source I looked at has RPDBTERM = 'RPDBTERM' near the top. Then again, I don't know how up-to-date the OP's copy is -- I just Googled for a repository with the module. Let me check a Linux

Selenium script - stuck - could someone take a look?

2021-05-29 Thread Veek M
Script: http://paste.debian.net/1199271/ It mostly works but line 78 is supposed to extract 100 pieces / lot No matter what I try it's failed and I DON'T KNOW WHY? It's a simple div.classname match.. Could someone take a look and figure it out - I'm stuck.

Re: Selenium script - stuck - could someone take a look?

2021-05-29 Thread Veek M
On 2021-05-29, Veek M wrote: fixed div './/' vs '//' -- https://mail.python.org/mailman/listinfo/python-list

[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-05-29 Thread hai shi
Change by hai shi : -- pull_requests: +25045 pull_request: https://github.com/python/cpython/pull/26451 ___ Python tracker ___ ___

[issue24132] Direct sub-classing of pathlib.Path

2021-05-29 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44258] Support PEP 515 for Fraction's initialization from string

2021-05-29 Thread Mark Dickinson
Mark Dickinson added the comment: > How about '1_/_2'? I'd rather keep it consistent with the rules for int: that is, if I split on `'/'`, I'd expect the pieces to be parseable by `int`. As for spaces around the `/`, let's make that a separate issue. --

[issue44258] Support PEP 515 for Fraction's initialization from string

2021-05-29 Thread Vedran Čačić
Vedran Čačić added the comment: How about '1_/_2'? I think making / more separated adds value... though of course, someone will ask about '1 / 2' next. :-) -- nosy: +veky ___ Python tracker

[issue34219] distutils: build_ext -D wrongly assume defining a symbol with no value

2021-05-29 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-05-29 Thread Nils Kattenbeck
Nils Kattenbeck added the comment: What is/was the initial reason to not preserve the MRO for a TypedDict? The only thing which came to my mind would be instantiation performance but as annotations are not evaluated by default and on the right-hide side of assignment most people will use

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-29 Thread Jason R. Coombs
Jason R. Coombs added the comment: > The standard library has clear rules regarding how previously working > interfaces should be deprecated, and this changeset is violating those. At no > point was documented that relying on the list/dict trait of the existing > interface is not part of the

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-29 Thread Jason R. Coombs
Jason R. Coombs added the comment: > there's the tuple subclass which pretends to be a dict. There's no tuple subclass that's pretending to be a dict. It overrides __getitem__ for convenience. It never claims to support Mapping. > mypy complains about incorrect types in overrides for both.

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-29 Thread gaborjbernat
gaborjbernat added the comment: After reading through the points here, I must say I agree with Anthony here. The standard library has clear rules regarding how previously working interfaces should be deprecated, and this changeset is violating those. At no point was documented that relying

[issue44254] Change turtledemo button colors

2021-05-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 9bcb76c24f6d3f01e596a439c1521f9099e3fe80 by Miss Islington (bot) in branch '3.9': bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons (GH-26448)

[issue44100] test__xxsubinterpreters: test_one() fails in AMD64 Fedora Stable 3.x: "Fatal Python error: Py_EndInterpreter: thread still has a frame"

2021-05-29 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I'm not sure *but* in the DestroyTests.test_one id1 and id3 were never explicitly destroyed. Can it be related? -- nosy: +shreyanavigyan ___ Python tracker

[issue44254] Change turtledemo button colors

2021-05-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset addd32986f703e692463828ac0014023a901010f by Miss Islington (bot) in branch '3.10': bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons (GH-26448)

[issue44259] lib2to3 does not accept "exec" as name

2021-05-29 Thread Mulugruntz
Mulugruntz added the comment: Sorry, I forgot to mention: macOS Mojave 10.14.5 (18F132) -- ___ Python tracker ___ ___

[issue44259] lib2to3 does not accept "exec" as name

2021-05-29 Thread Mulugruntz
Mulugruntz added the comment: Traceback (most recent call last): File "/Users/sgiffard/Library/Application Support/JetBrains/PyCharm2020.3/scratches/scratch_24.py", line 9, in driver.parse_string("""class C:\ndef exec(self): pass\n""") File

[issue44254] Change turtledemo button colors

2021-05-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset af5a324843de395cecc562cb0c757b3768f2077f by Terry Jan Reedy in branch 'main': bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons (GH-26448) https://github.com/python/cpython/commit/af5a324843de395cecc562cb0c757b3768f2077f

[issue44254] Change turtledemo button colors

2021-05-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +25044 pull_request: https://github.com/python/cpython/pull/26450 ___ Python tracker ___

[issue44254] Change turtledemo button colors

2021-05-29 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25043 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26449 ___ Python tracker