ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> numpy-discussion
numpy-discussion
Re: [Numpy-discussion] can't resize ndarray subclass
by Travis Oliphant other posts by this author
Feb 28 2006 2:20PM messages near this date
Re: [Numpy-discussion] can't resize ndarray subclass | Re: [Numpy-discussion] can't resize ndarray subclass
Zachary Pincus wrote:

>  Thanks Travis for the replies and the new functionality in the SVN!
> 
>  I think I have enough (well, maybe once I figure out  
>  __array_priority__) to get a decent wiki entry for subclassing  
>  ndarray, and maybe some template subclasses that others can use.
> 
>  I presume __array_priority__ determines the resulting type when two  
>  different type arrays are ufunc'd together? The exact mechanism of  
>  which object gets selected as the parent, etc., is still unclear though.

When two different subclasses appear in a ufunc (or in other places in 
ndarray), the subclass chosen for creation is the one with highest 
__array_priority__.

The "parent" concept is entirely separate is the object passed to 
__array_finalize__ and should be of the same type as self (or None).

-Travis




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Zachary Pincus
Travis Oliphant
Zachary Pincus
Travis Oliphant
Tim Hochberg
Travis Oliphant
Zachary Pincus
Travis Oliphant
Travis Oliphant

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved