You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
first commit
This commit is contained in:
18
test/test_globals.py
Executable file
18
test/test_globals.py
Executable file
@@ -0,0 +1,18 @@
|
||||
# globals.py -- test for global symbols
|
||||
#
|
||||
# This simple program is part of the decompyle test suite.
|
||||
#
|
||||
# decompyle is a Python byte-code decompiler
|
||||
# See http://www.goebel-consult.de/decompyle/ for download and
|
||||
# for further information
|
||||
|
||||
def f():
|
||||
print x # would result in a 'NameError' or 'UnboundLocalError'
|
||||
x = x+1
|
||||
print x
|
||||
|
||||
raise "This program can't be run"
|
||||
|
||||
x = 1
|
||||
f()
|
||||
print x
|
Reference in New Issue
Block a user