question about a command like 'goto ' in Python's bytecode or it's just a compiler optimization?

higer higerinbeijing at gmail.com
Wed Jun 17 08:47:09 EDT 2009


On Jun 17, 8:29 pm, John Machin <sjmac... at lexicon.net> wrote:
> On Jun 17, 1:40 pm, higer <higerinbeij... at gmail.com> wrote:
>
> > My Python version is 2.5.2; When I reading the bytecode of some pyc
> > file, I always found that there are many jump command from different
> > position,but to the same position. You can see this situation in
> > following code(this bytecode is just from one .pyc file and I don't
> > have its source .py file):
>
> Why don't you (a) read the answers you got on stackoverflow to the
> identical question (b) WRITE some code instead of inspecting the
> entrails of the code of others?

Thanks, I read the answer just now.
And thank everbody for your suggestion!



More information about the Python-list mailing list