Pyrex installation on windows XP: step-by-step guide

Jim Lewis jim.lewis at miclog.com
Thu May 25 19:03:01 EDT 2006


Thanks but now another problem :-(
Examples in books show importing a global so why does below give:
AttributeError: 'module' object has no attribute 'globalvar'

primes.pyx:
from run import globalvar
def prime(int kmax):
  result = [run.globalvar]
...

run.py:
from primes import prime
globalvar = 999
while True:
	print prime (10)




More information about the Python-list mailing list