Creating a new instance of a class by what is sent in?

2005-04-11 Thread ChinStrap
I am sorry if this is obvious, but I am not seeing it. How would I go about creating a new type that is of the same type as a class sent into the function? new = foo.__init__() refers to the current foo, not a new fresh instance of my class. The only way I can think of is to make a large

Re: numarray.array can be VERY slow

2005-04-10 Thread ChinStrap
Yes because that is a bad way to things. There is no reason to be working with a list when it could be done directly with numarray. -- http://mail.python.org/mailman/listinfo/python-list

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup-post 127)

2005-04-09 Thread ChinStrap
Thats not what Jack Chick says =( http://www.chick.com/catalog/tractlist.asp -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-06 Thread ChinStrap
Well I would be more than willing to learn Emacs if it does all these things you speak of, but really I can't get started because the default scheme is so friggin ugly it isn't funny. Anyone want to send me a configuration setup with Python in mind, and decent colors? --

Best editor?

2005-04-05 Thread ChinStrap
When not using the interactive prompt, what are you using? I keep hearing everyone say Emacs, but I can't understand it at all. I keep trying to learn and understand why so many seem to like it because I can't understand customization even without going through a hundred menus that might contain

Re: Numarray newbie question

2005-03-29 Thread ChinStrap
Are there no windows binaries for SciPy for python 2.4 yet? I try to run the installer and it complains that it can't find python 2.3. Besides that, vectorize is exactly what i want. -- http://mail.python.org/mailman/listinfo/python-list

Re: Numarray newbie question

2005-03-29 Thread ChinStrap
Oh well. I am downloading all the things to build it, but in the mean time I just did: def get_y_mat(x_ind,y_ind): return self.y_min + y_ind*self.dy def get_x_mat(x_ind,y_ind): return self.x_min + x_ind*self.dx

Numarray newbie question

2005-03-28 Thread ChinStrap
I know there are probably alternatives for this with the standard library, but I think that would kill the speed I get with numarray: Say I have two 2-dimensional numarrays (x_mat and y_mat, say), and a function f(x,y) that I would like to evaluate at every index. Basically I want to be able to