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] A case for rank-0 arrays
by Francesc Altet other posts by this author
Feb 23 2006 9:04AM messages near this date
Re: [Numpy-discussion] A case for rank-0 arrays | Re: [Numpy-discussion] A case for rank-0 arrays
Hi Sasha,

A Dissabte 18 Febrer 2006 20:49, Sasha va escriure:
>  I have reviewed mailing list discussions of rank-0 arrays vs. scalars
>  and I concluded that the current implementation that contains both is
>  (almost) correct.  I will address the "almost" part with a concrete
>  proposal at the end of this post (search for PROPOSALS if you are only
>  interested in the practical part).
> 
>  The main criticism of supporting both scalars and rank-0 arrays is
>  that it is "unpythonic" in the sense that it provides two almost
>  equivalent ways to achieve the same result.  However, I am now
>  convinced that this is the case where practicality beats purity.

It's a bit late, but I want to support your proposal (most of it).
I've also come to the conclusion that scalars and rank-0 arrays should
coexist. This is something that appears as a natural fact when you
have to deal regularly with general algorithms for treat objects with
different shapes. And I think you have put this very well.

Thanks,

-- 
> 0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"



-------------------------------------------------------
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_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Sasha
Francesc Altet
Francesc Altet
Colin J. Williams
Travis Oliphant
Sasha
Francesc Altet
Sasha
Travis Oliphant
Sasha
Francesc Altet

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