From: Jonathan B. <jbr...@ea...> - 2006-07-14 17:14:12
|
On Thu, 2006-07-13 at 13:59 +0100, Dr P H Borcherds wrote: > I have downloaded VPython-Win-Py2.4-4.beta2.exe (but visual.version = (4, > 'beta1')) > > My operating system is windows Me (update from windows 98) > > When I import visual as [from visual import *], dir() generates error > message : see below > but if I import it as "import visual" dir(visual) works ok There is a local variable named dir defined in site-packages/visual/__init__.py (on or about line 38). Rename it to _dir, and this won't be a problem. This has been fixed in CVS, and will be applied to the next release. This was my mistake - loops do not have their own scope (or something like that), and I had forgotten that property. -Jonathan |