python-stack-data-help-0.6.2-1.oe24090>    f ;G|`u` y !)Ȕc䳮=v֝rke-"l&JVAjpi '[UG* \fAm_20:c#"(|;|G7G X 4ZH#l8R yXcw2XݿEX!Vw09293a862a1407d28a965db89ded52c2c2dda6d58bc2afa49aeea70de8f5850ec2def03bd094ee8b815136c2fac471e02e797ff2 IT RQg$(]^>:?d ( Z  5;DH J L P Q TX]b3(O8X9\:FGHIXY\]^bdeflt u$v(z2DHNCpython-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 17266608840.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 -fasynchronous-unwind-tables -fstack-clash-protectioncpioxz2noarch-openEuler-linux-gnudirectoryaW-KKHgutf-8719f1e889f3e09a491981ec42ab41315f06100a49d44ca338516b2fa8396be1f5e79fa6b276439d189447030fe91c4035c864f726d856ad9a027d7b0e65ea38c?`7zXZ !#, \] b2u jӫ`(y0$ ={!@6'Q|pf {?#HhC"/9M(m g_}x,5/y^yk'd9щDp0\Ormj٠'װ^6XG YZ