Re: Default method arguments



> 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
.



Relevant Pages

  • RE: Checkpoint SmartDefense
    ... As my expertise is web applications security, I can comment only on the ... Zero day attack detection is a tricky business. ... attacks such as SQL injection or XSS, ... As configuration being is on the rough side I think that in real world ...
    (Focus-IDS)
  • Re: Best AntiVirus for OSX?
    ... it is always a decision between security and comfort. ... itself, *not* malware. ... zero of which, affect the mac. ... the viruses / trojans you detected. ...
    (comp.sys.mac.apps)
  • Re: Maximum modulus question 2.
    ... Hint: minimum modulus theorem. ... I cannot find light with only this hint. ... Rudin RCA in chap 13 which concerns mainly Maximum Modulus Thm along ... h has no zero in U ...
    (sci.math)
  • Re: Apple/Macs for the Army
    ... There are more gaping security holes in OS X than in Windows Vista. ... There is a zero day exploit out in the wild right that effects IE on Vista. ...
    (comp.sys.mac.advocacy)
  • Re: folder permissions arent defaulted
    ... I just posted the howto on finding out how to turn the security tab on in ie. ... Just needed to add this hint to my email hint file. ... And to do that it has to arrive either in my inbox, or thru a news group. ...
    (microsoft.public.windowsxp.newusers)