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

2021-07-15 Thread Christian Steinmeyer
Christian Steinmeyer added the comment: I work on macOS 11.4 (20F71) (Kernel Version: Darwin 20.5.0). My python version is 3.8.9 and zipp is at 3.5.0 (but 3.4.1 behaves the same for me). For me, this is behavior is reproducible. Let me try to clarify what I mean. test = TestClass(root) # t

[issue44635] Convert None to NoneType in the union type constructor

2021-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6dec5255829a31826990ea40ca106cc496570df2 by Serhiy Storchaka in branch '3.10': [3.10] bpo-44635: Convert None to NoneType in the union type constructor (GH-27136). (GH-27142) https://github.com/python/cpython/commit/6dec5255829a31826990ea40ca

[issue44635] Convert None to NoneType in the union type constructor

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

[issue44632] Union with TypeVar does not work as intended

2021-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cc1a47c849a206441c9b370b6ca954862a523082 by Miss Islington (bot) in branch '3.10': bpo-44632: Fix support of TypeVar in the union type (GH-27139) (GH-27143) https://github.com/python/cpython/commit/cc1a47c849a206441c9b370b6ca954862a523082 --

[issue44632] Union with TypeVar does not work as intended

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

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

2021-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Simple example (without indexing): >>> import typing >>> typing.Union[int, int] >>> int | int int -- ___ Python tracker ___ _

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

2021-07-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The union type accepts any function from the typing module: >>> import typing >>> int | typing.cast int | typing.cast >>> int | typing.get_type_hints int | typing.get_type_hints It is a consequence of too lenient check for the typing.NewType() result (whi

[issue44637] Quoting issue on header Reply-To

2021-07-15 Thread Baptiste
Baptiste added the comment: Thanks David, Here is some other tests I ran Issuing: - msg['Reply-To'] = '"foo Research Inc Foofoo BarBar on Summer Special Friday 050 days (2021-02-31" ' - msg['Reply-To'] = '"foo Research Inc Foofoo BarBar on Summer Special Friday 050 days 20210231 " ' But

[issue44604] [Enhancement] Asyncio task decorator to provide interface to define async DAGs (similar to dask's delayed interface)

2021-07-15 Thread Art
Art added the comment: FYI - I've added created a new pypi project for this called `aiodag`. pip install aiodag Github here: https://github.com/aa1371/aiodag Pypi here: https://pypi.org/project/aiodag/ I would appreciate it if you could find some time take a look just at the readme on

[issue44643] importing does not dispatch to __builtins__.__getitem__ to lookup __import__

2021-07-15 Thread Patrick Reader
New submission from Patrick Reader : When a frame's __builtins__ is a subclass of dict with an overridden __getitem__ method, this overriden method is not used by the IMPORT_NAME instruction to lookup __import__ in the dictionary; it uses the lookup function of normal dictionaries (via _PyDic

[issue44643] importing does not dispatch to __builtins__.__getitem__ to lookup __import__

2021-07-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: Isn't `__builtins__` a private CPython feature? Other implementations may not have it or use it, and it is my understanding that we should not touch it. -- nosy: +steven.daprano ___ Python tracker

[issue44581] Interpreter can execute quickened opcodes in tracing mode

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

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

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

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

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

[issue44643] importing does not dispatch to __builtins__.__getitem__ to lookup __import__

2021-07-15 Thread Patrick Reader
Patrick Reader added the comment: It may be, but in that case, why do LOAD_BUILD_CLASS and things still use it? -- ___ Python tracker ___ _

[issue44643] importing does not dispatch to __builtins__.__getitem__ to lookup __import__

2021-07-15 Thread Patrick Reader
Patrick Reader added the comment: Similarly, when passing a subclass of dict to exec or eval as the locals or globals, all other instructions dispatch to the correct __getitem__ method. I'm pretty sure that's not CPython-private -- ___ Python trac

[issue44643] importing does not dispatch to __builtins__.__getitem__ to lookup __import__

2021-07-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Thu, Jul 15, 2021 at 10:24:34AM +, Patrick Reader wrote: > It may be, but in that case, why do LOAD_BUILD_CLASS and things still use it? They're allowed to use CPython implementation details because they are part of the CPython implementation. --

[issue44643] importing does not dispatch to __builtins__.__getitem__ to lookup __import__

2021-07-15 Thread Patrick Reader
Patrick Reader added the comment: Ok what I meant was, why does constructing a class use it when it looks up __build_class__ then? -- ___ Python tracker ___ _

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

2021-07-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b39eea06d148887dd91a3612febafbddda760593 by andrei kulakov in branch 'main': bpo-42799: fnmatch module: bump up size of lru_cache for patterns (GH-27084) https://github.com/python/cpython/commit/b39eea06d148887dd91a3612febafbddda760593 --

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

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

[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 ___

[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.

[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: https://mail.python.org

[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 corr

[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. --

[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 -- ___

[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 ___ ___

[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 ___ ___

[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"

[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 ___ ___ Python-bu

[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

[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

[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

[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 _

[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 Łukasz Langa
Change by Łukasz Langa : -- versions: +Python 3.11 -Python 3.9 ___ 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
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 worker(

[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 maili

[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: https://mail.python

[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 -

[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) https://github.com/python/cpython/commit/2ce8af3cbcb368a35a05a5a9f97a0

[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) https://github.com/python/cpython/commit/2ce8af3cbcb368a35a05a5a9f97a0

[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 ___

[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 coll

[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 ___ __

[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 state

[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 ma

[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) https://github.com/python/cpython/commit/47695e3c88343e794d37333853b2ba3f16505c

[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 ___ ___ P

[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

[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 __

[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

[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 ___ __

[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 list

[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 ___ ___ Python-bugs-

[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 use

[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: https://mail.pytho

[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

[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. -- _

[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 --

[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 _

[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 implemen

[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 15

[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 ___ __

[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. >>> import

[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) https://github.com/python/cpython/commit/a86f7dae0a

[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 perfor

[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 trac

[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

[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 ___

[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 week

[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 ___

[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 Unsubscrib

[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 getattr(mo

[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 think

[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 = field(def

[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 Uns

[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) https://github.com/python/cpython/commit/82b218f36ce6ef910bda5af227a9fd5be

[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 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 _

[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 ma

[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) https://github.com/python/cpython/commit/356bdff1e952f2ab

[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) https://github.com/python/cpython/commit/95596d5921eeab9ae

[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 ___ ___ P

[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 t

[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 al

[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
Change by Leonardo Freua : -- components: +Library (Lib), Tests type: -> enhancement versions: +Python 3.11 ___ 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*.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

[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 ___ ___

[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 i

[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: https:/

[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 ___ ___ Pyt

[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 ___ ___ Pyt

[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 -

[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 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: +25713 pull_request: https://github.com/python/cpython/pull/27176 ___ 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) https://github.com/python/cpython/commit/6aa59c68dc7910c0675ad23c1f9

  1   2   >