How to detect that a function argument is the default one

Ian Kelly ian.g.kelly at gmail.com
Thu Dec 11 13:07:44 EST 2014


On Thu, Dec 11, 2014 at 11:03 AM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
>
> On Thu, Dec 11, 2014 at 3:02 AM, Jean-Michel Pichavant <
jeanmichel at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141211/cda771e5/attachment.html>


More information about the Python-list mailing list