On Tue, Jul 21, 2009 at 2:41 PM, Matthew Brett wrote:
> Hi,
>
>>> I'm the person who removed the reference to thread-safeness in the
>>> numpy version of the subclassing docs. I remember at the time going
>>> through all the email discussions that led up to the thread-safeness
>>> question, and c
On Jul 21, 2009, at 2:23 PM, Darren Dale wrote:
>
>> Without access to your code, I'm likely to speak beyond myself here
>> (could you send me a link to the latest version ?), but if you need
>> to
>> rescale the units, make sure it's done in __array_finalize__ as well,
>> with something like
>>
Hi,
>> I'm the person who removed the reference to thread-safeness in the
>> numpy version of the subclassing docs. I remember at the time going
>> through all the email discussions that led up to the thread-safeness
>> question, and concluding (in discussion with Travis O and others) that
>> th
Hi Matthew,
On Tue, Jul 21, 2009 at 1:37 PM, Matthew Brett wrote:
> Hi,
>
>> The words of caution were intended to remind that setting the value
>> of new array attributes in __new__ only could lead to problems, as
>> it's possible to transform a ndarray into a subclass with a view (that
>> is, c
On Tue, Jul 21, 2009 at 1:26 PM, Pierre GM wrote:
>
> On Jul 21, 2009, at 10:58 AM, Darren Dale wrote:
>
>> http://docs.scipy.org/doc/numpy/user/basics.subclassing.html#simple-example-adding-an-extra-attribute-to-ndarray
>> includes an example where an instance attribute is set in __new__ .
>> Howe
Hi,
> The words of caution were intended to remind that setting the value
> of new array attributes in __new__ only could lead to problems, as
> it's possible to transform a ndarray into a subclass with a view (that
> is, calling __array_finalize__ without calling __new__). In the Simple
> Exampl
On Jul 21, 2009, at 10:58 AM, Darren Dale wrote:
> http://docs.scipy.org/doc/numpy/user/basics.subclassing.html#simple-example-adding-an-extra-attribute-to-ndarray
> includes an example where an instance attribute is set in __new__ .
> However, there is a warning at http://www.scipy.org/Subclasse
http://docs.scipy.org/doc/numpy/user/basics.subclassing.html#simple-example-adding-an-extra-attribute-to-ndarray
includes an example where an instance attribute is set in __new__ .
However, there is a warning at http://www.scipy.org/Subclasses:
-
Some words of caution
The definition in the __