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 2012年10月12日 09:12 by chris.jerdonek, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue16210.patch | sevanteri, 2012年10月23日 11:38 | review | ||
| Messages (6) | |||
|---|---|---|---|
| msg172734 - (view) | Author: Chris Jerdonek (chris.jerdonek) * (Python committer) | Date: 2012年10月12日 09:12 | |
[Found by Ezio] The built-in function documentation has what looks like two separate definitions of the built-in function type(): http://docs.python.org/dev/library/functions.html#type These two definitions should be combined into one with a multi-line signature like we're doing for the other built-in functions. |
|||
| msg172778 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2012年10月12日 20:33 | |
In other words, change ''' type(object) Return the type of an object. ... ... With three arguments, type() functions as a constructor as detailed below. type(name, bases, dict) Return a new type object.... ''' to something like ''' type(object) type(name, bases, dict) With one argument, return the type of an object. ... With three arguments, return a new type object. ... ''' Now that we are using double headers elsewhere, I agree we should do so here also. |
|||
| msg173592 - (view) | Author: Pete Sevander (sevanteri) * | Date: 2012年10月23日 11:38 | |
Here's a patch for it. |
|||
| msg173698 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2012年10月24日 19:51 | |
This patch looks good. Ezio, if you agree, please apply it. |
|||
| msg173700 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年10月24日 20:07 | |
New changeset 6dde85f2e4af by Ezio Melotti in branch '2.7': #16210: combine the two type() docs. Patch by Pete Sevander. http://hg.python.org/cpython/rev/6dde85f2e4af New changeset 997ab4f1530f by Ezio Melotti in branch '3.2': #16210: combine the two type() docs. Patch by Pete Sevander. http://hg.python.org/cpython/rev/997ab4f1530f New changeset 8f1d72106073 by Ezio Melotti in branch '3.3': #16210: merge with 3.2. http://hg.python.org/cpython/rev/8f1d72106073 New changeset fd69a6d1b0f0 by Ezio Melotti in branch 'default': #16210: merge with 3.3. http://hg.python.org/cpython/rev/fd69a6d1b0f0 |
|||
| msg173701 - (view) | Author: Ezio Melotti (ezio.melotti) * (Python committer) | Date: 2012年10月24日 20:08 | |
Done, thanks for the patch! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:37 | admin | set | github: 60414 |
| 2012年10月24日 20:08:49 | ezio.melotti | set | status: open -> closed resolution: fixed messages: + msg173701 stage: needs patch -> resolved |
| 2012年10月24日 20:07:54 | python-dev | set | nosy:
+ python-dev messages: + msg173700 |
| 2012年10月24日 19:51:56 | rhettinger | set | assignee: docs@python -> ezio.melotti messages: + msg173698 nosy: + rhettinger |
| 2012年10月23日 11:38:52 | sevanteri | set | files:
+ issue16210.patch nosy: + sevanteri messages: + msg173592 keywords: + patch |
| 2012年10月12日 20:33:15 | terry.reedy | set | nosy:
+ terry.reedy messages: + msg172778 |
| 2012年10月12日 09:19:27 | ezio.melotti | set | type: enhancement stage: needs patch |
| 2012年10月12日 09:12:19 | chris.jerdonek | create | |