a dummy python question

cipherpunk at gmail.com cipherpunk at gmail.com
Thu Aug 25 17:54:53 EDT 2005


This is not reproducible under either Python 2.3.4 (UNIX), Python 2.4.1
(UNIX) or Python 2.4.1 (Windows).  If you still need help, we need to
know precisely what you're doing.

===== scope_test.py =====
#!/usr/bin/env python
#
# (insert his code, verbatim...)
#
if __name__=='__main__':
    outer(3)

===== end scope_test.py =====

[rjhansen at serv16 ~]$ ./scope_test.py
3 2 1 0

[rjhansen at serv16 ~]$ python
Python 2.3.4 (#1, Feb  2 2005, 11:44:13)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from scope_test import outer
>>> outer(3)
3 2 1 0




More information about the Python-list mailing list