[Bf-python] Memory bug in Bpy api

Toni Alatalo antont at kyperjokki.fi
Wed Jan 18 15:26:59 CET 2006


On Wednesday 18 January 2006 15:17, Martin Poirier wrote:
> 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

but it does clear the local namespace of the script? i think it is not 
consistent to clear that space and not the others .. and thought that it was 
suppose to clear all, hmhm

> that have to run periodically (like event handlers or
> scriptlinks) much faster if they have to import lots
> of module.

yup that is certainly nice.

and as discussed earlier, for framechange-animated scripts it would be good 
for it to not clear the local namespace either

> There's reload function if you need to make sure
> you're getting a real new instance of a module.

yah and that is how 'shortwave' used it, reloading causing a repeatable crash 
for some reason in GC

> Martin

~Toni



More information about the Bf-python mailing list