Pymacs 0.11

François Pinard pinard at iro.umontreal.ca
Wed Oct 17 20:28:32 EDT 2001


[Carel Fellinger]

> But maby it's possible--in anticipation of a wider usage of more modern
> Pythons--to check first for such a function attribute, like:

>     try:
>        interaction = fun.lisp_interaction
>     except NameError:
>        interaction = interactions[fun]

Simple enough.  Done! :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard




More information about the Python-list mailing list