yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #04686
Re: evaluating expressions in python
> Yes, exactly.
> I tried this simple test of course, and it returned correct results (I
> tried that with ./yade test.py, not just ipython, to be really sure).
> I got to make the same thing in a more complex case, modifying
> peri-triax.py to exhibit the problem : the same thing stops working when
> the command run() is typed in the console instead of beeing in the script.
> I'll report the bug.
Report that bug to Python, then, not to yade. Read the documentation on
python and its scopes, the fact that it doesn't do what you expect it to
do is not qualifiable as bug, IMHO.
Follow ups
References