[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

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

[issue44757] Insecure Deserialization

2021-07-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Joker. Please don't post screenshots and images of code. It is difficult or impossible for the visually impaired and blind to view with a screen reader, and as we don't use Photoshop to edit code, it makes it hard to copy and run the code. Your code is

[issue44757] Insecure Deserialization

2021-07-27 Thread đŸ–€Black JokerđŸ–€
Change by đŸ–€Black JokerđŸ–€ : Added file: https://bugs.python.org/file50188/1_9WKsHGuOMbSsXo24PZepuw.png ___ Python tracker ___ ___ Python-bugs-l

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-07-27 Thread Thomas Grainger
Thomas Grainger added the comment: Yep that's the fix I went for in the end https://github.com/twisted/twisted/pull/1628/files#diff-8110fe13865c1f305bb999e82cd7514b2e7269f41087bd7ef39c3d6de508R105 -- ___ Python tracker

[issue44757] Insecure Deserialization

2021-07-27 Thread đŸ–€Black JokerđŸ–€
New submission from đŸ–€Black JokerđŸ–€ : There are a number of techniques for reading external files and loading their content into (de/serializing) Python objects. Pickle is one such powerful serialization technique that is inherently risky, especially when an attacker tampers with serialized data

[issue44098] Remove ParamSpec from __parameters__ of most typing generics

2021-07-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am writing a patch which generalizes and significantly simplifies the code for type variables and parameter specifications substitution, and opens a way for more runtime validation. But it is incompatible with these changes. -- _

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +25937 pull_request: https://github.com/python/cpython/pull/27404 ___ Python tracker ___ __

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-07-27 Thread Jack DeVries
Change by Jack DeVries : -- keywords: +patch pull_requests: +25936 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27403 ___ Python tracker ___ ___

[issue42167] Documentation for SETUP_WITH opcode is wrong

2021-07-27 Thread Dennis Sweeney
Dennis Sweeney added the comment: GH-24334 already applied the necessary change for 3.10. -- nosy: +iritkatriel ___ Python tracker ___

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-07-27 Thread Jack DeVries
New submission from Jack DeVries : In Doc/Makefile, all of the build rules should be dependent on the existence of a virtual environment. I could see this being controversial, because folks who have these tools installed elsewhere might prefer not to have a venv made for them, but my personal

[issue42167] Documentation for SETUP_WITH opcode is wrong

2021-07-27 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +25935 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27402 ___ Python tracker ___ _

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Ryan Pecor
Ryan Pecor added the comment: Wow, that was quick and the code looks clean too! Thanks for fixing that up! -- ___ Python tracker ___ __

[issue42167] Documentation for SETUP_WITH opcode is wrong

2021-07-27 Thread Dennis Sweeney
Dennis Sweeney added the comment: Opcodes change from one version to another. You linked the Python 3.9 documentation. Python 3.9 opcodes are listed here: https://github.com/python/cpython/blob/3.9/Lib/opcode.py (and you can browse the branches and commit history for that file). 3.9 has SET

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Jack DeVries
Jack DeVries added the comment: > Now that I see hasattr() uses getattr(), it looks like the tab completion > issue might not stem from line 155, but from line 180 > (https://github.com/python/cpython/blob/bb3e0c240bc60fe08d332ff5955d54197f79751c/Lib/rlcompleter.py#L180) > where it calls get

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Jack DeVries
Change by Jack DeVries : -- keywords: +patch pull_requests: +25934 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27401 ___ Python tracker ___ ___

[issue37715] 2to3 set default encoding

2021-07-27 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +25933 pull_request: https://github.com/python/cpython/pull/27400 ___ Python tracker ___ _

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +25932 pull_request: https://github.com/python/cpython/pull/27399 ___ Python tracker ___ _

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset ee03bad25e83b00ba5fc2a0265b48c6286e6b3f7 by Jason R. Coombs in branch 'main': bpo-44461: Check early that a pdb target is valid for execution. (#27227) https://github.com/python/cpython/commit/ee03bad25e83b00ba5fc2a0265b48c6286e6b3f7

[issue44755] cpython Lib bisect.py overflow (lo + hi) // 2 a problem?

2021-07-27 Thread Dennis Sweeney
Dennis Sweeney added the comment: Thanks for the concern, but I'll close this as "not a bug". Feel free to re-open if you can give an example where the current code fails. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue44755] cpython Lib bisect.py overflow (lo + hi) // 2 a problem?

2021-07-27 Thread Dennis Sweeney
Dennis Sweeney added the comment: This is a good idea for languages where integers are bounded, but in Python, integers can be as large as you want, so there's no reason to worry about overflow: >>> lo = 1 * 10**100 >>> hi = 2 * 10**100 >>> (lo + hi) // 2 1500

[issue44754] Documentation for pop in Built-in Types

2021-07-27 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +25931 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27398 ___ Python tracker ___ _

[issue44755] cpython Lib bisect.py overflow (lo + hi) // 2 a problem?

2021-07-27 Thread David Duffy
New submission from David Duffy : https://ai.googleblog.com/2006/06/extra-extra-read-all-about-it-nearly.html led me to change to lo+(lo+hi)/2 - would this affect bisect.py??? -- components: Library (Lib) messages: 398337 nosy: David.Duffy priority: normal severity: normal status: open

[issue44754] Documentation for pop in Built-in Types

2021-07-27 Thread Dennis Sweeney
Dennis Sweeney added the comment: The [square brackets] are used to denote *optional* arguments throughout the documentation. A tutorial page (https://docs.python.org/3/tutorial/controlflow.html#id1) has this to say: list.pop([i]) Remove the item at the given position in the list, a

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-27 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset 38ddc8beb38d9a685de296a58b0741850e4853e5 by Brandt Bucher in branch 'main': bpo-44600: Refactor new tracing tests (GH-27396) https://github.com/python/cpython/commit/38ddc8beb38d9a685de296a58b0741850e4853e5 -- _

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +25930 pull_request: https://github.com/python/cpython/pull/27397 ___ Python tracker ___ __

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-07-27 Thread Steve Dower
Steve Dower added the comment: > do you know what the correct usage of importlib.util.spec_from_file_location > is to match importlib.import_module ? Maybe I'm misreading your example, but isn't the correct usage here to pass an absolute location= argument? Or are you suggesting that spec_fr

[issue44479] Windows build doesn't regenerate some files

2021-07-27 Thread Steve Dower
Steve Dower added the comment: > Would it be OK to run python in externals folder instead ? No, because it needs to freeze with the current build. However, we should definitely not regenerate anything when "$(Configuration) == 'PGUpdate'". Checking that in regen.targets should prevent the is

[issue44681] time.sleep(0.001) not working properly

2021-07-27 Thread Steve Dower
Steve Dower added the comment: > Maybe it would be useful to implement something like this in time.sleep() > itself, but I don't know whether the need in a few cases warrants the > increased complexity and cost in general. It certainly wouldn't be worth the power and CPU usage impact that pe

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-27 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +25929 pull_request: https://github.com/python/cpython/pull/27396 ___ Python tracker ___ ___

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Ryan Pecor
Ryan Pecor added the comment: Actually, hasattr() specifically states that it uses getattr() so that behavior is expected from getattr() so I will not be creating a separate issue for that. Now that I see hasattr() uses getattr(), it looks like the tab completion issue might not stem from li

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Ryan Pecor
Ryan Pecor added the comment: It looks to me like the issue is caused by the eval() in line 155 of the rlcompleter.py file (https://github.com/python/cpython/blob/bb3e0c240bc60fe08d332ff5955d54197f79751c/Lib/rlcompleter.py#L155) which runs the function in order to see if it runs or raises an

[issue44754] Documentation for pop in Built-in Types

2021-07-27 Thread Mark Gluzman
New submission from Mark Gluzman : Python documentation: v.3.9.6 The Python Standard Library >> Built-in Types >> Mutable Sequence Types The table says that 'pop' operation should be written as s.pop([i]) The right way to do it is s.pop(i) -- assignee: docs@python components: Docu

[issue44751] crypt.h should be in _cryptmodule.c, not in public header

2021-07-27 Thread miss-islington
miss-islington added the comment: New changeset 196998e220d6ca030e5a1c8ad63fcaed8e049a98 by Geoffrey Thomas in branch 'main': closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394) https://github.com/python/cpython/commit/196998e220d6ca030e5a1c8ad63fcaed8e049a98

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Jack DeVries
Jack DeVries added the comment: Woah, til the python shell has tab completion! This does seem like undesirable behavior. I'd like to work on a fix for this if that's all right, assuming that this behavior should not occur. I haven't exactly found where the tab autocomplete is implemented, bu

[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-27 Thread Alexander Smirnov
New submission from Alexander Smirnov : after adding namer callable (like it is described in https://bugs.python.org/issue43344) to log handler configuration, it stopped removing old files log_filename = os.path.join(log_dir, "application.log") log_handler = logging.handlers.TimedRotatingFile

[issue43344] RotatingFileHandler breaks file type associations

2021-07-27 Thread Alexander Smirnov
Alexander Smirnov added the comment: the problem with namer solution is that it will stop respecting backupCount parameter -- nosy: +alexander.smirnoff ___ Python tracker ___

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Ryan Pecor
Ryan Pecor added the comment: I forgot to mention that I also added "~~~" to either side of the printed string every time it printed to help differentiate the printed string from commands that I typed into the interpreter. -- ___ Python tracker <

[issue44688] [sqlite3] Remove ASCII limitation from sqlite3.Connection.create_collation()

2021-07-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +25928 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27395 ___ Python tracker __

[issue44752] Tab completion executes @property getter function

2021-07-27 Thread Ryan Pecor
New submission from Ryan Pecor : After making a class using the @property decorator to implement a getter, using tab completion that matches the getter function name executes the function. See below for example (line numbers added, indicates when the user presses the tab key): 1 >>> class

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2021-07-27 Thread Geoffrey Thomas
Geoffrey Thomas added the comment: Opened #44751 and https://github.com/python/cpython/pull/27394 . -- ___ Python tracker ___ ___ P

[issue44751] crypt.h should be in _cryptmodule.c, not in public header

2021-07-27 Thread Geoffrey Thomas
Change by Geoffrey Thomas : -- keywords: +patch pull_requests: +25927 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27394 ___ Python tracker ___

[issue44751] crypt.h should be in _cryptmodule.c, not in public header

2021-07-27 Thread Geoffrey Thomas
New submission from Geoffrey Thomas : In #32635, it was discovered that _cryptmodule.c was missing a dependency on crypt.h, which caused it to segfault when it was missing the proper prototype for crypt. This was fixed by adding an #include to Python.h. This include doesn't need to be in the

[issue43377] _PyErr_Display should be available in the CPython-specific API

2021-07-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PyErr_Display is not exposed partially because is full of small details of the interpreter and we change it constantly without regard for backwards compatibility on purpose. Exposing it will restrict us a lot on how we display error messages or the ar

[issue34013] Inconsistent SyntaxError for print

2021-07-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44750] .popitem() is inconsistent in collections and collections.abc

2021-07-27 Thread Alex Waygood
Alex Waygood added the comment: Thanks, Raymond -- that makes sense, and seems very fair. I still think a note somewhere in the documentation stating this might be helpful -- as a user, it wasn't what I was expecting. I would argue this is especially true for UserDict, a class which the name

[issue34013] Inconsistent SyntaxError for print

2021-07-27 Thread miss-islington
miss-islington added the comment: New changeset 68e3dca0687c4c8e61ed98aed82f81049880c0ce by Miss Islington (bot) in branch '3.10': bpo-34013: Move the Python 2 hints from the exception constructor to the parser (GH-27392) https://github.com/python/cpython/commit/68e3dca0687c4c8e61ed98aed82f8

[issue44750] .popitem() is inconsistent in collections and collections.abc

2021-07-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Alex, thank for noticing this, but it is not a bug. MutableMapping is meant to describe all mapping classes including those that don't remember insertion order. The builtin dict() type implements MutableMapping but also adds ordering guarantees. It is c

[issue34013] Inconsistent SyntaxError for print

2021-07-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 15.0 -> 16.0 pull_requests: +25926 pull_request: https://github.com/python/cpython/pull/27393 ___ Python tracker ___

[issue34013] Inconsistent SyntaxError for print

2021-07-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ecc3c8e4216958d85385bf2467441c975128f26c by Pablo Galindo Salgado in branch 'main': bpo-34013: Move the Python 2 hints from the exception constructor to the parser (GH-27392) https://github.com/python/cpython/commit/ecc3c8e4216958d85385b

[issue42167] Documentation for SETUP_WITH opcode is wrong

2021-07-27 Thread Patrick Reader
Patrick Reader added the comment: It was, at least partially, replaced by BEGIN_WITH for bpo-40222: https://github.com/python/cpython/commit/adcd2205565f91c6719f4141ab4e1da6d7086126#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653bL741 -- versions: +Python 3.11 __

[issue42167] Documentation for SETUP_WITH opcode is wrong

2021-07-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: Note that SETUP_WITH doc was completely removed. Not sure if that was intentional (since the opcode itself still exists). -- nosy: +andrei.avk ___ Python tracker __

[issue37715] 2to3 set default encoding

2021-07-27 Thread Thomas Grainger
Thomas Grainger added the comment: lib2to3 is deprecated and is pending removal, so I think this can be closed -- nosy: +graingert ___ Python tracker ___ _

[issue44750] .popitem() is inconsistent in collections and collections.abc

2021-07-27 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +rhettinger, stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue34013] Inconsistent SyntaxError for print

2021-07-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset b977f8510e2ff4f11e3bda920722098a242fc8cc by Pablo Galindo Salgado in branch '3.10': [3.10] bpo-34013: Generalize the invalid legacy statement error message (GH-27389). (GH-27391) https://github.com/python/cpython/commit/b977f8510e2ff4f11

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-07-27 Thread hai shi
hai shi added the comment: > - there is still no way to get t.tp_name Can we create PyType_GetDataSlot function to return the data pointer? > If we go this way, why not add PyType_GetQualName as well? +1. I will create another PR after PR-23903 merged. --

[issue44750] .popitem() is inconsistent in collections and collections.abc

2021-07-27 Thread Alex Waygood
New submission from Alex Waygood : In a Python dictionary, `.popitem()` returns (key, value) pairs from the dictionary in a LIFO order. `collections.OrderedDict` and `collections.Counter` both do the same. However, a class inheriting from `collections.abc.MutableMapping` (which includes, in t

[issue44741] Pattern Matching - star subpattern with a subject derived from collections.abc.Sequence

2021-07-27 Thread Pierre Quentel
Pierre Quentel added the comment: Oh, I did not invent this class, it is in the test script for pattern matching : https://github.com/python/cpython/blob/6948964ecf94e858448dd28eea634317226d2913/Lib/test/test_patma.py#L1932 With this class, [x, *_, y] matches, but not [x, *w, y] : this is wh

[issue34013] Inconsistent SyntaxError for print

2021-07-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25925 pull_request: https://github.com/python/cpython/pull/27392 ___ Python tracker ___ ___

[issue33896] Document what components make up the filecmp.cmp os.stat signature.

2021-07-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: Can be closed as a dupe of https://bugs.python.org/issue42958, which has a PR ready for review. -- nosy: +andrei.avk ___ Python tracker ___

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Priyanshu
Priyanshu added the comment: Really? Why is it not working for me then? I am using the latest version of VS code application. I have attached a screenshot,have a look at this. On Tue, Jul 27, 2021 at 6:22 PM Paul Moore wrote: > > Paul Moore added the comment: > > It works as expected (the pr

[issue34013] Inconsistent SyntaxError for print

2021-07-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25924 pull_request: https://github.com/python/cpython/pull/27391 ___ Python tracker ___ ___

[issue34013] Inconsistent SyntaxError for print

2021-07-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 6948964ecf94e858448dd28eea634317226d2913 by Pablo Galindo Salgado in branch 'main': bpo-34013: Generalize the invalid legacy statement error message (GH-27389) https://github.com/python/cpython/commit/6948964ecf94e858448dd28eea634317226d2

[issue34013] Inconsistent SyntaxError for print

2021-07-27 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +25923 pull_request: https://github.com/python/cpython/pull/27390 ___ Python tracker ___ _

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Priyanshu
Priyanshu added the comment: Ok, I'll check it out. Thank you for the response. On Tue, 27 Jul, 2021, 20:36 Steven D'Aprano, wrote: > > Steven D'Aprano added the comment: > > Confirmed that it is working in Linux. I assume Paul has tested it under > Windows, and it sounds like Ronald has te

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2021-07-27 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43235] Tools/scripts/stable_abi.py should also check PC/python3dll.c (Windows stable ABI)

2021-07-27 Thread Petr Viktorin
Petr Viktorin added the comment: Since PEP 652, PC/python3dll.c is generated from the stable ABI definition. Checking (i.e. running the tool without --generate) ensures it is up-to-date. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed __

[issue43377] _PyErr_Display should be available in the CPython-specific API

2021-07-27 Thread Petr Viktorin
Petr Viktorin added the comment: If it should be exposed, it should be renamed to a public (non-underscored) name, like PyErr_DisplayToFile. It should also ideally get documentation and tests (along with PyErr_Display, which is sadly missing those as well). (Also, note that there are no no

[issue44559] Enum: revert to 3.9

2021-07-27 Thread Ethan Furman
Ethan Furman added the comment: New changeset 2f54fbafa6481fb10528cb1d3d6b517ca2a4647f by Steffen Zeile in branch 'main': bpo-44559: [Enum] correct `versionadded` to 3.11 for new features (GH-27388) https://github.com/python/cpython/commit/2f54fbafa6481fb10528cb1d3d6b517ca2a4647f --

[issue44559] Enum: revert to 3.9

2021-07-27 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 6.0 -> 7.0 pull_requests: +25922 pull_request: https://github.com/python/cpython/pull/27388 ___ Python tracker ___ __

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: Confirmed that it is working in Linux. I assume Paul has tested it under Windows, and it sounds like Ronald has tested it in VS Code as well. I'm closing this as Not A Bug. Priyanshu, if you disagree and can replicate the error, this time checking the outp

[issue44021] enum docs in 3.10: missing "New in version 3.10"

2021-07-27 Thread Akuli
Change by Akuli : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue44741] Pattern Matching - star subpattern with a subject derived from collections.abc.Sequence

2021-07-27 Thread Guido van Rossum
Guido van Rossum added the comment: Given that the class used to demonstrate this behavior has a bug (__len__ is inconsistent with __getitem__), I don't think it matters much -- if doing it your way is (as I suspect) slower than the current implementation for other (well-behaved) sequences,

[issue44098] Remove ParamSpec from __parameters__ of most typing generics

2021-07-27 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, but we shouldn't go out of our way to reject it. Especially since in 3.11 we'll likely have something equivalent to PEP 563 or PEP 649 (the SC is thinking deep about this right now) and either of those means that usually it won't be evaluated at all

[issue44749] LOAD_NAME not using PyObject_GetItem when globals() is a dict subclass

2021-07-27 Thread Douglas Raillard
New submission from Douglas Raillard : Re-raising the bug reported by Kevin Shweh: thread: https://bugs.python.org/issue14385 message: https://bugs.python.org/msg337245 Here is a copy for easier reference: The patch for this issue changed LOAD_GLOBAL to use PyObject_GetItem when globals() is

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-07-27 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 890e22957d427ee994b85d62dfe4d5a7cbd34ec5 by Erlend Egeberg Aasland in branch 'main': bpo-42064: Migrate to `sqlite3_create_collation_v2` (GH-27156) https://github.com/python/cpython/commit/890e22957d427ee994b85d62dfe4d5a7cbd34ec5 -- __

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: The output from the print statement in the finally block is before the traceback, you need to scroll back in the output buffer in VS Code. -- nosy: +ronaldoussoren ___ Python tracker

[issue44744] [security] Open redirect attack due to insufficient validation in Urlparse

2021-07-27 Thread Logan Jones
Logan Jones added the comment: If I've understood what you've written correctly, what you want is to change urlparse to use the WHATWG URL Standard (https://url.spec.whatwg.org/). I'm not a committer or anything, but that seems like a large API change and is not likely to happen quickly if a

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Paul Moore
Paul Moore added the comment: It works as expected (the print statement in the "finally" clause is executed) for me. -- ___ Python tracker ___ ___

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Priyanshu
Priyanshu added the comment: I have attached a file as an example. The finally clause is not getting executed if we make use of raise keyword in except clause. It should have been executed in this case case, right? -- Added file: https://bugs.python.org/file50185/error.py __

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2021-07-27 Thread Petr Viktorin
Petr Viktorin added the comment: Sorry for the delay; getting 652 into Python 3.10 took up most of my time. So, in the current proposal: - `PyType_GetName(t)` is equivalent to `PyObject_GetAttrString(t, "__name__")` - for the qualified name you can use `PyObject_GetAttrString(t, "__qualname__

[issue43468] functools.cached_property incorrectly locks the entire descriptor on class instead of per-instance locking

2021-07-27 Thread Thomas Grainger
Thomas Grainger added the comment: > using a per-descriptor `WeakKeyDictionary` to map the instance to locks > (which would of course not work - is there any way to map unhashable > instances weakly?) there's an issue for that too: https://bugs.python.org/issue44140 --

[issue43468] functools.cached_property incorrectly locks the entire descriptor on class instead of per-instance locking

2021-07-27 Thread Thomas Grainger
Thomas Grainger added the comment: how about deprecating the functools.cached_property? -- nosy: +graingert ___ Python tracker ___

[issue44021] enum docs in 3.10: missing "New in version 3.10"

2021-07-27 Thread Ken Jin
Ken Jin added the comment: I think we can close this. The current docs show the version added for the items in OP's list https://docs.python.org/3.11/library/enum.html. Their versionadded should be 3.11 now, but that's a separate issue with a PR at GH-27388. -- nosy: +kj __

[issue34013] Inconsistent SyntaxError for print

2021-07-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +25921 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27389 ___ Python tracker __

[issue44748] argparse: a bool indicating if arg was encountered

2021-07-27 Thread Thermi
New submission from Thermi : It'd be great if as part of the namespace returned by argparse.ArgumentParser.parse_args(), there was a bool indicating if a specific argument was encountered. That could then be used to implement the following behaviour: With a config file loaded as part of the p

[issue44740] Lowercase "Internet" and "web" in docs

2021-07-27 Thread Ɓukasz Langa
Ɓukasz Langa added the comment: New changeset be2415487ab80e4bd5ace2954651e78b107b17e4 by Miss Islington (bot) in branch '3.10': bpo-44740: Make minor edits to lowercasing "internet" and "web". (GH-27385) (#27386) https://github.com/python/cpython/commit/be2415487ab80e4bd5ace2954651e78b107b17

[issue44747] Reduce usage of sys._getframe at typing module

2021-07-27 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- keywords: +patch pull_requests: +25920 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27387 ___ Python tracker

[issue44747] Reduce usage of sys._getframe at typing module

2021-07-27 Thread Yurii Karabas
New submission from Yurii Karabas <1998uri...@gmail.com>: While I was working with `typing` I have notice that there are duplication of `_getframe` usage. While In scope of issue 44353 I introduced `typing._callee` function which allow to return module name of a caller function. In scope of t

[issue44740] Lowercase "Internet" and "web" in docs

2021-07-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +25919 pull_request: https://github.com/python/cpython/pull/27386 ___ Python tracker ___ __

[issue44740] Lowercase "Internet" and "web" in docs

2021-07-27 Thread Ɓukasz Langa
Ɓukasz Langa added the comment: New changeset 2e41df4d60d71a2551b9605d07321f75cfb52adf by Mariusz Felisiak in branch 'main': bpo-44740: Make minor edits to lowercasing "internet" and "web". (GH-27385) https://github.com/python/cpython/commit/2e41df4d60d71a2551b9605d07321f75cfb52adf -

[issue33125] Windows 10 ARM64 platform support

2021-07-27 Thread Niyas Sait
Niyas Sait added the comment: I know this issue is closed but just wanted to have a discussion around adding CI support for cpython on windows on arm targets. We at linaro are working on adding windows/arm support for popular packages such as numpy, cffi etc. Hopefully, very soon we will hav

[issue39820] Bracketed paste mode for REPL: don't execute pasted command before ENTER is pressed explicitly

2021-07-27 Thread Michael Hofmann
Change by Michael Hofmann : -- nosy: +mhofmann ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue44098] Remove ParamSpec from __parameters__ of most typing generics

2021-07-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that List[P] should be illegal at first place. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2021-07-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be nice to add a multi-thread supporting version of tee() or add multi-thread support in tee(), but this is different issue. -- stage: patch review -> resolved status: pending -> closed ___ Python tracke

[issue44739] Tkinter text horizontal scrollbar is not stationary

2021-07-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> third party ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue44746] Improper behaviour of 'finally' keyword

2021-07-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I cannot reproduce. >>> try: ... 1/0 ... except: ... print('except') ... raise ... finally: ... print('finally') ... except finally Traceback (most recent call last): File "", line 2, in ZeroDivisionError: division by zero Could you plea