Cool object trick

Carl Banks imbosol at aerojockey.com
Sun Dec 19 06:06:00 CET 2004


Bengt Richter wrote:
> m=type('',(),{})()

Nick Coghlan wrote:
> Heh.
>
> Look ma, Perlython!

I doubt anyone could perform such a ghastly hack so simply and
straightforwardly in Perl.


-- 
CARL BANKS




More information about the Python-list mailing list