CONSTRUCT - Adding Functionality to the Overall System

Ilias Lazaridis ilias at
Tue Sep 19 18:30:11 CEST 2006

MonkeeSage wrote:
> Ilias Lazaridis wrote:
> > How do I do this?
> It's easy:
> def writeDebug(msg):
>   print "I do not debug things, I _evaluate_ with professionals on the
> industries! See ticket 547!\n" \
>         "Oh yeah, and %s" % msg

where do I place this function...

> ...
> class Foo:
>   writeDebug("how can I configure the interpreter for understand
> Klingon participals and noun-phrases? Must I rectify the standard
> dictionaries first?")

...thus it becomes available within class "Foo" and all other Classes?

Something like a central import?


More information about the Python-list mailing list