Other option would be to add a function that either directly modifiedBrett!! Thanks for looking this up! With a little help from ctypes, I was able to call PyFrame_LocalsToFast, and it works wonderfully! Maybe this method could be added to the frame type itself?
single values in f_localsplus, a function that takes a dict and propogates the values, or a function that just calls PyFrame_LocalsToFast() .
Personally I am against this, but that is because you would single-handedly ruin my master's thesis and invalidate any possibleWell, at least in theory this only allows the developer to replace a variable with a better (hopefully) version of a class that is very similar... <wink>
type inferencing one can do in Python without some semantic change.
But then again my thesis shows that amount of type inferencing is not
worth the code complexity so it isn't totally devastating. =)
> And you are right, "don't do that". =)
I'm going to only remember this trick in the light of development tools. Really! This magic is WAY too deep for a library. The only use for it that I could really see is a smalltalk-like swap method.
Thanks again for your help! -Shane
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com