Peter Otten wrote: (snip) > > Can you cheat and just assign another known good func_code object? >>>>def hello(): print "hello" > ... >>>>def world(): print "world" > ... >>>>def use_it(hello=hello, world=world): > ... hello() > ... world() > ... >>>>use_it() > hello > world >>>>world.func_code = hello.func_code >>>>use_it() > hello > hello >>>>hello, world > (<function hello at 0x402904fc>, <function world at 0x40290534>)
+1 H2OTW !-) (NB : H2 -> Horrible Hack) -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list