Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Alex Martelli) wrote: >I'm considering proposing to O'Reilly a 2nd edition of "Python in a >Nutshell", that I'd write in 2005, essentially to cover Python 2.3 and >2.4 (the current 1st edition only covers Python up to 2.2). >... Since you were k

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Alex Martelli) wrote: >Russell E. Owen <[EMAIL PROTECTED]> wrote: > >> In article <[EMAIL PROTECTED]>, >> [EMAIL PROTECTED] (Alex Martelli) wrote: >> >> >I'm considering proposing to O&

Memoization/Caching of Instance Methods

2005-03-24 Thread Mark E. Fenner
In the code below, the class DifferentCache utilizes three different memoization (caching) strategies. Neither the function Memoize1 or the class Memoize2 will be adequate for all three of these cases (I intend these to be used as, for example, getInstanceValueFunction = Memoize1(getInstanceValue

Re: .

2005-04-13 Thread John E. Carty
Report spam to: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] > Nuf said. -- http://mail.python.org/mailman/listinfo/python-list

Wanted: Freedom Force game mod community looking for Python developers

2005-04-25 Thread ?pim?th?e
Hi, Sorry for the slightly off-topic post. Freedom Force and its recent follow-up, Freedom Force vs the Third Reich, are 3D RPG/TRS games using Python for higher-level programming, such as mission scripting. As such, the game has gotten quite a few people to discover Python (a prodigious languag

Fast plotting?

2005-04-26 Thread Russell E. Owen
Can anyone recommend a fast cross-platform plotting package for 2-D plots? Our situation: We are driving an instrument that outputs data at 20Hz. Control is via an existing Tkinter application (which is being extended for this new instrument) that runs on unix, mac and windows. We wish to updat

Running python's own unit tests?

2013-11-14 Thread Russell E. Owen
I'm building python from source and trying to figure out how to test the result. I must be overlooking something obvious, but I looked through the documentation and source and tried some google searches (which turn up plenty about writing unit tests in python, but nothing about testing a python

Re: Running python's own unit tests?

2013-11-15 Thread Russell E. Owen
In article <5285223d.50...@timgolden.me.uk>, Tim Golden wrote: > http://docs.python.org/devguide/ Thank you and the other responders. I was expecting to find the information here under Building Python. The developer's guide is a nice resource. -- Ru

Suggested GUI framework for Mac and unix?

2014-01-06 Thread Russell E. Owen
I have a free cross-platform Python GUI application that has to run on Mac and linux. It is presently written in Tkinter, but for various reasons* it may be time to switch. I've heard many good things about wxpython and qt, but not used either, and am wondering if somebody could tell me if eith

Please help - Python role in Emeryville, CA - Full-time - $100K+

2014-12-17 Thread Jared E. Cardon
Hi, I found your Python group on Google+ and I'm searching for someone with 3+ years of Python development experience for a full-time position in California. Salary north of $100K and working for an amazing company. Ideally I'd like to find someone who is nice, plugged into the movie and comi

Re: Can global variable be passed into Python function?

2014-02-24 Thread j . e . haque
On Sunday, February 23, 2014 5:01:25 AM UTC-6, Marko Rauhamaa wrote: > Chris Angelico : > > > That's the exact line of thinking that leads to problems. You are not > > > placing a number at the address "xyz", you are pointing the name "xyz" > > > to the number 3. That number still exists elsewhe

python newbie

2014-06-18 Thread Maura E Monville
My supervisor has palmed me off with a python code, written by a collaborator, which implements an algorithm aimed at denoising the dose distribution (energy per unit mass) output from a radiation transport Monte Carlo code. My task is to translate the python code into a MatLab code. A colleague

Re: python newbie

2014-06-18 Thread Maura E Monville
On Wednesday, June 18, 2014 1:50:54 PM UTC+1, Steven D'Aprano wrote: > On Wed, 18 Jun 2014 05:10:03 -0700, Maura E Monville wrote: > > > > > My supervisor has palmed me off with a python code, written by a > > > collaborator, which implements an algor

Re: Mac python py2app problem

2014-07-17 Thread Russell E. Owen
In article , Gregory Ewing wrote: > Nicholas Cannon wrote: > > I do like the idea of making a .dmg file > > because i have used them downloading other apps and it works great but i > > dont > > know how to make them! > > In Disk Utility, use File>New>Disk Image from Folder. Or...open Disk Uti

redirect stderr to syslog?

2014-08-15 Thread Russell E. Owen
We are using the syslog module for logging, and would like to redirect stderr to our log. Is there a practical way to do it? I realize the logging module supports this and has a syslog writer, so that's a fallback. But we were hoping to use the syslog module for performance. -- Russell -- ht

More questions on Python strings

2014-08-31 Thread Dennis E. Evans
Hi I have a function that reads some meta data from a database and builds a default order by and where clause for a table. some details, rows is a list of pyOdbc.Row and will look like this [1, 'ColumnName', 3, 5] there will be one to n elements EmptyString, defaultColumn, default

Re: comparing alternatives to py2exe

2014-09-06 Thread daniel . e . rossy
I found this: https://pypi.python.org/pypi/py2exe/0.9.2.0 Also, thanks for the spreadsheet, it's very useful. -- https://mail.python.org/mailman/listinfo/python-list

Re: GCD in Fractions

2014-09-24 Thread Robert E. Beaudoin
On 09/24/14 09:25, blindanagram wrote: On 24/09/2014 12:44, Steven D'Aprano wrote: blindanagram wrote: [snip] - Mathworld says that GCD of two negative numbers is a negative number; - but Mathematica says that GCD of two negative numbers is a positive; - Wikipedia agrees with Mathematica an

Decorator question: prefer class, but only function works

2011-11-10 Thread Russell E. Owen
I am trying to write a decorator that times an instance method and writes the results to a class member variable. For example: def timeMethod(func): def wrapper(self, *args, **keyArgs): t1 = time.time() res = func(self, *args, **keyArgs) duration = time.time() - t1

Re: Decorator question: prefer class, but only function works

2011-11-14 Thread Russell E. Owen
In article , Ian Kelly wrote: > On Thu, Nov 10, 2011 at 2:52 PM, Russell E. Owen wrote: > > I am trying to write a decorator that times an instance method and > > writes the results to a class member variable. For example: > > > > def timeMethod(func): >

Re: Why is Ruby on Rails more popular than Django?

2013-03-07 Thread Russell E. Owen
In article <3d9fe0b2-7931-4ab6-8929-235460729...@q9g2000pbf.googlegroups.com>, rusi wrote: > On Mar 6, 11:03 pm, Jason Hsu wrote: > > I'm currently in the process of learning Ruby on Rails.  I'm going through > > the Rails for Zombies tutorial, and I'm seeing the power of Rails. > > > > I sti

Re: Which Python web framework is most like Ruby on Rails?

2005-12-19 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: >[EMAIL PROTECTED] (Alex Martelli) writes: >> To put it another way: one reason I love Python is that I strongly >> subscribe to the idea that there should preferably be only one obvious >> way to do something. Unfortun

Re: Which Python web framework is most like Ruby on Rails?

2005-12-19 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: >"Ben Sizer" <[EMAIL PROTECTED]> writes: >> I see what you mean, but unfortunately I think there is a lot more >> fuzziness than that. If the separate parts were clearly delineated >> things would be a lot better. I look to the

Re: Which Python web framework is most like Ruby on Rails?

2005-12-20 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Benji York <[EMAIL PROTECTED]> wrote: >Russell E. Owen wrote: >> I disagree. Once you've picked a database (not trivial in itself, of >> course), you typically only have a few options for talking to in in >> Python. > >

Re: Best library for basic stats

2005-12-29 Thread Travis E. Oliphant
MKoool wrote: > Is there any decent library for basic stats? I am just looking for the > basics, like quartiles, median, standard deviation, mean, min, max, > regression, etc. > > I was going to use SciPy, but I use Python 2.4, and it seems to be > supported primarily for 2.3... > > What other s

Re: csrss.exe & Numeric

2005-12-30 Thread Travis E. Oliphant
jelle wrote: > I have a function that uses the Numeric module. When I launch the > function csrss.exe consumes 60 / 70 % cpu power rather than having > python / Numeric run at full speed. Has anyone encountered this problem > before? It seriously messes up my Numeric performance. > Are you memory

Re: Hypergeometric distribution

2006-01-02 Thread Travis E. Oliphant
Raven wrote: > Thanks Steven for your very interesting post. > > This was a critical instance from my problem: > > from scipy import comb >>> comb(14354,174) > > inf > > The scipy.stats.distributions.hypergeom function uses the scipy.comb > function, so it returned nan since it tries t

Re: Any wing2.0 users here?

2006-01-03 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Alvin A. Delagon" <[EMAIL PROTECTED]> wrote: >Thanks for all the recommendations! I took a look on wingide2.0 on my >linux box and it seems pretty good and has a lot of nifty features >(which is pretty daunting to use since I've been programming with no IDE >at

Re: How can I test if an argument is a sequence or a scalar?

2006-01-11 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: >I want to be able to pass a sequence (tuple, or list) of objects to a >function, or only one. > >It's easy enough to do: > >isinstance(var, (tuple, list)) > >But I would also like to accept generators. How can I do this? > >Anything else i

Re: void * C array to a Numpy array using Swig

2006-01-12 Thread Travis E. Oliphant
Philip Austin wrote: > "Travis E. Oliphant" <[EMAIL PROTECTED]> writes: > > >>Krish wrote: > > >>Yes, you are right that you need to use typemaps. It's been awhile >>since I did this kind of thing, but here are some pointers. >

Re: how do "real" python programmers work?

2006-01-13 Thread Travis E. Oliphant
bblais wrote: > In Python, there seems to be a couple ways of doing things. I could > write it in one window, and from a Unix shell call >python myscript.py > and be like C++, but then I lose the interactiveness which makes > prototyping easier. If I use the python sh

Re: void * C array to a Numpy array using Swig

2006-01-13 Thread Travis E. Oliphant
Krish wrote: > Hello People > > I hope I am On Topic. Anyways, here is my problem. Any insights would > be really appreciated. Posting to the [EMAIL PROTECTED] list would help generate more responses, I think. > > I have wrapped a C IO module using SWIG -> Python Module. Suppose the > name of

Re: Numarray, numeric, NumPy, scpy_core ??!!

2006-01-21 Thread Travis E. Oliphant
J wrote: > I will just jump in an use NumPy. I hope this one will stick and evolve > into the mother of array packages. > How stable is it ? For now I really just need basic linear algebra. > i.e. matrix multiplication, dot, cross etc > There is a new release coming out this weekend. It's close

Optimizing Inner Loop Copy

2006-08-17 Thread Mark E. Fenner
Hello all, I have a code where my inner loop looks like: allNew = [] for params in cases: newObj = copy(initialObject) newObj.modify(params) allNew.append(newObj) return allNew and the copy is taking the majority (42%) of my execution time. So, I'd like to speed up my copy. I had an

Re: Optimizing Inner Loop Copy

2006-08-17 Thread Mark E. Fenner
Michael Spencer wrote: > Mark E. Fenner wrote: > >> >> and the copy is taking the majority (42%) of my execution time. >> So, I'd like to speed up my copy. I had an explicit copy method that did >> what was needed and returned a new object, but this was q

Re: Optimizing Inner Loop Copy

2006-08-17 Thread Mark E. Fenner
John Machin wrote: > > Mark E. Fenner wrote: > >> Here's my class of the objects being copied: > > Here's a couple of things that might help speed up your __init__ > method, and hence your copy method: > >> >> class Rule(list): >> de

Re: Optimizing Inner Loop Copy

2006-08-17 Thread Mark E. Fenner
Mark E. Fenner wrote: > John Machin wrote: > >> >> Mark E. Fenner wrote: >> >>> Here's my class of the objects being copied: >> >> Here's a couple of things that might help speed up your __init__ >> method, and hence your copy me

Re: Optimizing Inner Loop Copy

2006-08-17 Thread Mark E. Fenner
danielx wrote: > > Mark E. Fenner wrote: >> Mark E. Fenner wrote: >> >> > John Machin wrote: >> > >> >> >> >> Mark E. Fenner wrote: >> >> >> >>> Here's my class of the objects being copied: >> >

Re: Optimizing Inner Loop Copy

2006-08-18 Thread Mark E. Fenner
Paul McGuire wrote: > "Mark E. Fenner" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hello all, >> > >> >> Here's my class of the objects being copied: >> >> class Rule(list): >> def __init__(s

Accessing application data portably

2006-08-23 Thread Tom E H
My Python application includes some data files that need to be accessed by modules I distribute with it. Where can I put them, and how should I arrange my code, so that it works across platforms? On Linux, I could install the data to "/usr/lib/myprogram/datafile", and on Windows to "datafile" rel

Re: Accessing application data portably

2006-08-23 Thread Tom E H
Larry Bates wrote: > Tom E H wrote: >> My Python application includes some data files that need to be accessed >> by modules I distribute with it. >> >> Where can I put them, and how should I arrange my code, so that it works >> across platforms? >> > I a

Re: Accessing application data portably

2006-08-23 Thread Tom E H
Larry Bates wrote: >> Well that's great, but how do you access the ini file portably? > > From my original post: > > Then I use ConfigParser in my application... Thanks, but where in the directory structure do you put the ini file on different platforms? Presumably you have to hard-code that in

Re: Python/Tkinter crash.

2006-10-04 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: >Hi, > >I get the following: > >[EMAIL PROTECTED]:~/Controller/lib> python display.py >UpdateStringProc should not be invoked for type font >Aborted >... >Everything seems to work fine. - there is a thread that runs t

Adding Worksheets to an Excel Workbook

2006-10-10 Thread e . h . doxtator
All I'm a Python newbie, and I'm just getting to the wonders of COM programming. I am trying to programmatically do the following: 1. Activate Excel 2. Add a Workbook 3. Add a Worksheet 4. Populate the new Worksheet 5. Repeat steps 3,4 while there is data. How do you add a Worksheet to a W

Re: Adding Worksheets to an Excel Workbook

2006-10-11 Thread e . h . doxtator
These are all excellent suggestions. Thanks everyone for your help! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to convert this list to string?

2006-10-18 Thread Travis E. Oliphant
Jia Lu wrote: > Hi all > > I have a list like: > list > [1, 2, 3] list[1:] > [2, 3] > > I want to get a string "2 3" > str(list[1:]) > '[2, 3]' > > How can I do that ? > " ".join(str(x) for x in list) -Travis -- http://mail.python.org/mailman/listinfo/python-list

Using cElementTree and elementtree.ElementInclude

2006-10-23 Thread Mark E. Smith
> cElementTree cannot hold ElementTree instances. > > can you post a small but self-contained example showing how you got this > error? > #from elementtree.ElementTree import ElementTree, dump # This works from cElementTree import ElementTree, dump # This does not from elementtree import

Re: using mmap on large (> 2 Gig) files

2006-10-23 Thread Travis E. Oliphant
Martin v. Löwis wrote: > [EMAIL PROTECTED] schrieb: >> Anyone ever done this? It looks like Python2.4 won't take a length arg >>> 2 Gig since its not seen as an int. > > What architecture are you on? On a 32-bit architecture, it's likely > impossible to map in 2GiB, anyway (since it likely won't

Re: numpy error

2006-10-23 Thread Travis E. Oliphant
Juergen Kareta wrote: > Hello, > > this is my first try to get wxmpl-1.2.8 running. Therefor I installed: > > python 2.5 > matplotlib-0.87.6.win32-py2.5.exe > numpy-1.0rc3.win32-py2.5.exe > > on WinXP SP2 > > The result is a version mismatch (see below). > > Numpy version 102 seems to be n

Re: numbers to string

2006-10-24 Thread Travis E. Oliphant
David Isaac wrote: y > [116, 114, 121, 32, 116, 104, 105, 115] z=''.join(chr(yi) for yi in y) z > 'try this' > > What is an efficient way to do this if y is much longer? > (A numpy solution is fine.) Here's another numpy solution just for fun: import numpy z = numpy.array(y,dtype=

Re: unsigned 32 bit arithmetic type?

2006-10-25 Thread Travis E. Oliphant
Robin Becker wrote: > Hi, just trying to avoid wheel reinvention. I have need of an unsigned 32 bit > arithmetic type to carry out a checksum operation and wondered if anyone had > already defined such a beast. > > Our current code works with 32 bit cpu's, but is failing with 64 bit > compariso

Re: problem with fft periodogram

2006-10-25 Thread Travis E. Oliphant
[EMAIL PROTECTED] wrote: > Hello, > > I am ploting a fft periodogram of my data using a script (found in > internet: http://linuxgazette.net/115/andreasen.html ) that gave me > good results before. There should be a periodicity of >160 in the data > as can be seen by eye. However, this script now

[ANN] NumPy 1.0 release

2006-10-26 Thread Travis E. Oliphant
We are very pleased to announce the release of NumPy 1.0 available for download at http://www.numpy.org This release is the culmination of over 18 months of effort to allow unification of the Numeric and Numarray communities. NumPy provides the features of both packages as well as comparable

Re: latest numpy & scipy - incompatible ?

2006-10-29 Thread Travis E. Oliphant
robert wrote: > I'm using latest numpy & scipy. What is this problem ? : > import scipy.stats > RuntimeError: module compiled against version 102 of C-API but this > version of numpy is 109 > Traceback (most recent call last): > File "", line 1, in ? > File "C:\PYTHON23\Lib\site-

Re: concatenating numpy arrays

2006-10-31 Thread Travis E. Oliphant
Rolf Wester wrote: > Hi, > > I want to concatenate two numpy arrays with shape (n1,n2) and (n1,n3) > into a single array with shape (n1,n2+n3). I guess there is an elegant > way to do this but I couldn't figure it out. So any help is very much > appreciated. > Suppose a1.shape is (n1,n2) and

Re: setting up wxPython on a Mac

2006-11-03 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Kevin Walzer <[EMAIL PROTECTED]> wrote: >Brian Blais wrote: >I'm not sure about numpy/scipy/matplotlib. I don't think there are >pre-built packages for them; you may have to build them from source. You >could also post to the MacPython mailing list, someone there h

Re: reordering elements of a list

2006-06-03 Thread Travis E. Oliphant
3, 4, 2, 1] > > Then I am looking for a function that will take mainlist and > orderinglist as arguments and return the following list: > > ['e', 'r', 'w', 'q', 't', 'y', 'u', 'i', 'o', &#

Re: Earthquake and Tornado Forecasting Programs June 13, 2006

2006-06-14 Thread Richard E Maine
edgrsprj <[EMAIL PROTECTED]> wrote: > > Oh for a newsreader that can eliminate all such ugly excessively > > cross-posted articles lacking follow-ups. PLONK thread is the only > > remaining answer. > > > > Posted by E.D.G. June 14, 2006 > > In my opinion, even moderated Internet Newsgroups ca

Re: Database access through python using GUI(Tkinter)

2006-06-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "arvind" <[EMAIL PROTECTED]> wrote: > hi all, > i am accessing sql+ database through python 2.4.3. > i am using Tkinter to build my screens. > how can i pass parameters on the click event of button from one > function to the another? What do you mean by this? If

Re: numpy : argmin in multidimensional arrays

2006-07-06 Thread Travis E. Oliphant
TG wrote: > Hi there. > > I am working with multi-dimensional arrays and I need to get > coordinates of the min value in it. > > using myarray.argmin() returns the index in the flatten array, which is > a first step, but I wonder if it is possible to get the coordinates > directly as an array, ra

[ANN] NumPy 1.0b4 now available

2006-08-26 Thread Travis E. Oliphant
The 4th beta release of NumPy 1.0 has just been made available. NumPy 1.0 represents the culmination of over 18 months of work to unify the Numeric and Numarray array packages into a single best-of-breed array package for Python. NumPy supports all the features of Numeric and Numarray with a he

Re: [ANN] NumPy 1.0b4 now available

2006-08-29 Thread Travis E. Oliphant
Bruce Who wrote: > Hi, Travis > > I can pack my scripts into an executable with py2exe, but errors occur > once it runs: I suspect you need to force-include the numpy/core/_internal.py file by specifying it in your setup.py file as explained on the py2exe site. That module is only imported by t

py2app question: Resources/Python -> Resources/lib/python2.4

2006-09-08 Thread Russell E. Owen
I was using an older version of py2app to distribute an application. This placed the python library code in TUI.app/Contents/Resources/Python I just upgraded to py2app 0.3.5 and now I find the same stuff is being put in TUI.app/Contents/Resources/lib/python2.4 This change breaks my code because

From bags to default dicts

2006-09-12 Thread Mark E. Fenner
Hello all, I was curious if anyone has transitioned some code from using Raymond Hettinger's bag class: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/259174 to using 2.5's collections.defaultdict. Any pitfalls to watch out for? It seems we should be able to do slightly better than cr

Re: Random Drawing Simulation -- performance issue

2006-09-12 Thread Travis E. Oliphant
Brendon Towle wrote: > I need to simulate scenarios like the following: "You have a deck of > 3 orange cards, 5 yellow cards, and 2 blue cards. You draw a card, > replace it, and repeat N times." > Thinking about the problem as drawing sample froms a discrete distribution defined by the popu

Re: Trouble Passing Array of Strings (using Numeric) to C Extension Module

2006-09-20 Thread Travis E. Oliphant
goetzie wrote: > I am using Python 2.4.1 and Numeric 23.8 and running on Windows XP. I > am passing a Numeric array of strings (objects) to a C Extension module > using the following python code: Numeric 23.8 is *very* old and unsupported. Unless you absolutely have to use Numeric (then use 24

Re: switching to numpy and failing, a user story

2006-10-04 Thread Travis E. Oliphant
[EMAIL PROTECTED] wrote: > After using numeric for almost ten years, I decided to attempt to > switch a large codebase (python and C++) to using numpy. Here's are > some comments about how that went. > > - The code to automatically switch python stuff over just kind of > works. But it was a 90% so

Re: Sorting Multidimesional array(newbie)

2006-12-12 Thread Travis E. Oliphant
Tartifola wrote: > Hi, > how can I sort an array like > > array([[5, 2], >[1, 3]]) > > along the first column to obtain > > array([[1, 3], >[5, 2]]) > i.e. keeping track of the ordered couples? > > Thanks, > A Just to add one more solution to this question that works with numpy

test

2006-12-12 Thread Jimmy E Touma
please ignore -- http://mail.python.org/mailman/listinfo/python-list

Re: Possible memory leak?

2006-01-24 Thread Travis E. Oliphant
Tuvas wrote: > I have a function in a program that works something like this. > > def load_pic_data(width,heigth,inpdat, filt=TRUE): > data='' > total=0 > tnum=0 > size=100 > for y in range(0,heigth): > row='' > for x in range

Re: Is there a way to profile underlying C++ code?

2006-01-24 Thread Travis E. Oliphant
Bo Peng wrote: > Dear list, > > I have a C++-SWIG-wrapped python module. The running time for one of the > functions is pretty unpredictable so I would like to profile it. > However, the python profiler does not seem to enter the compiled module > (.so file). Is there a way to profile the C++ f

Re: writing arrays to binary file

2006-01-25 Thread Travis E. Oliphant
Sheldon wrote: > Hi everyone, > > I have a short program the writes the output data to an acsii file: > > import sys > import os > import string > import gisdata > from Numeric import * > > def latlon(area_id, i, j): > lon_file = "lon_%s.dat" % area_id > flon= open(lon_file, 'wa'

Re: Scientific Computing with NumPy

2006-02-06 Thread Travis E. Oliphant
mclaugb wrote: > Is Scipy the same thing as ScientificPython? No. They are two separate projects. Scientific Python is still Numeric-only. SciPy 0.3.x is Numeric-based and SciPy 0.4.x is NumPy-based. The developers for NumPy are also the developers for SciPy (for the most part). There is a

Re: Scientific Computing with NumPy

2006-02-06 Thread Travis E. Oliphant
Tim Hochberg wrote: > mclaugb wrote: > > > No, Scientific Python is "a collection of Python modules that are useful > for scientific computing" written by Konrad Hinsen. I'm not a user, but > you can find information here: > > http://starship.python.net/~hinsen/ScientificPython/ > > Sci

ANN: Release of NumPy 0.9.5

2006-02-16 Thread Travis E. Oliphant
NumPy is the successor to both Numeric and Numarray. It builds from and uses code from both. More information can be found at the following links http://numeric.scipy.org http://www.scipy.org http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103 Highlights of Release:

Re: calculating on matrix indices

2006-02-16 Thread Travis E. Oliphant
Brian Blais wrote: > Hello, > > In my attempt to learn python, migrating from matlab, I have the following > problem. > Here is what I want to do, (with the wrong syntax): > > from numpy import * > > t=arange(0,20,.1) > x=zeros(len(t),'f') > > idx=(t>5) > tau=5 > x[idx]=exp(-t[idx]/tau) # <-

Re: ANN: Release of NumPy 0.9.5

2006-02-17 Thread Travis E. Oliphant
Thomas Gellekum wrote: > "Travis E. Oliphant" <[EMAIL PROTECTED]> writes: > > >> - Improvements to numpy.distutils > > > Stupid questions: is it really necessary to keep your own copy of > distutils and even install it? What's wrong with the

Re: ANN: Release of NumPy 0.9.5

2006-02-18 Thread Travis E. Oliphant
vinjvinj wrote: > I read some of the earlier threads which essentially said that numpy is > about 3-4 times slower then Numeric for smaller arrays. I'm assuming > that applies only to operations that apply to the whole arrays. > > I was curious how the performance of the following operations would

Re: Scientific Computing with NumPy

2006-02-28 Thread Travis E. Oliphant
[EMAIL PROTECTED] wrote: > Terry Reedy wrote: > >>"kpp9c" <[EMAIL PROTECTED]> wrote in message >>news:[EMAIL PROTECTED] >> >>>Numeric, Numarray, & Numpy... some one stick a screwdriver in my >>>forehead and end the madness that Numeric has become. >> >>>For crying all night! Numpy was Numeric's ni

Re: Trouble with numpy-0.9.4 and numpy-0.9.5

2006-03-01 Thread Travis E. Oliphant
drife wrote: > Hello, > > I use the Python Numeric package extensively, and had been an > avid user of the "old" scipy. In my view, both pieces of software > are truly first rate, and have greatly improved my productivity in > the area of scientific analysis. Thus, I was excited to make the > tran

Re: tkinter puzzler

2005-05-12 Thread Russell E. Owen
corner. >Suppose that up to now, row 16 is the last row in the gui. Then this >works: > >Button(gui, text="stop").grid(sticky=W) # starts row 17 >Button(gui, text="go").grid(row=17, column=1, sticky=E) > >But I don't really want that hardwire

Re: tkinter puzzler

2005-05-16 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: >Martin Franklin <[EMAIL PROTECTED]> writes: >> I suspect you need to look at the columnconfigure / rowconfigure methods >> of the container (toplevel or frame) > >Thanks, columnconfigure turned out to be the answer and

Re: numpy migration (also posted to numpy-discussion)

2007-04-23 Thread Travis E. Oliphant
Duncan Smith wrote: > Hello, > Since moving to numpy I've had a few problems with my existing > code. It basically revolves around the numpy scalar types. e.g. > You will probably get more help on the numpy discussion list: [EMAIL PROTECTED] You are encountering problems because numpy sca

Re: Which are your favorite UML tools?

2007-04-27 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Anastasios Hatzis a écrit : > > Hello, > > > > I'm working on the light-weight MDA tool pyswarm, > > http://pyswarm.sourceforge.net/ (it is about a code-generator for > > Python/PostgreSQL-based software. I plan

Re: Re-running script from Tk shell

2007-04-30 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, gtb <[EMAIL PROTECTED]> wrote: > I am testing a simple script by running it in the Tk shell. It imports > a class from another module. I edit and save the file from which I > import. When I want to re-run I delete the Tk window and run the > module from the Edit w

Re: Tcl-tk 8.5?

2007-05-02 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Méta-MCI" <[EMAIL PROTECTED]> wrote: > Hi! > > > See http://wiki.tcl.tk/10630 > > Any plan to integrate Tcl 8.5 in standard Python? I'm curious about the plans, also. But I can say this much...Tcl/Tk 8.5 is still in alpha (and has been for years). I have hear

Re: Why stay with lisp when there are python and perl?

2007-05-03 Thread Markus E Leypold
Xah Lee <[EMAIL PROTECTED]> writes: > (if there is some demand, i will add a concrept, little programing No. There ain't. - M -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and GUI

2007-05-24 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Just wondering on what peoples opinions are of the GUIs avaiable for > Python? > > All I am doing is prompting users for some data (listbox, radio > buttons, text box, ect...). Then I will have some text output, maybe > a scrolling text

Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-05-24 Thread Markus E Leypold
> On 2007-05-23, Xah Lee <[EMAIL PROTECTED]> wrote: >> The Concepts and Confusions of Prefix, Infix, Postfix and Fully >> Functional Notations >> >> Xah Lee, 2006-03-15 > > Xah, why do you post year-old essays to newsgroups that couldn't care > less about them? And even more to the point -- why

Image.open( "C:\test.jpg") is this wrong ?

2007-08-27 Thread Carnell, James E
> I am trying to simply open an image with PIL... My problem is that I > don't know what my active directory is so I am putting an absolute > path name in quotes. It can't find the specified file or directory. > I'm horrible with docs. I also tried to save an image file (to find > where it saved

Re: Let's Unite Against Jews and Mongrels!

2007-09-03 Thread Fit E. Cal
On Sep 3, 12:57 pm, [EMAIL PROTECTED] wrote: > On Sep 2, 9:18 am, "Richard B. Gilbert" <[EMAIL PROTECTED]> > wrote: > > > HEY! NOBODY BASHES THE TOOTH FAIRY! > -Shrug- I fucked her. mvm -- http://mail.python.org/mailman/listinfo/python-list

Noob: What is a slot? Me trying to understand another's code

2007-09-04 Thread Carnell, James E
I am thinking about purchasing a book, but wanted to make sure I could get through the code that implements what the book is about (Artificial Intelligence a Modern Approach). Anyway, I'm not a very good programmer and OOP is still sinking in, so please don't answer my questions like I really kno

Re: Tkinter pack difficulty

2007-09-12 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Simon Forman <[EMAIL PROTECTED]> wrote: > Hi all, > > I realize this is more of a Tk question than a python one, but since > I'm using python and don't know Tcl/Tk I figured I'd ask here first > before bugging the Tcl folks. > > I am having a terrible time trying

Re: An ordered dictionary for the Python library?

2007-09-12 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Wed, 12 Sep 2007 07:33:45 +, Mark Summerfield wrote: > > > I feel that Python lacks one useful data structure: an ordered > > dictionary. > > > > I find such data structures v. useful in C++. > [snip] > > > Pe

Re: Converting a c array to python list

2007-03-02 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, zefciu <[EMAIL PROTECTED]> wrote: > Hi! > > I want to embed a function in my python application, that creates a > two-dimensional array of integers and passes it as a list (preferably a > list of lists, but that is not necessary, as the python function knows > the

Re: Project organization and import

2007-03-06 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Martin Unsal" <[EMAIL PROTECTED]> wrote: > I'm using Python for what is becoming a sizeable project and I'm > already running into problems organizing code and importing packages. > I feel like the Python package system, in particular the isomorphism > between fil

Re: Project organization and import

2007-03-06 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Martin Unsal" <[EMAIL PROTECTED]> wrote: > On Mar 6, 9:34 am, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > > It assumes that util.common is a module thats on the PYTHONPATH. > > Now we're getting somewhere. :) > > > The common way to ensure that this is the case

Re: On Java's Interface (the meaning of interface in computer programing)

2007-03-22 Thread Markus E Leypold
Lew <[EMAIL PROTECTED]> writes: > Xah Lee wrote: >> In a functional language, a function can be specified by its name and > > Are you sure you know what a "functional language" is? > >> parameter specs. For example: >> f(3) >> f(3, [9,2]) >> f("some string") > > This is not really "typical" synta

Re: Tkinter Toplevel geometry

2007-03-26 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Chris" <[EMAIL PROTECTED]> wrote: > Hi, > > If a user resizes a Toplevel window, or I set a Toplevel's geometry > using the geometry() method*, is there any way to have the geometry > reset to that required for all the widgets? > > I think I found what I'm looki

ANN: NumPy 1.0.2

2007-04-03 Thread Travis E. Oliphant
We are pleased to announce the release of NumPy 1.0.2 NumPy is a Python extension that provides a general-purpose multi-dimensional array that can act as a container of arbitrary raw-data formats (including bools, integers, floats, complex, Python objects, string, unicode, and general C-struct

<    1   2   3   >