A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2008-June/080512.html below:

[Python-Dev] Opcode frequency

[Python-Dev] Opcode frequency [Python-Dev] Opcode frequencyAntoine Pitrou solipsis at pitrou.net
Wed Jun 18 23:12:15 CEST 2008
Georg Brandl <g.brandl <at> gmx.net> writes:
> Agreed; is there a way for a JUMP to end up without popping the top
> after jumping? It would have to do a DUP first then.

For example:

>>> def f(x, y):
...  return x and y
... 
>>> import dis
>>> dis.dis(f)
  2           0 LOAD_FAST                0 (x)
              3 JUMP_IF_FALSE            4 (to 10)
              6 POP_TOP             
              7 LOAD_FAST                1 (y)
        >>   10 RETURN_VALUE        



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4