python-stack-data-help-0.6.2-1.oe24090>    f ;G|`u`  y_9iᝑ`ܖ!'!JلKFބ~&v5~'dy f^)N&>PcﮄH~Hk _*>4 @rGCk&a[2fYD?cS2v` Kᔏt^e3;>Z[沖s`h-؆!`o{=^]Ko <.x ?`N )$fϻι=QM{Zb˟jB_UdDm]Gӈ5rou*_"&$S8 75 R'A?@|\v#@ם-ی1ݿ$Ix1П+s=}<HWb6fd4d32e94f185b538acf69bbe3ac4417ba4174722fea61c277852f65bddbfd46b58abefedb899065651201b4f6e236696278c2 aɩC@cByܫ>:?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 17266761910.6.2-1.oe2409python-stack-data/usr/share/doc/-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -fgcc-compatible -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/generic-hardened-clang.cfg -fasynchronous-unwind-tables -fstack-clash-protectioncpioxz2noarch-openEuler-linux-gnudirectory} [9o:m$lutf-8832776886a0c01e0ac11520cf7d844bf5cb7aadf02a6e620bca85a95c2be96f44dc531fee88bd76192f70334a9c85087b046e2db6122ab8f12b1b8274a9ff458?`7zXZ !#, [] b2u jӫ`(y0$1R~?R_LcQlV">@]A<ûQ=l\RQ]JM1a4PFa"'JXص YZ