How to detect that a function argument is the default one

Jean-Michel Pichavant jeanmichel at sequans.com
Wed Dec 10 11:48:15 EST 2014



----- Original Message -----
> From: "Chris Angelico" <rosuav at gmail.com>
> > c1 = Circle((0,0), 10, None)
> > print c1.mass
> > 20
> > c1.radius = 20
> > print c1.mass
> > 40
> 
> I think that juuuuuust miiiiight count as scope creep :) 
> ChrisA

Here you go :p

c1 = Circle((0,0), 10, None)
print c1.mass
20
c1.grow(+10)
print c1.mass
40

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the Python-list mailing list