Yet another decorator proposal

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Thu Aug 12 16:41:36 CEST 2004


Marco Aschwanden wrote:
> On Wed, 11 Aug 2004 10:55:40 -0400, Christopher T King <squirrel at WPI.EDU> 
> wrote:
> 
>> Also, don't forget docstrings get thrown away when using python -OO.
>> Great voodoo would be needed to prevent this from happening.
> 
> <magic>
> By now the compiler takes the first triple-quoted-string and sets it on 
> the object's __doc__-var.

It doesn't really need to be triple-quoted, does it?

Reinhold

-- 
Wenn eine Linuxdistribution so wenig brauchbare Software wie Windows
mitbrächte, wäre das bedauerlich.  Was bei Windows der Umfang eines
"kompletten Betriebssystems" ist, nennt man bei Linux eine Rescuedisk.
  -- David Kastrup in de.comp.os.unix.linux.misc



More information about the Python-list mailing list