Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(84721)

Delta Between Two Patch Sets: Doc/library/inspect.rst

Issue 19611: inspect.getcallargs doesn't properly interpret set comprehension code objects.
Left Patch Set: Created 3 years, 2 months ago
Right Patch Set: Created 3 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Lib/inspect.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 :mod:`inspect` --- Inspect live objects 1 :mod:`inspect` --- Inspect live objects
2 ======================================= 2 =======================================
3 3
4 .. module:: inspect 4 .. module:: inspect
5 :synopsis: Extract information and source code from live objects. 5 :synopsis: Extract information and source code from live objects.
6 .. moduleauthor:: Ka-Ping Yee <ping@lfw.org> 6 .. moduleauthor:: Ka-Ping Yee <ping@lfw.org>
7 .. sectionauthor:: Ka-Ping Yee <ping@lfw.org> 7 .. sectionauthor:: Ka-Ping Yee <ping@lfw.org>
8 8
9 **Source code:** :source:`Lib/inspect.py` 9 **Source code:** :source:`Lib/inspect.py`
10 10
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 617
618 .. attribute:: Parameter.empty 618 .. attribute:: Parameter.empty
619 619
620 A special class-level marker to specify absence of default values and 620 A special class-level marker to specify absence of default values and
621 annotations. 621 annotations.
622 622
623 .. attribute:: Parameter.name 623 .. attribute:: Parameter.name
624 624
625 The name of the parameter as a string. The name must be a valid 625 The name of the parameter as a string. The name must be a valid
626 Python identifier. 626 Python identifier.
627
628 .. impl-detail::
629
630 CPython generates implicit parameter names of the form ``.0`` on the
631 code objects used to implement comprehensions and generator
632 expressions.
633
634 .. versionchanged:: 3.6
635 These parameter names are exposed by this module as names like
636 ``implicit0``.
627 637
628 .. attribute:: Parameter.default 638 .. attribute:: Parameter.default
629 639
630 The default value for the parameter. If the parameter has no default 640 The default value for the parameter. If the parameter has no default
631 value, this attribute is set to :attr:`Parameter.empty`. 641 value, this attribute is set to :attr:`Parameter.empty`.
632 642
633 .. attribute:: Parameter.annotation 643 .. attribute:: Parameter.annotation
634 644
635 The annotation for the parameter. If the parameter has no annotation, 645 The annotation for the parameter. If the parameter has no annotation,
636 this attribute is set to :attr:`Parameter.empty`. 646 this attribute is set to :attr:`Parameter.empty`.
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 1229
1220 .. program:: inspect 1230 .. program:: inspect
1221 1231
1222 By default, accepts the name of a module and prints the source of that 1232 By default, accepts the name of a module and prints the source of that
1223 module. A class or function within the module can be printed instead by 1233 module. A class or function within the module can be printed instead by
1224 appended a colon and the qualified name of the target object. 1234 appended a colon and the qualified name of the target object.
1225 1235
1226 .. cmdoption:: --details 1236 .. cmdoption:: --details
1227 1237
1228 Print information about the specified object rather than the source code 1238 Print information about the specified object rather than the source code
LEFTRIGHT
« no previous file | Lib/inspect.py » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+