Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.055 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'parameter': 0.09; 'subject:How': 0.10; 'assume': 0.14; 'compute': 0.16; 'subject:default': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'email addr:gmail.com>': 0.22; '>': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'subject:that': 0.31; 'subject:the': 0.34; 'could': 0.34; 'equal': 0.35; 'received:google.com': 0.35; 'mass': 0.36; 'subject:one': 0.36; 'area': 0.37; 'skip:& 10': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'remove': 0.60; 'ian': 0.60; 'units': 0.60; 'density': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ItHRCgZvYDeF21Pl4gjL2ikWgGs8SvRnjTHc3bMfQKc=; b=Wn/6TaiH/YJX68JwIkaaXdn/Lpv//imrpQfFzwyFv338UUxx2nOBWYTgYwRWDpWipY JdXe8ifa+KxvE3mxk2q+zYG+9JcjH4W/TOY2HHPbos2NcUH6GJyYOw2chWEvCfJZnsoW 52cN+V9HXtizAEHacfmOC4HzqdRES4kux21Hv2PTVP9cUaW1K1+gCISQc1oMUbGUFAFG mtQNlubYAOMsa24zlAFCdru8n49cjuUg1u6M4jYTNw+HQfMIuw2xgJ/U+5GpFSQMbI2D FkIBf9k+wH1JDOlCbgyl/5BLggVgdKSElzp9tGywGtF/TVtvHeeusJozK6xCgssJxqV0 oIvw== X-Received: by 10.69.20.42 with SMTP id gz10mr18867851pbd.91.1418321304732; Thu, 11 Dec 2014 10:08:24 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <5488b874$0$2890$426a34cc@news.free.fr> <1536593980.5584348.1418292165752.JavaMail.root@sequans.com> From: Ian Kelly Date: Thu, 11 Dec 2014 11:07:44 -0700 Subject: Re: How to detect that a function argument is the default one To: Python Content-Type: multipart/alternative; boundary=001a11367d228bcbcc0509f4a9ec X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418321314 news.xs4all.nl 2931 [2001:888:2000:d::a6]:38331 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82369 --001a11367d228bcbcc0509f4a9ec Content-Type: text/plain; charset=UTF-8 On Thu, Dec 11, 2014 at 11:03 AM, Ian Kelly wrote: > > On Thu, Dec 11, 2014 at 3:02 AM, Jean-Michel Pichavant < jeanmichel@sequans.com> wrote: > > I would advise to remove the the mass parameter of your Sphere initialization. It could be inconsistent with the radius. > > To compute the mass you would need the radius and the volumetric mass density. > > You assume a three-dimensional universe. Clearly this is a two-dimensional "ball" with a density equal to pi/2 mass units per area unit. Er. 2/pi. --001a11367d228bcbcc0509f4a9ec Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Thu, Dec 11, 2014 at 11:03 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
>=
> On Thu, Dec 11, 2014 at 3:02 AM, Jean-Michel Pichavant <jeanmichel@sequans.com> wrote:> > I would advise to remove the the mass parameter of your Sphere i= nitialization. It could be inconsistent with the radius.
> > To co= mpute the mass you would need the radius and the =C2=A0volumetric mass dens= ity.
>
> You assume a three-dimensional universe. Clearly this = is a two-dimensional "ball" with a density equal to pi/2 mass uni= ts per area unit.

Er. 2/pi.
--001a11367d228bcbcc0509f4a9ec--