@@ -84,8 +84,11 @@ def format_list(extracted_list):
8484
8585 Each string in the resulting list corresponds to the item with the
8686 same index in the argument list. Each string ends in a newline;
87- the strings may contain internal newlines as well, for those items
88- whose source text line is not None.
87+ the strings may contain internal newlines as well, for items whose
88+ source text spans multiple physical lines and has column position
89+ information. When column position information is unavailable, only
90+ the first physical line is displayed. Old-style tuples never have
91+ column position information.
8992 """
9093 return StackSummary .from_list (extracted_list ).format ()
9194
@@ -324,8 +327,8 @@ class FrameSummary:
324327 active when the frame was captured.
325328 - :attr:`name` The name of the function or method that was executing
326329 when the frame was captured.
327- - :attr:`line` The text from the linecache module for the line
328- of code that was running when the frame was captured.
330+ - :attr:`line` The first physical line of code that was running when
331+ the frame was captured.
329332 - :attr:`locals` Either None if locals were not supplied, or a dict
330333 mapping the name to the repr() of the variable.
331334 - :attr:`end_lineno` The last line number of the source code for this frame.
@@ -558,6 +561,11 @@ def from_list(klass, a_list):
558561 """
559562 Create a StackSummary object from a supplied list of
560563 FrameSummary objects or old-style list of tuples.
564+
565+ Old-style tuples do not have column position information, so only the
566+ first physical line of the line element is displayed when they are
567+ formatted. The same applies to FrameSummary objects without column
568+ position information.
561569 """
562570 # While doing a fast-path check for isinstance(a_list, StackSummary) is
563571 # appealing, idlelib.run.cleanup_traceback and other similar code may
0 commit comments