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] Behavior of array scalars
by Christopher Barker other posts by this author
Feb 17 2006 5:19PM messages near this date
Re: [Numpy-discussion] Behavior of array scalars | Re: [Numpy-discussion] Behavior of array scalars
Travis Oliphant wrote:

>   They just don't 
>  *stay* 0-d arrays and are converted to array scalars at almost every 
>  opportunity....

I'm still confused as to what the difference is. This (recent) 
convesation started with my desire for a mutable scalar. CAn array 
scalars fill this role?

What I mean by that role is some way to do:

x += 5 # (and friends)
x[()] = 45 # or some other notation


And have x be the same object throughout.

Heck even something like:

x.set(45)

would work for me.

Alexander Belopolsky wrote:
> >>>x[...] = 10
>  
>  or
>  
> >>>x[()] = 10

I can't do that. HAs that been added since version: '0.9.2' ?

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@[...].gov


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Christopher Barker
Travis Oliphant
Sasha
Travis Oliphant
Christopher Barker
Sasha
Travis Oliphant
David M. Cooke
Sasha
Travis Oliphant
Travis Oliphant
Sasha
Travis Oliphant
Sasha
Alexander Belopolsky
Sasha

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