cpython/Misc/NEWS.d
Miss Islington (bot) 10343bd983
bpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False (GH-29692)
Special handling is needed, because for non-slots dataclasses the instance attributes are not set: reading from a field just references the class's attribute of the same name, which contains the default value. But this doesn't work for classes using __slots__: they don't read the class's attribute. So in that case (and that case only), initialize the instance attribute. Handle this for both normal defaults, and for fields using default_factory.
(cherry picked from commit d3062f672c)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
2021-11-22 05:47:41 -08:00
..
next bpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False (GH-29692) 2021-11-22 05:47:41 -08:00
3.5.0.rst
3.5.0a1.rst [3.10] [docs] Improve the markup of powers (GH-28598) (GH-28607) 2021-09-29 12:29:25 +01:00
3.5.0a2.rst
3.5.0a3.rst
3.5.0a4.rst
3.5.0b1.rst
3.5.0b2.rst
3.5.0b3.rst
3.5.0b4.rst
3.5.0rc1.rst
3.5.0rc2.rst
3.5.0rc3.rst
3.5.0rc4.rst
3.5.1.rst
3.5.1rc1.rst
3.5.2.rst
3.5.2rc1.rst
3.5.3.rst
3.5.3rc1.rst
3.5.4.rst
3.5.4rc1.rst
3.5.5.rst
3.5.5rc1.rst
3.6.0.rst
3.6.0a1.rst
3.6.0a2.rst
3.6.0a3.rst
3.6.0a4.rst
3.6.0b1.rst
3.6.0b2.rst
3.6.0b3.rst
3.6.0b4.rst
3.6.0rc1.rst
3.6.0rc2.rst
3.6.1.rst
3.6.1rc1.rst
3.6.2.rst
3.6.2rc1.rst
3.6.2rc2.rst
3.6.3.rst
3.6.3rc1.rst
3.6.4.rst
3.6.4rc1.rst [3.10] [docs] Improve the markup of powers (GH-28598) (GH-28607) 2021-09-29 12:29:25 +01:00
3.6.5.rst
3.6.5rc1.rst
3.6.6.rst
3.6.6rc1.rst
3.7.0.rst
3.7.0a1.rst
3.7.0a2.rst
3.7.0a3.rst [3.10] [docs] Improve the markup of powers (GH-28598) (GH-28607) 2021-09-29 12:29:25 +01:00
3.7.0a4.rst
3.7.0b1.rst
3.7.0b2.rst
3.7.0b3.rst
3.7.0b4.rst
3.7.0b5.rst
3.7.0rc1.rst
3.8.0a1.rst [3.10] [docs] Improve the markup of powers (GH-28598) (GH-28607) 2021-09-29 12:29:25 +01:00
3.8.0a2.rst
3.8.0a3.rst
3.8.0a4.rst
3.8.0b1.rst [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511) 2021-09-29 12:36:59 +01:00
3.9.0a1.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.9.0a2.rst Correct name of bytecode in change note. (GH-22723) 2020-10-19 13:20:33 +01:00
3.9.0a3.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.9.0a4.rst bpo-39572: Address typo in CHANGELOG. (GH-24999) 2021-04-22 17:35:11 -07:00
3.9.0a5.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.9.0a6.rst
3.9.0b1.rst bpo-34956: edit and format better NEWS item in 3.9.0b1 changelog (GH-20255) 2020-05-20 05:41:26 -04:00
3.10.0.rst Python 3.10.0 2021-10-04 18:40:46 +01:00
3.10.0a1.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.10.0a2.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.10.0a3.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.10.0a4.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.10.0a5.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.10.0a6.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.10.0a7.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.10.0b1.rst [3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794) 2021-10-07 17:09:30 +02:00
3.10.0b2.rst Python 3.10.0b2 2021-05-31 12:30:34 +01:00
3.10.0b3.rst [3.10] bpo-43853: Amend NEWS entry for latest changes in sqlite3 (GH-27922). (GH-27953) 2021-08-25 20:50:23 +01:00
3.10.0b4.rst Python 3.10.0b4 2021-07-10 01:51:07 +01:00
3.10.0rc1.rst Python 3.10.0rc1 2021-08-02 20:53:59 +01:00
3.10.0rc2.rst Python 3.10.0rc2 2021-09-07 14:18:28 +01:00