[SciPy-dev] alternate .flags interface

Perry Greenfield perry at stsci.edu
Mon Oct 31 08:42:07 CST 2005


On Oct 31, 2005, at 9:34 AM, Fernando Perez wrote:
> Mmh.  What happens when you say
>
> arr.flags.update = 1
>
> and then pass arr.flags to a dict-expecting method which calls
>
> arr.flags.update(otherdict)
>
> ?
>
> I do like the idea of named attribute access, but the issue of name 
> conflicts
> with the existing dict API needs to be dealt with first.  Either 
> certain
> attribute names are disallowed (case in which you can just steal
> IPython.Struct for the implementation, which already does all of 
> this), or
> some other policy must be devised.
>
> Regards,
>
> f

Isn't the flag attribute UPDATEIFCOPY?  (admittedly, I'm going by a 
potentially dated version of the "Guide to SciPy")

Perry




More information about the Scipy-dev mailing list