[Bf-python] Memory bug in Bpy api
Martin Poirier
theeth at yahoo.com
Wed Jan 18 15:17:31 CET 2006
--- Toni Alatalo <antont at kyperjokki.fi> wrote:
> currently bpy preserves loaded modules, with their
> contents, in memory
> *between runs*. i dont know if this is a new or an
> old bug, but a bug anyway
> i think. here is a little test script:
It's not a bug per se, it's like using the interactive
python console to execute other scripts, it keeps the
same interpreter running all the time and therefore
doesn't have to reload modules. This makes scripts
that have to run periodically (like event handlers or
scriptlinks) much faster if they have to import lots
of module.
There's reload function if you need to make sure
you're getting a real new instance of a module.
Martin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Bf-python
mailing list