Jelle Zijlstra
20d684c243
Fix grammar in PEP 557 (GH-519)
...
"No init method", instead of "not init method".
2017-12-20 18:06:59 -08:00
Eric V. Smith
b46be0d897
Add a paragraph describing another rational for using InitVar pseudo-fields.
2017-12-08 03:05:16 -05:00
Eric V. Smith
4b33897304
Add an early example of a mutable type inspired by namedtuple.
2017-12-08 02:59:10 -05:00
Victor Stinner
21ed60fb06
Guido accepted the PEP 557
2017-12-04 18:52:19 +01:00
Eric V. Smith
6b32e0d8ae
Add note about non-PEP 8 compliant function names.
2017-12-04 05:37:26 -05:00
Eric V. Smith
2d95971d98
Change return value of fields() from a list to a tuple.
2017-12-03 09:44:19 -05:00
Eric V. Smith
5aea6ec4ac
Change the default for order to be False.
...
See https://github.com/ericvsmith/dataclasses/issues/104 for discussion.
2017-12-02 08:55:08 -05:00
Eric V. Smith
dba3334a07
Removed isdataclass().
2017-12-01 07:57:12 -05:00
Eric V. Smith
87d7bd9fc3
Fix markup for plurals.
2017-11-30 16:57:25 -05:00
Mariatta
70ed6ad17e
Fix markup in PEP 557. (GH-487)
2017-11-30 13:13:59 -08:00
Eric V. Smith
98e48b8c51
Fix typos.
2017-11-30 08:22:07 -05:00
Eric V. Smith
2074efb171
Hopefully the final set of edits.
2017-11-29 18:21:12 -05:00
Mariatta
600fecb3b9
PEP 557: Fix typo in the word "initialized". (GH-483)
2017-11-25 18:02:55 -08:00
Mariatta
3ae7c5bec5
PEP 557: Deindent some bullet list items ( #481 )
...
Thanks.
2017-11-25 19:02:31 -05:00
Eric V. Smith
cd24cee7b4
Fix typo.
2017-11-25 15:54:11 -05:00
Eric V. Smith
17cc5bc3f7
Update to Data Classes.
...
The major changes from the previous version are:
- Add InitVar to specify initialize-only fields.
- Renamed __dataclass_post_init__() to __post_init().
- Rename cmp to compare.
- Added eq, separate from compare, so you can test
unorderable items for equality.
- Flushed out asdict() and astuple().
- Changed replace() to just call __init__(), and dropped
complex post-create logic.
2017-11-25 15:41:52 -05:00
Eric V. Smith
11f422bdc7
Fix typo.
2017-09-11 17:57:26 -04:00
Barry Warsaw
6d4f10e59d
Fix some minor typos.
2017-09-11 11:10:36 -07:00
Eric V. Smith
7f810d6440
Fix code typo.
2017-09-08 09:23:07 -07:00
Eric V. Smith
6be5d81449
Added PEP 557: Data Classes
2017-09-08 07:48:26 -07:00