Commit Graph

11 Commits

Author SHA1 Message Date
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