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

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, 4 months ago
Right Patch Set: Created 3 years, 4 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:
Left: Side by side diff | Download
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
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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 Python identifier. 626 Python identifier.
627 627
628 .. impl-detail:: 628 .. impl-detail::
629 629
630 CPython generates implicit parameter names of the form ``.0`` on the 630 CPython generates implicit parameter names of the form ``.0`` on the
631 code objects used to implement comprehensions and generator 631 code objects used to implement comprehensions and generator
632 expressions. 632 expressions.
633 633
634 .. versionchanged:: 3.6 634 .. versionchanged:: 3.6
635 These parameter names are exposed by this module as names like 635 These parameter names are exposed by this module as names like
636 ``implicit0``. 636 ``implicit0``.
r.david.murray 2016/06/04 02:01:16 How about: .. impl-detail:: .. versionchanged
637 637
638 .. attribute:: Parameter.default 638 .. attribute:: Parameter.default
639 639
640 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
641 value, this attribute is set to :attr:`Parameter.empty`. 641 value, this attribute is set to :attr:`Parameter.empty`.
642 642
643 .. attribute:: Parameter.annotation 643 .. attribute:: Parameter.annotation
644 644
645 The annotation for the parameter. If the parameter has no annotation, 645 The annotation for the parameter. If the parameter has no annotation,
646 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
1229 1229
1230 .. program:: inspect 1230 .. program:: inspect
1231 1231
1232 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
1233 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
1234 appended a colon and the qualified name of the target object. 1234 appended a colon and the qualified name of the target object.
1235 1235
1236 .. cmdoption:: --details 1236 .. cmdoption:: --details
1237 1237
1238 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+