Re: Feature suggestion: math.zod for painlessly avoiding ZeroDivisionError

2011-04-11 Thread Natan Yellin
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 > cours

Feature suggestion: math.zod for painlessly avoiding ZeroDivisionError

2011-04-11 Thread Natan Yellin
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

Retreiving objects from other processes

2008-02-06 Thread Natan Yellin
Hello, Sorry if this is a stupid question... I have some experience with C but very little with Python. I'd like to have one python program retrieve a reference or copy of an object from another python process on the same computer. I know I can use RPyC, but that seems like overkill. Is there simpl