python-stack-data-help-0.6.2-1.oe24090>    f ;G|`u` }8 3^xRLF*)H(L[A9 xPъn\͏ q6 Z݀v^0`bC#LOK0 < :?d ( Z  5;DH J L P Q TX]b3(O8X9\:FGHIXY\]^bdeflt8u<v@zJ\`fCpython-stack-data-help0.6.21.oe2409Development documents and examples for stack-data 6 | for i in range(5): 7 | row = [] 8 | result.append(row) --> 9 | print_stack() 10 | for j in range(5): ``` The code for `print_stack()` is fairly self-explanatory. If you want to learn more details about a particular class or method I suggest looking through some docstrings. `FrameInfo` is a class that accepts either a frame or a traceback object and provides a bunch of nice attributes and properties (which are cached so you don't need to worry about performance). In particular `frame_info.lines` is a list of `Line` objects. `line.render()` returns the source code of that line suitable for display. Without any arguments it simply strips any common leading indentation. Later on we'll see a more powerful use for it. You can see that `frame_info.lines` includes some lines of surrounding context. By default it includes 3 pieces of context before the main line and 1 piece after. We can configure the amount of context by passing options: ```python options = stack_data.Options(before=1, after=0) frame_info = stack_data.FrameInfo(frame, options) ``` Then the output looks like: ```fdc-64g.compass-ciMIThttp://openeuler.orgUnspecifiedhttp://github.com/alexmojaki/stack_datalinuxnoarchAfrootrootpython-stack-data-0.6.2-1.oe2409.src.rpmpython-stack-data-helppython3-stack-data-doc    rpmlib(CompressedFileNames)rpmlib(FileDigests)rpmlib(PayloadFilesHavePrefix)rpmlib(PayloadIsXz)3.0.4-14.6.0-14.0-15.2-14.18.2df@Python_Bot - 0.6.2-1- Package Spec generateddc-64g.compass-ci 17266592750.6.2-1.oe2409python-stack-data/usr/share/doc/-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection cpioxz2noarch-openEuler-linux-gnudirectory!EqFP\utf-8a77848a3019ac1f62d282570177ee029a1b4c8451859eddf34720c144ab6f2fc09b2455491bc6857e234db7e457cf15c956c3ab6891b5d76177d9b3b1248656e?`7zXZ !#, \] b2u jӫ`(y0$wQsNqX>.dr~aONKiL 8RP/Yu4/ O EThW4~E|\l:]v};Hen6XG YZ