[Python-de] Re: [Python-de] ist das gülltiger python code

Juergen Hermann jh at web.de
Sat Dec 8 01:25:40 EST 2001


On Thu, 15 Nov 2001 07:05:57 +0100, Robert Rottermann wrote:

>class Abc:
>   vorgabe = 'ge'
>
>   def tuwas(self, sprache = Abc.vorgabe)
>      ...

class Abc:
   vorgabe = 'ge'

   def tuwas(self, sprache=None)
      ... "%s ...." % (sprache or self.vorgabe)
	

Ciao, Jürgen





More information about the Python-de mailing list