Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82351

Re: How to detect that a function argument is the default one

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prvs=414459bab=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.327
X-Spam-Level ***
X-Spam-Evidence '*H*': 0.44; '*S*': 0.09; 'none)': 0.09; 'subject:How': 0.10; 'subject:default': 0.16; 'print': 0.22; 'header:In-Reply-To:1': 0.27; 'subject:that': 0.31; '-----': 0.33; 'subject:the': 0.34; 'subject:one': 0.36; 'thank': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'you.': 0.62; 'information': 0.63; 'received:194': 0.64; 'here': 0.66; 'notice:': 0.67; 'person,': 0.68; 'privileged.': 0.69; 'disclose': 0.74; 'medium.': 0.91
X-IronPort-AV E=Sophos;i="5.07,553,1413237600"; d="scan'208";a="3714188"
Date Wed, 10 Dec 2014 17:48:15 +0100 (CET)
From Jean-Michel Pichavant <jeanmichel@sequans.com>
To python-list@python.org
In-Reply-To <CAPTjJmpyOUKuzFKzSUCHVUH+wVa6ZJrgGORfkuWzkS-k0WU8GQ@mail.gmail.com>
Subject Re: How to detect that a function argument is the default one
MIME-Version 1.0
X-Mailer Zimbra 7.2.7_GA_2942 (ZimbraWebClient - GC37 (Linux)/7.2.7_GA_2942)
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
X-Mailman-Approved-At Thu, 11 Dec 2014 09:20:19 +0100
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16851.1418286020.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418286020 news.xs4all.nl 2873 [2001:888:2000:d::a6]:57390
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82351

Show key headers only | View raw



----- 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 comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to detect that a function argument is the default one Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-12-10 17:48 +0100

csiph-web