Commit Graph

7289 Commits

Author SHA1 Message Date
Eric V. Smith 2d95971d98 Change return value of fields() from a list to a tuple. 2017-12-03 09:44:19 -05:00
Nick Coghlan 966dd42678
PEP 505: fix rationale for rejecting `f?()` syntax 2017-12-03 12:37:04 +10: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
James Ray 20b7e48120 Remove "XXX Mention docstrings of 2.2 properties." (#486)
See https://github.com/python/peps/issues/484 for details.
2017-11-30 10:48:08 -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
Chris Angelico 2a00e91583 Fix typo 2017-11-30 05:29:34 +11:00
Nick Coghlan 181cc79af9 Defer None-aware operator related PEPs
Neither of the authors of these PEPs are currently actively
championing them, and offering dedicated constructs for
working with partially structured hierarchical data is
still a relatively novel programming language design concept
in general.

Since there's no harm in waiting for more feedback and ideas,
deferring them for potential future consideration seems like a
good option for now.
2017-11-29 19:46:18 +10:00
Nick Coghlan 5686cccb80 PEP 565: Minor fixes to PEP text 2017-11-29 19:43:46 +10:00
Nick Coghlan 47ea35f051 PEP 565: Reword an awkward sentence 2017-11-28 20:57:03 +10:00
Nick Coghlan aaa64f53d0 PEP 565: Address Guido & Serhiy's comments
- note advice for test runners in abstract
- add explicit sections for test runner and
  interactive shell guidance
- simplify the warning category descriptions
  by moving the test runner details to their
  new section
- make it clear FutureWarning is gaining a
  second use case, while also keeping its old
  one
- note that IPython already follows the new
  guidance for interactive shells (and use
  their approach as an example)
- reword the advice for library and framework
  authors wanting seeking noisier compatibility
  warnings on earlier Python versions
2017-11-28 20:26:52 +10:00
Ned Deily 749a7a060c
Extend 3.7.0a3 another week 2017-11-27 22:38:32 -05:00
Benjamin Peterson e90fcb90fd some clarifcations I thought of 2017-11-26 23:30:43 -08: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
Guido van Rossum 039d3b7132 Fix typo 2017-11-25 08:03:16 -08:00
Guido van Rossum a9f4c7344d Reject PEP 549 2017-11-25 08:03:16 -08:00
Nick Coghlan c7cda067d4 PEP 565: note an implementation detail 2017-11-25 15:23:27 +10:00
Nick Coghlan ca9c7a845c PEP 565: add 2nd post date 2017-11-25 15:17:32 +10:00
Lukasz Langa 534c10773e [pep 563] Continuous tense for rejected ideas 2017-11-21 16:31:25 -08:00
Lukasz Langa 31adad8401 [pep 563] Tag current post history 2017-11-21 16:16:54 -08:00
Lukasz Langa 651083fb6f [pep 563] Second public draft to be discussed on python-dev. 2017-11-21 16:12:53 -08:00
Nick Coghlan 0c8ec1a7da
PEP 565: issue link for debug build changes 2017-11-21 12:21:12 +10:00
Ivan Levkivskyi 9228c0c923 Clarification based on python-dev discussion (#480) 2017-11-20 16:25:18 -08:00
Ivan Levkivskyi 303e46d494 Additional comment proposed on python-dev (#479) 2017-11-20 16:23:28 -08:00
Victor Stinner 141c79e1be Update pysandbox URL 2017-11-21 00:15:14 +01:00
Nick Coghlan 30daada786
PEP 565: Update for python-dev discussion (#478) 2017-11-19 17:11:18 +10:00
Ethan Smith e4b790c194 Add suggestion about multiple comment syntax (#476)
Describing the status quo.
2017-11-17 15:49:25 -08:00
Ivan Levkivskyi cd0e99aa05 Update post-history for PEP 560 (#475) 2017-11-17 14:55:08 -08:00
Ivan Levkivskyi 530b527c02 Update PEP 562 following suggestions on python-dev (#474)
I didn't add any specification for helper functions. Also I think we don't need module __set_name__ (it was brought by Serhiy) since it is still very new and much less known compared to __getattr__.
2017-11-17 14:52:41 -08:00
Ivan Levkivskyi 17564eff05 PEP 560: Wording improvements after discussion on python-dev (#473) 2017-11-17 14:16:43 -08:00
Mariatta 51a8f2f495
Delete pep-html-template (GH-472)
Closes https://github.com/python/peps/issues/471
2017-11-15 10:30:06 -08:00
Ivan Levkivskyi 8f2d854856 Updates following recent discussions (#470) 2017-11-14 11:57:23 -08:00
Ivan Levkivskyi 2a0cc286f2 Updates following recent disscussions (#469) 2017-11-14 11:54:51 -08:00
Ethan Smith 170513274d PEP 561: Add note about module only distributions (#468) 2017-11-13 20:55:55 -08:00
Guido van Rossum 78dc4b19a3
Proposed small tweaks to the text of PEP 561 (#467) 2017-11-13 15:50:14 -08:00
Mariatta 794178d6e0
PEP 565: Add missing backtick (GH-466) 2017-11-12 16:43:52 -08:00
Ethan Smith 1bf93be451 Update PEP 561 to use per-package marker file (#461)
Typing information relates to import packages rather than distribution packages,
so it needs to be inside the individual packages, rather than in the distribution
metadata.

As an added benefit, this means running directly from source control
will still do the right thing.
2017-11-12 20:51:37 +10:00
Nick Coghlan 9a3d13f690
PEP 565: change the default warnings filter (#465) 2017-11-12 13:46:56 +10:00
Mariatta cf3bad5ab3
Revert "Rename all .txt PEP files to .rst (GH-462)" (GH-464)
This reverts commit bb0e518ed3.
2017-11-11 11:28:55 -08:00
Huang Huang bb0e518ed3 Rename all .txt PEP files to .rst (GH-462)
For https://github.com/python/peps/issues/1
2017-11-11 10:30:43 -08:00
Ivan Levkivskyi 4fd3245ea1 Updates to PEP 560 (#460)
* Change title and use __mro_entry__

* Add more discussion and types.resolve_bases

* Improve example
2017-11-10 16:35:15 -08:00
Guido van Rossum d85cbb9264 Fix grammar nits 2017-11-10 12:01:01 -08:00
Guido van Rossum 99b1665d94
Small edits for PEP 560 (#459) 2017-11-10 11:45:03 -08:00
Mariatta 2c212e0086
PEP 8, deindent some of the text. (GH-458) 2017-11-10 09:22:07 -08:00