CONSTRUCT - Adding Functionality to the Overall System

Steve Holden steve at holdenweb.com
Tue Sep 19 14:09:10 EDT 2006


Ilias Lazaridis wrote:
> 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?
> 
> ..
> 
Good grief ...
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb       http://holdenweb.blogspot.com
Recent Ramblings     http://del.icio.us/steve.holden




More information about the Python-list mailing list