Raymond Hettinger writes:
> On Aug 29, 8:33 am, Arnaud Delobelle wrote:
>> ernest writes:
>> > Hi,
>>
>> > The operator module provides separate functions for
>> > "in place" operations, such as iadd(), isub(), etc.
>> > However, it appears that these functions don't really
>> > do the operatio
On Aug 29, 8:33 am, Arnaud Delobelle wrote:
> ernest writes:
> > Hi,
>
> > The operator module provides separate functions for
> > "in place" operations, such as iadd(), isub(), etc.
> > However, it appears that these functions don't really
> > do the operation in place:
>
> > In [34]: a = 4
>
>
On Sun, 29 Aug 2010 07:44:47 -0700, ernest wrote:
> Hi,
>
> The operator module provides separate functions for "in place"
> operations, such as iadd(), isub(), etc. However, it appears that these
> functions don't really do the operation in place:
>
> In [34]: a = 4
>
> In [35]: operator.iadd(
ernest writes:
> Hi,
>
> The operator module provides separate functions for
> "in place" operations, such as iadd(), isub(), etc.
> However, it appears that these functions don't really
> do the operation in place:
>
> In [34]: a = 4
>
> In [35]: operator.iadd(a, 3)
> Out[35]: 7
>
> In [36]: a
>
On 29 Ago, 17:00, Peter Otten <__pete...@web.de> wrote:
> ernest wrote:
> > The operator module provides separate functions for
> > "in place" operations, such as iadd(), isub(), etc.
> > However, it appears that these functions don't really
> > do the operation in place:
>
> > In [34]: a = 4
>
> >
ernest wrote:
> The operator module provides separate functions for
> "in place" operations, such as iadd(), isub(), etc.
> However, it appears that these functions don't really
> do the operation in place:
>
> In [34]: a = 4
>
> In [35]: operator.iadd(a, 3)
> Out[35]: 7
>
> In [36]: a
> Out[36
Hi,
The operator module provides separate functions for
"in place" operations, such as iadd(), isub(), etc.
However, it appears that these functions don't really
do the operation in place:
In [34]: a = 4
In [35]: operator.iadd(a, 3)
Out[35]: 7
In [36]: a
Out[36]: 4
So, what's the point? If you