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

Jim Lewis jim.lewis at miclog.com
Fri May 26 01:03:01 CEST 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