Re: Default method arguments
- From: Nicola Larosa <nico-NoSp@xxxxxxxxxxxxx>
- Date: Tue, 15 Nov 2005 17:20:29 +0100
> def f(self, x=None):
> if not x:
Ha! You fell for it! ;-D
(Hint: what about x being passed with a value of zero? :-) )
> x = self.data
> print x
--
Nicola Larosa - nico-NoSp@xxxxxxxxxxxxx
....Linux security has been better than many rivals. However, even
the best systems today are totally inadequate. Saying Linux is
more secure than Windows isn't really addressing the bigger issue
- neither is good enough. -- Alan Cox, September 2005
.
- References:
- Re: Default method arguments
- From: Bill Mill
- Re: Default method arguments
- Prev by Date: Re: Default method arguments
- Next by Date: Sending an event from a python COM server to a VB COM client
- Previous by thread: Re: Default method arguments
- Next by thread: Re: Default method arguments
- Index(es):
Relevant Pages
|