[issue46404] 3.11a4: a small attrs regression

2022-03-15 Thread Lumír Balhar
Lumír Balhar added the comment: We have the same problem reported in attrs here in dataclasses and because it's not tested the way to manipulate __closure__ cells changes frequently. My plan is to implement something similar to this into dataclasses:

[issue46404] 3.11a4: a small attrs regression

2022-03-15 Thread Eric V. Smith
Eric V. Smith added the comment: @frenzy: I'm not sure what your fix would do. You could either describe it in rough terms (if you'd like a pre-PR opinion on the approach), or I'm happy to wait to see your PR. -- ___ Python tracker

[issue46404] 3.11a4: a small attrs regression

2022-03-15 Thread Lumír Balhar
Lumír Balhar added the comment: In my opinion, we should keep it simple for attrs and dataclasses to fix closure cells when a class is replaced and therefore it seems to be correct to have it mutable as it currently is in 3.11. My plan is to implement the fix for dataclasses and some tests

[issue46404] 3.11a4: a small attrs regression

2022-01-24 Thread Petr Viktorin
Petr Viktorin added the comment: I guess at least there should be a warning about this in dataclasses docs? The reproducer with dataclasses (which exhibits the same error on 3.10 and 3.11): import dataclasses @dataclasses.dataclass(slots=True) class A: pass

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Dennis Sweeney
Dennis Sweeney added the comment: bisected to here: 631f9938b1604d4f893417ec339b9e0fa9196fb1 is the first new commit commit 631f9938b1604d4f893417ec339b9e0fa9196fb1 Author: Eric Snow Date: Mon Jun 7 16:52:00 2021 -0600 bpo-43693: Add the MAKE_CELL opcode and interleave fast locals

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Hynek Schlawack
Change by Hynek Schlawack : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46404] 3.11a4: a small attrs regression

2022-01-16 Thread Tin Tvrtković
New submission from Tin Tvrtković : We've received a report over at the attrs issue tracker about our test suite failing on Python 3.11. Here's the link: https://github.com/python-attrs/attrs/issues/907 It turns out to be an issue with the no-arg `super()` calls in slotted classes. Here's a