[FRPythoneers] pyo question

Ken Kinder kkinder at tridog.com
Thu May 3 14:49:20 MDT 2001

I'm trying to run pyo files directly. I created a simple python file
that reads:

	print "Content-type: text/html"
	print ""
	print "Hello, World!"

(CGI) and no, it's not indented like that.

And when I compile it like this:

	[kkinder at test cgi-bin]$ sudo python2.1 -OO
	Python 2.1 (#1, Apr 21 2001, 18:56:55) 
	[GCC 2.96 20000731 (Red Hat Linux 7.0)] on linux2
	Type "copyright", "credits" or "license" for more information.
	>>> import foo
	Content-type: text/html

	Hello, World!

Then run it, I get this:

	[kkinder at test cgi-bin]$ sudo python2.1 -OO -S foo.pyo
	Content-type: text/html

	Hello, World!
	run_pyc_file: nested_scopes: 0

How do I get the "run_pyc_file: nested_scopes: 0" out?

Ken Kinder
Tridog Interactive, Inc.

More information about the FRPythoneers mailing list