Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82351 > unrolled thread
| Started by | Jean-Michel Pichavant <jeanmichel@sequans.com> |
|---|---|
| First post | 2014-12-10 17:48 +0100 |
| Last post | 2014-12-10 17:48 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Re: How to detect that a function argument is the default one Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-12-10 17:48 +0100
| From | Jean-Michel Pichavant <jeanmichel@sequans.com> |
|---|---|
| Date | 2014-12-10 17:48 +0100 |
| Subject | Re: How to detect that a function argument is the default one |
| Message-ID | <mailman.16851.1418286020.18130.python-list@python.org> |
----- Original Message ----- > From: "Chris Angelico" <rosuav@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.
Back to top | Article view | comp.lang.python
csiph-web