On 4/11/2011 10:10 AM, Natan Yellin wrote:
Hey everyone,
This is my first posting to python-list, so be gentle.
I propose the following function for the math module (which can, of
course, be rewritten in C):
zod = lambda a, b: b and a / b
This is way too trivial to add.
zod, the zero
On Mon, Apr 11, 2011 at 5:20 PM, Chris Angelico wrote:
> On Tue, Apr 12, 2011 at 12:10 AM, Natan Yellin wrote:
> > Hey everyone,
> > This is my first posting to python-list, so be gentle.
> > I propose the following function for the math module (which can, of
> course,
> > be rewritten in C):
>
Hey everyone,
This is my first posting to python-list, so be gentle.
I propose the following function for the math module (which can, of course,
be rewritten in C):
> zod = lambda a, b: b and a / b
zod, the zero or divide function, is useful for division where the
denominator can be 0. For exa