** Attachment added: "slightly modified peri-triax.py to exhibit the bug" http://launchpadlibrarian.net/49509502/testGlobals2.py
-- problem with python globals https://bugs.launchpad.net/bugs/588387 You received this bug notification because you are a member of Yade developers, which is subscribed to Yade. Status in Yet Another Dynamic Engine: New Bug description: As discussed in yade-dev list. Python globals will behave differently if there is a run() in the invoked script or not. Here is a script. If you run it straightaway, it will print : "refstrain= 2.0 (should be 2.0), phase= 1 (should be 1)" Now, comment the two last lines and run it again (clicking "play" for instance, until it stops automatically or as soon as you see "Now εz will go from 0 to .2" output). Typing "print refstrain,phase" will then return : 0.0 0, as if the "global" directive was ignored. _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

