[C++-sig] python callback - can it be stateful?

apocalypznow apocalypznow at gmail.com
Tue May 17 01:19:07 CEST 2005


Is there a way to have C++ call a Python callback, but have that Python 
callback operate on global python variables that have kept their state 
from previous callbacks?

Another similar question: can a Python callback set a global variable 
while another Python callback get the state of that variable?




More information about the Cplusplus-sig mailing list