Skip to content

Commit c4e2a26

Browse files
committed
Address review feedback: simplify getabsfile wording, link named tuple term
1 parent 00b157d commit c4e2a26

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/library/inspect.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -738,11 +738,10 @@ Retrieving source code
738738

739739
.. function:: getabsfile(object)
740740

741-
Return an absolute path to the (text or binary) file in which an object
742-
was defined, normalized for the current platform using
743-
:func:`os.path.normcase`. This uses :func:`getsourcefile` and falls back
744-
to :func:`getfile` if no source file can be found. The idea is for each
745-
object to have a unique origin.
741+
Return an absolute, normalized path to the (text or binary) file in
742+
which an object was defined. This uses :func:`getsourcefile` and falls
743+
back to :func:`getfile` if no source file can be found. The idea is for
744+
each object to have a unique origin.
746745

747746

748747
.. function:: getmodule(object)
@@ -1237,8 +1236,9 @@ Classes and functions
12371236

12381237
.. function:: classify_class_attrs(cls)
12391238

1240-
Return a list of ``Attribute(name, kind, defining_class, object)`` named
1241-
tuples for each attribute reported by ``dir(cls)``. *kind* is one of
1239+
Return a list of :term:`named tuples <named tuple>`
1240+
``Attribute(name, kind, defining_class, object)`` for each attribute
1241+
reported by ``dir(cls)``. *kind* is one of
12421242
``'class method'``, ``'static method'``, ``'property'``, ``'method'`` or
12431243
``'data'``, and *defining_class* is the class in *cls*'s :term:`MRO` (or
12441244
its metaclass's MRO) that defines the attribute. *object* is the

0 commit comments

Comments
 (0)