On Tue, Sep 30, 2014 at 03:54:42PM -0700, Clayton Kirkwood wrote:
> Also, I found something that I can't get my mind around. It is part of the
> time/date protocols. I've not seen it anywhere else.
>
> Datetime(year=blah, blah, blah).date/time()
>
> datetime(2013,3,6).date() #returns.
> datetim
On Wed, Oct 01, 2014 at 01:58:16AM +0100, Alan Gauld wrote:
> On 30/09/14 23:54, Clayton Kirkwood wrote:
> >I don't understand the multiplicity of some tools. Namely, why is there a
> >'a+b', operator.add(a,b), operator.__add__(a,b), operator.iadd(a,b),
> >operator.__iadd__(a,b) and their related o
On Tue, Sep 30, 2014 at 03:54:42PM -0700, Clayton Kirkwood wrote:
> I don't understand the multiplicity of some tools. Namely, why is there a
> 'a+b', operator.add(a,b), operator.__add__(a,b), operator.iadd(a,b),
> operator.__iadd__(a,b) and their related operators?
The + operator is the public i
On 30/09/14 23:54, Clayton Kirkwood wrote:
I don't understand the multiplicity of some tools. Namely, why is there a
'a+b', operator.add(a,b), operator.__add__(a,b), operator.iadd(a,b),
operator.__iadd__(a,b) and their related operators?
The operator module is there largely to allow you to pass
You will find the answer here -
http://stackoverflow.com/questions/625083/python-init-and-self-what-do-they-do
On Sep 29, 2014, at 4:34 PM, Danny Yoo wrote:
> On Sun, Sep 28, 2014 at 8:26 AM, Madeleine Austen
> wrote:
>> Hi
>>
>> Here is my code:
>>
>>
>> from datetime import datetime
>>
I don't understand the multiplicity of some tools. Namely, why is there a
'a+b', operator.add(a,b), operator.__add__(a,b), operator.iadd(a,b),
operator.__iadd__(a,b) and their related operators?
Also, I found something that I can't get my mind around. It is part of the
time/date protocols. I've