On Sat, Feb 23, 2008 at 11:41:38PM +0100, Petr Jake?? wrote: > I know this question is probably silly, but anyway...
It is not. ;) > is it possible to store Python objects Yes, using PicklCol. > (function names for example) to the > database? > Please understand I do not mean a string containing the name of the > function. > > I would like to store function name to the database and read them and > execute them later on in a function call (call/invoke/execute the function > putting the parentheses after the function name) Oops. It is not possible to store functions (not their names) because you have to extract and store Python code objects. Well, it is possible, but it is hard and I advise you not to do this. For the function names store their names - yes, strings - and then get the function from the module by name using getattr. Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss