This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2015年04月13日 13:39 by zach.ware, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue23932.r1.patch | shiroyuki, 2015年04月13日 15:30 | review | ||
| issue23932.r2.patch | shiroyuki, 2015年04月13日 16:00 | review | ||
| Messages (6) | |||
|---|---|---|---|
| msg240606 - (view) | Author: Zachary Ware (zach.ware) * (Python committer) | Date: 2015年04月13日 13:39 | |
(Brought up by 'Tronster' on docs@) https://docs.python.org/3/tutorial/controlflow.html#function-annotations In light of the PEP 484 and its clear intentions for function annotations, the tutorial section on function annotations is out of date. It should be updated to be clear that function annotations are intended for type hints, and that other uses are no longer encouraged. The example should also use some built-in types in a manner consistent with PEP 484. |
|||
| msg240624 - (view) | Author: Juti Noppornpitak (shiroyuki) * | Date: 2015年04月13日 15:30 | |
I reworded to mention the coming changes regarding to PEP 484. The old writing which mention about arbitariness is moved to the end of the "function annotations" section as a warning. |
|||
| msg240628 - (view) | Author: Zachary Ware (zach.ware) * (Python committer) | Date: 2015年04月13日 15:43 | |
@Juti: Thanks for the patch! I've left a review on Rietveld, which should have sent you an email (or you can get to it through the 'review' link). |
|||
| msg240636 - (view) | Author: Juti Noppornpitak (shiroyuki) * | Date: 2015年04月13日 16:00 | |
Based on the review |
|||
| msg240646 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2015年04月13日 16:32 | |
New changeset 0acb8dcb8e0c by Zachary Ware in branch '3.4': Issue #23932: Update the tutorial section on function annotations. https://hg.python.org/cpython/rev/0acb8dcb8e0c New changeset 75a6774ba070 by Zachary Ware in branch 'default': Closes #23932: Merge with 3.4 https://hg.python.org/cpython/rev/75a6774ba070 |
|||
| msg240647 - (view) | Author: Zachary Ware (zach.ware) * (Python committer) | Date: 2015年04月13日 16:33 | |
Cleaned it up just a little bit and committed. Thanks for the patch, Juti! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:15 | admin | set | github: 68120 |
| 2015年04月13日 16:33:03 | zach.ware | set | messages: + msg240647 |
| 2015年04月13日 16:32:27 | python-dev | set | status: open -> closed nosy: + python-dev messages: + msg240646 resolution: fixed stage: needs patch -> resolved |
| 2015年04月13日 16:00:42 | shiroyuki | set | files:
+ issue23932.r2.patch messages: + msg240636 |
| 2015年04月13日 15:43:50 | zach.ware | set | messages: + msg240628 |
| 2015年04月13日 15:30:14 | shiroyuki | set | files:
+ issue23932.r1.patch nosy: + shiroyuki messages: + msg240624 keywords: + patch |
| 2015年04月13日 13:39:54 | zach.ware | create | |