Commit Graph

28 Commits

Author SHA1 Message Date
M Somerville 8739c9efb4 PEP 557: Fix typo (#832) 2018-11-05 12:11:07 -08:00
Eric V. Smith a9945509bc Fix trivial typo. 2018-08-24 05:20:50 -04:00
Chen Shuaimin d5439b4260 PEP 557: fix typo (#636) 2018-04-30 20:29:48 +10:00
Eric V. Smith 4edbcd0a49 Changed to reflect unsafe_hash and the other discussions on python-dev. 2018-03-04 17:16:58 -05:00
Eric V. Smith b78c28504e Make type information on make_dataclass() optional. 2018-01-06 15:13:03 -05:00
Eric V. Smith fc58b77335 Fix markup. 2018-01-06 11:24:52 -05:00
Eric V. Smith ab1a60f08c Add is_dataclass(). 2018-01-06 11:10:27 -05:00
Eric V. Smith f7316723e9 Change _MISSING to MISSING and make it part of the public API. 2017-12-26 10:11:44 -05:00
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