python-stack-data-help-0.6.2-1.oe2403>  <@PT@7!.ܶujG7of=openeuler@compass-ci.com G7o @ܘi]HE.4RȞmM9^,Q$&;)C;U{XC6SHG[Ԙ>j+9 E3\ 4>W./ĥqK=)>_jA⡍_.igAax5cmZ0$yBA8a -ctS44z(EC[SeD4|yHJn76Mx1UA?+ɞΊofj&zLJ:?d ( Z  5;DH J L P Q TX]b3(O8X9\:FGHIXY\]^bdeflt4u8v<zFX\bCpython-stack-data-help0.6.21.oe2403Development 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: ```f=dc-64g.compass-ciMIThttp://openeuler.orgUnspecifiedhttp://github.com/alexmojaki/stack_datalinuxnoarchAf=rootrootpython-stack-data-0.6.2-1.oe2403.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 17153098530.6.2-1.oe2403python-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-gnudirectoryt<]Ī^utf-8a94573169511350cd003fbad0555ee9e85bda12a132d921da695acf7ec1a52598bb683ad04ad0a202f205b5c5e78f771ff2801e9dd144141aa1aafb866ab383b?`7zXZ !#, \] b2u jӫ`(y0>/ 2XaN S+ZMGE%ZWDmث4S5h[A / [\^xq(AAf8;6XG YZ