[issue44646] hash() of the unity type is not consistent with equality

2021-07-15 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44651] An unclear definition in Doc/glossary.rst

2021-07-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35332] shutil.rmtree(..., ignore_errors=True) doesn't ignore errors from os.close()

2021-07-15 Thread Andrei Kulakov
Andrei Kulakov added the comment: May be related: https://bugs.python.org/issue43666 -- ___ Python tracker ___ ___

[issue35332] shutil.rmtree(..., ignore_errors=True) doesn't ignore errors from os.close()

2021-07-15 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've looked a bit into this and it seems like ESTALE can be caused in two cases: - Under WPAR environment https://www.ibm.com/docs/en/aix/7.1?topic=aix-wpar-concepts https://www.ibm.com/support/pages/apar/IV50544 > When using WPAR setup under AIX, with each

[issue44651] An unclear definition in Doc/glossary.rst

2021-07-15 Thread Steven Hsu
New submission from Steven Hsu : In Doc/glossary.rst, the definition about "coercion" is as below: "The implicit conversion of an instance of one type to another during an operation which involves two arguments of the same type." However, in the example following this definition, it shows

[issue44413] OverflowError: mktime argument out of range after 2019

2021-07-15 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: > My python version is 3.8.9 and zipp is at 3.5.0 (but 3.4.1 behaves the same > for me). It's not enough to have `zipp` 3.5.0. You need to use `zipp.Path` over `zipfile.Path`. -- ___ Python tracker

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-15 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Using zipfile.Path with several files prematurely closes zip ___ Python tracker

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Changing the repro to: ``` import zipfile try: import zipp except ImportError: import zipfile as zipp zip_file = zipfile.ZipFile('zipfile.zip') name = zip_file.namelist()[0] zipp.Path(zip_file) zip_file.open(name) ``` I'm able now to test against

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Even simpler: ``` zip_file = zipfile.ZipFile('zipfile.zip') name = zip_file.namelist()[0] zipfile.Path(zip_file) zip_file.open(name) ``` -- ___ Python tracker

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: This also reproduces the failure: ``` zip_file = zipfile.ZipFile('zipfile.zip') path = zipfile.Path(zip_file) name = zip_file.namelist()[0] del path zip_file.open(name) ``` Removing `del path` bypasses the issue. Something about the destructor for

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Even simpler: ``` import zipfile zip_file = zipfile.ZipFile('zipfile.zip') names = [each.name for each in zipfile.Path(zip_file).iterdir()] zip_file.open(names[0]) ``` -- ___ Python tracker

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Here's a much simpler repro that avoids the class construction but triggers the same error: ``` import zipfile zip_file = zipfile.ZipFile('zipfile.zip') names = [each.name for each in zipfile.Path(zip_file).iterdir()] with zip_file.open(names[0]) as file:

[issue44638] zipfile.ZipFile is closed when zipfile.Path is closed

2021-07-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: I was able to replicate the error using the script as posted: ``` draft $ cat > issue44638.py import zipfile class TestClass: def __init__(self, path): self.zip_file = zipfile.ZipFile(path) def iter_dir(self): return [each.name for

[issue43950] Include column offsets for bytecode instructions

2021-07-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 919ad537510fdc2c750109e0bc4eceea234324b2 by Batuhan Taskaya in branch 'main': bpo-43950: make BinOp specializations more reliable (GH-27126) https://github.com/python/cpython/commit/919ad537510fdc2c750109e0bc4eceea234324b2 --

[issue44184] crash on windows invoking flake8

2021-07-15 Thread miss-islington
miss-islington added the comment: New changeset 298ee657ab8170adf75a186c0414b7ca3baf1991 by Miss Islington (bot) in branch '3.9': bpo-44184: Fix subtype_dealloc() for freed type (GH-26274) https://github.com/python/cpython/commit/298ee657ab8170adf75a186c0414b7ca3baf1991 --

[issue44184] crash on windows invoking flake8

2021-07-15 Thread Thomas Wouters
Thomas Wouters added the comment: New changeset 0b4704973dbef712d05bdd62349bb4244f545430 by Miss Islington (bot) in branch '3.9': bpo-44184: Apply GH-26274 to the non-GC-type branch of subtype_dealloc (GH-27165) (GH-27175)

[issue42095] plistlib: Add tests that compare with plutil(1)

2021-07-15 Thread Hasan
Change by Hasan : -- pull_requests: -25709 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44184] crash on windows invoking flake8

2021-07-15 Thread Thomas Wouters
Change by Thomas Wouters : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44184] crash on windows invoking flake8

2021-07-15 Thread Thomas Wouters
Thomas Wouters added the comment: Fix extended to the other branch (and backported to 3.10), and both parts backported to 3.9. I don't think it counts as a security issue, so not backporting to 3.8. -- ___ Python tracker

[issue44184] crash on windows invoking flake8

2021-07-15 Thread Thomas Wouters
Thomas Wouters added the comment: New changeset 6aa59c68dc7910c0675ad23c1f9d88edfb81dfcb by Miss Islington (bot) in branch '3.10': bpo-44184: Apply GH-26274 to the non-GC-type branch of subtype_dealloc (GH-27165) (GH-27174)

[issue44184] crash on windows invoking flake8

2021-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +25713 pull_request: https://github.com/python/cpython/pull/27176 ___ Python tracker ___

[issue44184] crash on windows invoking flake8

2021-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +25712 pull_request: https://github.com/python/cpython/pull/27175 ___ Python tracker ___

[issue44184] crash on windows invoking flake8

2021-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +25711 pull_request: https://github.com/python/cpython/pull/27174 ___ Python tracker ___

[issue44184] crash on windows invoking flake8

2021-07-15 Thread Thomas Wouters
Thomas Wouters added the comment: New changeset 074e7659f208051b6b973f7fdb654dd22b93aaa2 by T. Wouters in branch 'main': bpo-44184: Apply GH-26274 to the non-GC-type branch of subtype_dealloc (GH-27165) https://github.com/python/cpython/commit/074e7659f208051b6b973f7fdb654dd22b93aaa2

[issue42095] plistlib: Add tests that compare with plutil(1)

2021-07-15 Thread Hasan
Change by Hasan : -- pull_requests: +25710 pull_request: https://github.com/python/cpython/pull/27173 ___ Python tracker ___ ___

[issue42095] plistlib: Add tests that compare with plutil(1)

2021-07-15 Thread Hasan
Change by Hasan : -- pull_requests: +25709 pull_request: https://github.com/python/cpython/pull/27172 ___ Python tracker ___ ___

[issue34828] sqlite.iterdump does not work for (most) databases with autoincrement

2021-07-15 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-15 Thread Pavel Moiseenko
Pavel Moiseenko added the comment: This does not cause any problems in the operation of the app, but visually it looks strange. Most other apps don't indicate the version of the app in the name of the app, but just indicate it in a specially made field for this. Therefore, it would be nice

[issue44641] [sqlite3] Use vectorcall in pysqlite_collation_callback

2021-07-15 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44650] Move test_futures files*.py into a subdirectory of Lib/test

2021-07-15 Thread Leonardo Freua
Leonardo Freua added the comment: List of files: test_future.py test_future3.py test_future4.py test_future5.py Obs.: In fact there are 5 files, since the number 2 doesn't exist. -- ___ Python tracker

[issue44648] Inspect.getsource raises wrong error on classes in interactive session

2021-07-15 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch pull_requests: +25708 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27171 ___ Python tracker ___

[issue44650] Move test_futures files* into a subdirectory of Lib/test

2021-07-15 Thread Leonardo Freua
Change by Leonardo Freua : -- components: +Library (Lib), Tests type: -> enhancement versions: +Python 3.11 ___ Python tracker ___

[issue44650] Move test_futures files*.py into a subdirectory of Lib/test

2021-07-15 Thread Leonardo Freua
Change by Leonardo Freua : -- title: Move test_futures files* into a subdirectory of Lib/test -> Move test_futures files*.py into a subdirectory of Lib/test ___ Python tracker

[issue44650] Move test_futures files* into a subdirectory of Lib/test

2021-07-15 Thread Leonardo Freua
New submission from Leonardo Freua : There are currently 6 files referring to __future__ tests, these are in the root directory Lib/test. It would be interesting to move them to a directory called Lib/test/test_future. This change could contribute to the organization of the tests that have

[issue10572] Move test sub-packages to Lib/test

2021-07-15 Thread Leonardo Freua
Leonardo Freua added the comment: After so long a reason came up that prevents the movement of tests of ctypes, lib2to3, and idlelib (which even continues in the same folder, only the nomenclature was changed)? -- nosy: +Leonardofreua ___ Python

[issue44647] Non-ASCII characters in os.environ cause silent failures in test_httpservers

2021-07-15 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44647] Non-ASCII characters in os.environ cause silent failures in test_httpservers

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 95596d5921eeab9ae49f0dc31263a249013b6849 by Miss Islington (bot) in branch '3.9': bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows (GH-27161) (#27170)

[issue44647] Non-ASCII characters in os.environ cause silent failures in test_httpservers

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 356bdff1e952f2ab7fdebae855bd78b401b735c4 by Miss Islington (bot) in branch '3.10': bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows (GH-27161) (#27169)

[issue44636] It is possible to create a 1-type union type

2021-07-15 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, you are right. Make it so, Mr. Spock! :-) -- ___ Python tracker ___ ___ Python-bugs-list

[issue44647] Non-ASCII characters in os.environ cause silent failures in test_httpservers

2021-07-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +25706 pull_request: https://github.com/python/cpython/pull/27169 ___ Python tracker

[issue44647] Non-ASCII characters in os.environ cause silent failures in test_httpservers

2021-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +25707 pull_request: https://github.com/python/cpython/pull/27170 ___ Python tracker ___

[issue44647] Non-ASCII characters in os.environ cause silent failures in test_httpservers

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 82b218f36ce6ef910bda5af227a9fd5be613c94f by Łukasz Langa in branch 'main': bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows (GH-27161)

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-07-15 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-07-15 Thread Christodoulos Tsoulloftas
New submission from Christodoulos Tsoulloftas : I am trying the new slots directive but I get an AttributeError when I try to access a field with init=False >>> from dataclasses import dataclass, field >>> >>> @dataclass(slots=True) ... class Example: ... a: str ... b: str =

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

2021-07-15 Thread Brandt Bucher
Brandt Bucher added the comment: Thanks, that test framework looks good for this. My initial hunch (just from looking at this) is that this has to do with how we handle cleanup after failed matches. Our "fail pop" blocks probably have whatever the last line number compiled was (which I

[issue44648] Inspect.getsource raises wrong error on classes in interactive session

2021-07-15 Thread Andrei Kulakov
New submission from Andrei Kulakov : [ins] In [63]: class A:pass [ins] In [64]: import inspect [ins] In [65]: inspect.getsource(A) [snip] /usr/local/Cellar/python@3.9/3.9.1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/inspect.py in getfile(object) 664 if

[issue44648] Inspect.getsource raises wrong error on classes in interactive session

2021-07-15 Thread Andrei Kulakov
Change by Andrei Kulakov : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44647] Non-ASCII characters in os.environ cause silent failures in test_httpservers

2021-07-15 Thread Łukasz Langa
Change by Łukasz Langa : -- keywords: +patch pull_requests: +25705 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27161 ___ Python tracker ___

[issue44647] Non-ASCII characters in os.environ cause silent failures in test_httpservers

2021-07-15 Thread Łukasz Langa
New submission from Łukasz Langa : GH-23638 introduced a new test for Accept: headers in CGI HTTP servers. This test serializes all of `os.environ` on the server side. For non-UTF8 locales this can fail for some Unicode characters found in environment variables. This started failing this

[issue44611] CPython uses deprecated randomness API

2021-07-15 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +25704 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27168 ___ Python tracker ___

[issue44616] Incorrect tracing for "except" with variable

2021-07-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks Ned. Seems you might be right. I thought I'd done a clean test, but in any event, I just pulled 3.10 head and verified that it's producing 100% coverage. Thanks all for the fix! -- resolution: -> fixed status: open -> closed

[issue44642] Union of a type and the typing module function

2021-07-15 Thread Ken Jin
Ken Jin added the comment: @Serhiy > 1. Make NewType a class and add more strict test. See also: issue44353 (https://bugs.python.org/issue44353). We had some discussion there about converting to class but it ended in a deadlock. -- ___ Python

[issue44642] Union of a type and the typing module function

2021-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is only reminder that our test for NewType is arbitrary. And it is not compatible with PR 9951. Possible solutions are: 1. Make NewType a class and add more strict test. Pro -- we can make arbitrary repr, contra -- it has small negative effect on

[issue44626] Incorrect tracing of nested if/if/for/yield

2021-07-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a86f7dae0acf918d54086cb85e5a0b0bedeedce7 by Mark Shannon in branch 'main': bpo-44626: Merge basic blocks earlier to enable better handling of exit blocks without line numbers (GH-27138)

[issue44646] hash() of the unity type is not consistent with equality

2021-07-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There is a rule: equal hashable objects should have the same hash. The unity type violates it. >>> x = int | str >>> y = str | int >>> x == y True >>> hash(x) == hash(y) False And hashes of equal unity type and typing.Union are different too. >>>

[issue42095] plistlib: Add tests that compare with plutil(1)

2021-07-15 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: Hasan, Please raise a PR on GitHub. -- nosy: +thatiparthy ___ Python tracker ___

[issue44616] Incorrect tracing for "except" with variable

2021-07-15 Thread Ned Batchelder
Ned Batchelder added the comment: Barry, is it possible you accidentally used the beta 4? I ran the test suite with a freshly built 3.10, but by mistake was still using the beta, and was surprised. Once I really got the latest build in place (Python 3.10.0b4+ (heads/3.10:47695e3c88, Jul

[issue44636] It is possible to create a 1-type union type

2021-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is a difference with typing.Union which can cause confusion. If the union type is like a tuple and we leave a 1-type union, why do we bother with deduplication? Why int | str | int is collapsed into int | str? Also it complicates the comparison

[issue44637] Quoting issue on header Reply-To

2021-07-15 Thread R. David Murray
R. David Murray added the comment: Yes, compat32 uses a different parser and folder (the legacy ones), that have a lot of small bugs relative to the RFCs (which is why I rewrote it). -- ___ Python tracker

[issue44641] [sqlite3] Use vectorcall in pysqlite_collation_callback

2021-07-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5007a4f23c551f8821483d15e76d0d15d5cb9945 by Erlend Egeberg Aasland in branch 'main': bpo-44641: Use vectorcall in sqlite3 collation callback (GH-27158) https://github.com/python/cpython/commit/5007a4f23c551f8821483d15e76d0d15d5cb9945

[issue42958] filecmp.cmp(shallow=True) isn't actually shallow when only mtime differs

2021-07-15 Thread Andrei Kulakov
Andrei Kulakov added the comment: Alexander: sorry, I didn't notice your PR because I was first working on a different issue, and then found this as a duplicate, and only noticed there's already an open PR here. If you prefer, we can close my PR and work on updating yours. --

[issue44645] Python 3.10: Under some trivial circunstances, GIL not released

2021-07-15 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +25703 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27167 ___ Python tracker

[issue44611] CPython uses deprecated randomness API

2021-07-15 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42958] filecmp.cmp(shallow=True) isn't actually shallow when only mtime differs

2021-07-15 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've put up the doc update PR here: https://github.com/python/cpython/pull/27166 I've also reviewed a few dozen SO questions about filecmp.cmp and shallow arg, many of them find the docs confusing or lacking, so I thought updating docs is definitely very

[issue44605] functools.total_ordering doesn't work with metaclasses

2021-07-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: -Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue44605] functools.total_ordering doesn't work with metaclasses

2021-07-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42958] filecmp.cmp(shallow=True) isn't actually shallow when only mtime differs

2021-07-15 Thread Andrei Kulakov
Change by Andrei Kulakov : -- pull_requests: +25702 pull_request: https://github.com/python/cpython/pull/27166 ___ Python tracker ___

[issue44636] It is possible to create a 1-type union type

2021-07-15 Thread Guido van Rossum
Guido van Rossum added the comment: I feel that keeping the singleton is more consistent. This normalization seems to me an example of the typing module doing too much. Singleton tuples are different from scalar values too. -- ___ Python tracker

[issue44642] Union of a type and the typing module function

2021-07-15 Thread Guido van Rossum
Guido van Rossum added the comment: Is it worth being picky about this? The internal data structures are safe. A static checker will complain. What more do you need? -- ___ Python tracker

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-15 Thread Guido van Rossum
Guido van Rossum added the comment: Way to go Irit!-- --Guido (mobile) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44622] async-for loops are traced incorrectly in Python 3.10

2021-07-15 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44622] async-for loops are traced incorrectly in Python 3.10

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 47695e3c88343e794d37333853b2ba3f16505c5d by Mark Shannon in branch '3.10': bpo-44622: Set line number of END_ASYNC_FOR to match that of iterator. (GH-27160) (GH-27163)

[issue44637] Quoting issue on header Reply-To

2021-07-15 Thread Julien Castiaux
Julien Castiaux added the comment: Update, it works fine with the compat32 policy -- ___ Python tracker ___ ___ Python-bugs-list

[issue44645] Python 3.10: Under some trivial circunstances, GIL not released

2021-07-15 Thread Mark Shannon
Mark Shannon added the comment: https://github.com/python/cpython/pull/18334 assumes that since all loops will contain a backwards edge, checking for interrupts on JUMP_ABSOLUTE should be sufficient. However, https://github.com/python/cpython/pull/23743 changed the back edges in while

[issue44184] crash on windows invoking flake8

2021-07-15 Thread Thomas Wouters
Change by Thomas Wouters : -- pull_requests: +25701 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/27165 ___ Python tracker ___

[issue44184] crash on windows invoking flake8

2021-07-15 Thread Thomas Wouters
Thomas Wouters added the comment: Reopening this issue, as there is another branch (for non-GC heaptypes) earlier in subtype_dealloc that I believe suffers from the same problem. Actually triggering the error in a test has been difficult because as far as I can tell it relies on garbage

[issue44622] async-for loops are traced incorrectly in Python 3.10

2021-07-15 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +25700 pull_request: https://github.com/python/cpython/pull/27163 ___ Python tracker ___

[issue42073] classmethod does not pass "type/owner" when invoking wrapped __get__

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2ce8af3cbcb368a35a05a5a9f97a09405124f239 by Miss Islington (bot) in branch '3.10': bpo-42073: allow classmethod to wrap other classmethod-like descriptors (GH-27115) (GH-27162)

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2ce8af3cbcb368a35a05a5a9f97a09405124f239 by Miss Islington (bot) in branch '3.10': bpo-42073: allow classmethod to wrap other classmethod-like descriptors (GH-27115) (GH-27162)

[issue44622] async-for loops are traced incorrectly in Python 3.10

2021-07-15 Thread Mark Shannon
Mark Shannon added the comment: New changeset f333ab0f2edec26a769ed558263ac662e5475451 by Mark Shannon in branch 'main': bpo-44622: Set line number of END_ASYNC_FOR to match that of iterator. (GH-27160) https://github.com/python/cpython/commit/f333ab0f2edec26a769ed558263ac662e5475451

[issue44622] async-for loops are traced incorrectly in Python 3.10

2021-07-15 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44645] Python 3.10: Under some trivial circunstances, GIL not released

2021-07-15 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- components: +Interpreter Core stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list

[issue44645] Python 3.10: Under some trivial circunstances, GIL not released

2021-07-15 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : After https://github.com/python/cpython/pull/18334, a "while condition: pass" in a thread will preclude releasing the GIL, hanging the program with CPU at 100%. Trivial to reproduce: """ #!/usr/bin/env python3.10 import threading import time def

[issue42073] classmethod does not pass "type/owner" when invoking wrapped __get__

2021-07-15 Thread Łukasz Langa
Change by Łukasz Langa : -- versions: +Python 3.11 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2021-07-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +25699 pull_request: https://github.com/python/cpython/pull/27162 ___ Python tracker ___

[issue42073] classmethod does not pass "type/owner" when invoking wrapped __get__

2021-07-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +25698 pull_request: https://github.com/python/cpython/pull/27162 ___ Python tracker

[issue42073] classmethod does not pass "type/owner" when invoking wrapped __get__

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b83861f0265e07207a6ae2c49c40fa8f447893f2 by Łukasz Langa in branch 'main': bpo-42073: allow classmethod to wrap other classmethod-like descriptors (#27115) https://github.com/python/cpython/commit/b83861f0265e07207a6ae2c49c40fa8f447893f2

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b83861f0265e07207a6ae2c49c40fa8f447893f2 by Łukasz Langa in branch 'main': bpo-42073: allow classmethod to wrap other classmethod-like descriptors (#27115) https://github.com/python/cpython/commit/b83861f0265e07207a6ae2c49c40fa8f447893f2

[issue44637] Quoting issue on header Reply-To

2021-07-15 Thread Julien Castiaux
Julien Castiaux added the comment: Hello David, I'm working in the same company as Baptiste and I'm trying to solve the problem. The issue is indeed related to the folding algorithm, the DBQUOTE character is lost in the parse_tree AST thus when the folding algo split the children to find a

[issue31791] Ensure that all PyTypeObject fields are set to non-NULL defaults

2021-07-15 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44637] Quoting issue on header Reply-To

2021-07-15 Thread R. David Murray
R. David Murray added the comment: Forget what I said about my different error, I made a mistake running the test script. Interesting. If it is related to the length of the name, then the problem is most likely in the folding algorithm, specifically in what happens when the "display-name"

[issue43948] sysconfig's osx_framework_user puts headers in different locations from distutils

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-15 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2021-07-15 Thread Mark Shannon
Mark Shannon added the comment: New changeset 641345d636320a6fca04a5271fa4c4c5ba3e5437 by Irit Katriel in branch 'main': bpo-26280: Port BINARY_SUBSCR to PEP 659 adaptive interpreter (GH-27043) https://github.com/python/cpython/commit/641345d636320a6fca04a5271fa4c4c5ba3e5437 --

[issue44644] Implement “Happy Eyeballs” algorithim (RFC 8503) in socket.create_connection()

2021-07-15 Thread origin400-p
New submission from origin400-p : While support for the so-called “Happy Eyeballs” algorithim described in RFC 8503 was implemented for asyncio in Issue #33530, socket's create_connection function remains left without it causing suboptimal performance in broken dual-stack environments.

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

2021-07-15 Thread Thomas Grainger
Thomas Grainger added the comment: hello, just chiming in to let you know that this broke CI on twisted: https://github.com/twisted/twisted/pull/1628/ (As above for Chalice, I think this didn't actually break the framework itself, just the tests for the framework. ) do you know what the

[issue42095] plistlib: Add tests that compare with plutil(1)

2021-07-15 Thread Hasan
Change by Hasan : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44473] logging.handlers.QueueHandler acts unexpected

2021-07-15 Thread Vinay Sajip
Vinay Sajip added the comment: > But, the prepare method doesn't do the enqueuing operation, it just prepares > the record and returns it back, so it seems like this statement is not > accurate? It merely states what happens to the return value. It doesn't say it has already been enqueued.

[issue42799] Please document fnmatch LRU cache size (256) and suggest alternatives

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

  1   2   >