Matplotlib and mouse events

2006-07-17 Thread Tommy Grav
I am trying to use matplotlib to display two images and then by mouse clickidentify a source in each image. The setup is as follows    figim = figure(figsize=(8,4))    axsrc24 = figim.add_subplot(121, xlim=(0,200), ylim=(0,200), autoscale_on=False)    axsrc24.set_title('Click to zoom')    axsrc70 =

Calling functions

2006-10-19 Thread Tommy Grav
I have a small program that goes something like thisdef funcA() : passdef funcB() : passdef funcC() : passdef determine(f): t = f() return tWhat I would like to do is be able to n = determine(funcA)m = determine(funcB)But I can't really figure out how to do this (I think it is possible :) CheersTom

Re: Calling functions

2006-10-19 Thread Tommy Grav
That does work yes :) I just noticed that the script had another little error in it, making me believe that the function call was crooking.Cheers   TommyOn Oct 19, 2006, at 12:30 PM, Dustin J. Mitchell wrote:Tommy Grav wrote: I have a small program that goes something like thisdef funcA() : passdef

Physical constants

2006-11-03 Thread Tommy Grav
I have some code for doing orbital computations. The code is kind ofextensive with many classes, each having several functions. In thesefunctions I need to use constants (like the gravitational constant). What is the best way of implementing a solution when constants areused in several different cl

pyfits problem

2006-11-16 Thread Tommy Grav
I am trying to load in a fits-image and get this error wiyn05dec/n1 -> display -i obj062.fits Traceback (most recent call last): File "/Users/tgrav/Work/Astronomy/MyCode/Python/Redspit/ display.py", line 48, in ? main() File "/Users/tgrav/Work/Astronomy/MyCode/Python/Redspit/ display.

C code in Python

2006-09-01 Thread Tommy Grav
I have some numerical code in C that I would like to call from Python. Cananyone point me in a direction for some text I could read on how to do this?Cheers Tommy[EMAIL PROTECTED]http://homepage.mac.com/tgrav/"Any intelligent fool can make things bigger, more complex, and more violent. It takes a t

Re: does anybody earn a living programming in python?

2006-09-27 Thread Tommy Grav
On Sep 27, 2006, at 10:20 AM, Steven D'Aprano wrote:On Wed, 27 Sep 2006 09:17:28 -0400, Roy Smith wrote:Countless and uncountable are not the same thing.  The former simply means you haven't bothered to count them yet, which as a basis for number theory, sounds like it belongs in a Douglas Adams bo

Re: pyfits problem

2006-11-18 Thread Tommy Grav
On Nov 18, 2006, at 12:27 AM, Cygnus X-1 wrote: Have you opened the file? Which version of pyFITS? Consider: fimg=pyfits.open(datafile) self.header=fimg[0].header self.image=fimg[0].data Tom I found that installing the latest version of pyfits solved the problem. Seems like there

Installation problem

2006-11-26 Thread Tommy Grav
Trying to update my ActivePython installation I mistakenly downloaded the Intel Mac version (rather than the PPC version) and tried to install it. The version did install but did not run of course. However, now trying to install the PPC version of Activepython or even the 2.5 version of macpython

Re: memory error with matplot

2006-12-05 Thread Tommy Grav
It is hard to know what is wrong when we do not know how the wrapper around the function works. The error could also be in ConstructFigName or ConstructFigPath. Also please send the specific error message when asking for help as that significantly helps in tracking down the error. Cheers Tommy

Updating variables indirectly

2006-12-12 Thread Tommy Grav
I have a little problem that look something like this: Python 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> class test: pass ... >>> test.a = 1 >>> test.b = 2 >>> for x in [test.

Re: comparison with None

2007-04-20 Thread Tommy Grav
On Apr 19, 2007, at 11:00 PM, Alex Martelli wrote: > Alan Isaac <[EMAIL PROTECTED]> wrote: > >> currently documented behavior: >> "objects of different types always compare unequal". > > Where is that documented? URL please? > 1.0 == 1 > True type(1.0), type(1) > (, ) > Isn't this an

Re: Do other Python GUI toolkits require this?

2007-04-20 Thread Tommy Grav
On Apr 20, 2007, at 9:22 AM, Antoon Pardon wrote: > Well if you want to do it that way, nobody can stop you, but people > in the habit of processing numbers usually put the time on the X-axis > like in time spend learning or exercising and put the other value > on the Y-axis. > > That is because

Re: matplotlib basic question

2007-04-20 Thread Tommy Grav
On Apr 20, 2007, at 2:44 PM, Robert Kern wrote: > Colin J. Williams wrote: > >> I'm not sure that scipy has been updated to Python 2.5 > > ? scipy certainly works with 2.5. Are you referring to something > else perhaps? A side question: Is there any plans of updating the scipy.org Superpack bu

Re: Newbie question regarding string.split()

2007-04-20 Thread Tommy Grav
On Apr 20, 2007, at 3:15 PM, [EMAIL PROTECTED] wrote: > On Apr 20, 1:51 pm, kevinliu23 <[EMAIL PROTECTED]> wrote: >> ['', 'b34bx5b', 'c4a5a6'] >> >> My question is, why is the first element of projectOptions an empty >> string? What can I do so that the first element is not an empty >> string? but

Re: matplotlib basic question

2007-04-20 Thread Tommy Grav
On Apr 20, 2007, at 3:49 PM, Robert Kern wrote: > Tommy Grav wrote: >> On Apr 20, 2007, at 2:44 PM, Robert Kern wrote: >>> Colin J. Williams wrote: >>> >>>> I'm not sure that scipy has been updated to Python 2.5 >>> ? scipy certainly works with

Re: editing scripts on a mac

2007-04-27 Thread Tommy Grav
> him> I do not have a text editor, but here are the answers to > him> questions 1-5. > > Now, frankly, I don't think this answer is correct, since I know OS > X is > a UNIX derivative, but I am loathe to involve a programming noob > with vi > or something similar. So I wondered if one of the c

Looping over lists

2007-05-04 Thread Tommy Grav
I have a list: a = [1., 2., 3., 4., 5.] I want to loop over a and then loop over the elements in a that is to the right of the current element of the first loop In C this would be equivalent to: for(i = 0; i < n; i++) { for(j=i+1; j < n; j++) { print a[i], a[j] and should yield:

Re: A big problem with _name_ == '_main_'

2007-09-01 Thread Tommy Grav
On Sep 1, 2007, at 8:35 PM, onurays wrote: > I have begun to teach me Python today. The problem is : > > NameError: name 'name' is not defined. > > I am using winXP and i used that: > > if _name_ == '_main_' : > MyClass() > gtk.main() > > Onuray. I believe that should be a

handling modules in packages

2007-09-05 Thread Tommy Grav
Hi, I am working on a package that contains a number of different modules: > ls pyAstro __init__.py constants.py conversion.py observation.py orbit.py transformation.py however, I find that several of the modules have the same import statements: orbit.py: import numpy import constants impo

Re: handling modules in packages

2007-09-05 Thread Tommy Grav
>> > The simplest thing to do would be to have PyAstro.__init__.py > import all > the sub-modules, and define __all__ as the set of names that the > package > should inject into importing modules. > > Then you could write (for example) > > from PyAstro import numpy, constants, conversion, obsrv

Re: Organizing Code - Packages

2007-09-08 Thread Tommy Grav
On Sep 8, 2007, at 8:04 PM, xkenneth wrote: > > Code doesn't compile in python. This is pseudo code anyways. > Can't post actual code and tracebacks because the code is proprietary. > "MyModule" is pseudo code, and i forgot the arguments, the actual code > and errors are unimportant for this quest

Newbie question

2007-03-05 Thread Tommy Grav
Hi list, this is somewhat of a newbie question that has irritated me for a while. I have a file test.txt: 0.3434 0.5322 0.3345 1.3435 2.3345 5.3433 and this script lines = open("test.txt","r").readlines() for line in lines: (xin,yin,zin) = line.split() x = float(xin) y = floa

Good handling of input data (was Re: Newbie question)

2007-03-06 Thread Tommy Grav
On Mar 5, 2007, at 12:47 PM, Larry Bates wrote: > Tommy Grav wrote: >> Hi list, >> >>this is somewhat of a newbie question that has irritated me for >> a while. >> I have a file test.txt: >> >> 0.3434 0.5322 0.3345 >> 1.3435 2.3345 5.3

Re: Good handling of input data (was Re: Newbie question)

2007-03-06 Thread Tommy Grav
On Mar 6, 2007, at 8:14 AM, Jussi Salmela wrote: > Tommy Grav kirjoitti: >> >> Thanks for the great response. >> >> So how would you handle this type of error handling? >> My main problem is that occasionally there is an entry >> in the list that is a str

Upgrading python question

2007-03-22 Thread Tommy Grav
I am currently using Activepython 2.4.4, but would like to upgrade to 2.5. Am I right in thinking that if I do that I need to reinstall all the packages and modules (like numpy, scipy, pyfits, and so on)? Or is there a way to avoid that? Cheers Tommy -- http://mail.python.org/mailman/listinf

Parsing a setup file

2007-04-03 Thread Tommy Grav
Hi, I have a setup file for some numerical simulation code written in C that looks like this: dt 0.1 time 0.0 nupdate 10 noutput 100 ntotal 1 G 39.476926421373015 Sun 1.0597682 mplanet 9.547861040430418e-4 3.409530427945 3.635870038323 .03424028779975 -2.0471057839802485 2.0178211484

List loops

2007-10-09 Thread Tommy Grav
Hi everyone, I have a list of objects where I have want to do two loops. I want to loop over the list and inside this loop, work on all the elements of the list after the one being handled in the outer loop. I can of course do this with indexes: >>> alist = range(3) >>> for i in xrange(len(a

Progress count in terminal (Mac OS X)

2007-01-11 Thread Tommy Grav
I have a program that does a lot of iterations and would like to follow its progress by having it print out the current iteration number as it progresses. How do I do this so that it appears like a counter that increases in the same place in the terminal window? I am using python2.5 on a Mac OSX an

Re: Progress count in terminal (Mac OS X)

2007-01-11 Thread Tommy Grav
Lundh wrote: > Tommy Grav <[EMAIL PROTECTED]>: > >> I have a program that does a lot of iterations and would like >> to follow its progress by having it print out the current iteration >> number as it progresses. How do I do this so that it appears >> like a coun

Reading character from keyboard

2007-01-23 Thread Tommy Grav
A very simple question. I would like to read a single character from the keyboard (y or n). I have tried to look in my Python books and a google search, but have come up empty. I am sure the info s out there, but I guess I am unable to find the right question or search keyword :o/ Any hints or hel

Re: takes no arguments (1 given)

2007-12-03 Thread Tommy Grav
On Dec 3, 2007, at 2:10 PM, Mike wrote: > In the following Display inherits from the Tkinter class Canvas: > > import sys > from Tkinter import * > class Display(Canvas) : > ... > def fill_canvas() : def fill_canvas(self): > slop=self.slop > set_sr(int(self.cget('width'))+slop

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Tommy Grav
On Dec 3, 2007, at 2:04 PM, Tóth Csaba wrote: > Russ P. írta: >>> Python name is not funny for me. Even the Monty Python, because >>> its hard >>> to translate their jokes, and in my country they are not so popular. >>> Just a few ppl knows them. >> >> I've heard it helps to be stoned out of yo

Re: Why Don't Return?

2007-12-03 Thread Tommy Grav
def a(): d = b() print d def b() c = "Hi" return c if __name__ == "__main__": a() Cheers TG On Dec 3, 2007, at 3:05 PM, Victor Subervi wrote: > Hi; > Here is sample function: > > def a(): > b() > print c > > def b(): > c = "Hi" > return c > > if __name__ == "__ma

PyObjC and Webkits

2007-12-04 Thread Tommy Grav
I am trying to install PyObjC 1.4 on my Mac OS X 10.4.11. I run: [EMAIL PROTECTED] Temporary/pyobjc-1.4 --> python setup.py bdist_mpkg -- open ** using pyobjc source-deps py2app for building running bdist_mpkg installing to build/bdist.macosx-10.3-fat/mpkg running build running build_py running

Re: "do" as a keyword

2007-12-13 Thread Tommy Grav
On Wed, 12 Dec 2007 09:46:09 -0600, Chris Mellon wrote: > I agree that it's fundamental, but I'd like to mention that I've > written > many thousands of lines of Python code, from throwaway code for > demonstration to enterprisey servers and all sorts of things in > between > and I've *never*

Re: [Plone-Users] Why Can't I Do This?

2007-12-14 Thread Tommy Grav
On Dec 14, 2007, at 11:21 AM, Victor Subervi wrote: > whatever[0:2] will yield THREE characters, so my "by " is correct > and "by" will fail every time :)) > Victor Nope, whatever[0:2] is two characters: ActivePython 2.5.1.1 (ActiveState Software Inc.) based on Python 2.5.1 (r251:54863, May

pCFITSIO problems

2006-04-25 Thread Tommy Grav
I am trying to install pCFITSIO on my Mac (Mac OS X.4.  Numarray is already installed and imports fine in python (ActivePhyton v2.4.2), but when I try to build pCFITSIO itfails in finding a number of .h files for numarray. [tgravi] Desktop/pCFITSIO-0.99.3 ->python setup.py buildrunning buildrunning

Masked arrays

2006-05-10 Thread Tommy Grav
I am trying to get the flux of a star in an image. I have been using numpy and pyfits and have the code.def distance(im,xc,yc):    (rows,cols) = im.shape    dist = zeros([rows,cols]).astype(Float64)    for row in range(rows):        for col in range(cols):            dist[row,col] = sqrt(((row + 0.

number of element in array/matrix

2008-01-11 Thread Tommy Grav
On Jan 11, 2008, at 11:09 AM, [EMAIL PROTECTED] wrote: > > Hi, > I have what I suspect to be a fairly simple problem while using > python Numeric. > I am attempting to count the number of times that an element 'b' > occurs in > numeric array 'a'. I tried unsuccessfully to find a more efficien

Re: SV: Polymorphism using constructors

2008-03-04 Thread Tommy Grav
On Mar 4, 2008, at 4:53 PM, Jeff Schwab wrote: > What does "SV" in the subject mean? SV = "Svar" is the Norwegian word for Reply. Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: HELP!...Google SketchUp needs a Python API

2008-11-28 Thread Tommy Grav
From the long header: X-Read-This:This message is not from GvR the creator of Python. My guess i My guess is that r is behind this himself. Tommy On Nov 28, 2008, at 7:56 PM, Dennis Lee Bieber wrote: On 29 Nov 2008 00:26:06 GMT, Giudo von Rossom <[EMAIL PROTECTED]> declaimed the f

Re: Guido's new method definition idea

2008-12-06 Thread Tommy Grav
On Dec 6, 2008, at 11:42 AM, [EMAIL PROTECTED] wrote: class ThisIsAClass: def $some_method(arg1, arg2): $value = arg1 + $foo + $bar + $baz * arg2 ... I think my biggest problem with this is what got me off Perl. Add $, together with already used @ and maybe some other identifiers

Re: Python's popularity

2008-12-22 Thread Tommy Grav
On Dec 22, 2008, at 12:48 PM, walterbyrd wrote: Now since Python *is not* the only language on it's block, we have to compete with our main nemesis(Ruby) for survival I think both python and ruby will "survive." I think python is also competing with perl in the sysadmin space - although I see

Re: Python's popularity

2008-12-22 Thread Tommy Grav
On Dec 22, 2008, at 5:16 PM, Joe Strout wrote: Alvin ONeal wrote: Also worthy of mention: I've seen python pre-installed on consumer HP desktops (I think as part of a backup/restore script, but I'm not sure) It's pre-installed on every Mac (both desktop and laptop), too. Mac and a lot of

Re: import X vs from x import *

2008-05-22 Thread Tommy Grav
On May 22, 2008, at 1:44 PM, [EMAIL PROTECTED] wrote: import Tkinter With this you call functions from Tkinter as Tkinter.function() from Tkinter import * Here you just call function() i have a program where if i comment out either of those import- statements i get an error. i thoug

mysqldb install problem

2008-05-29 Thread Tommy Grav
I am trying to install mysqldb-1.2.2 on my PPC running 10.5.2 and Activepython 2.5.1.1 when I get this error: running build running build_py copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb running build_ext building '_mysql' extension gcc -isysroot /Developer/SDKs/MacOSX10.4

Re: SMS sending and receiving from website?

2008-05-31 Thread Tommy Grav
On May 31, 2008, at 10:01 AM, globalrev wrote: also, lets say i want to send a SMS to my own phone from the internet. how would i do that? While I have seen services that allow you to do that (it has been awhile), i think you need to contact a service provider if you want to do this on any

Re: gcc error in Mac OS X

2008-06-04 Thread Tommy Grav
What happens when you run which gcc Cheers Tommy On Jun 4, 2008, at 6:50 PM, Zhaojie Boulder wrote: Hello, I am new to Mac and used python in linux before. What I am trying to do is to install "Ipython" and "PyCogent" in Mac OS X. For PyCogent, after entering the package path, I typed

Re: Q about object identity

2008-06-06 Thread Tommy Grav
On Jun 6, 2008, at 4:27 PM, Ethan Furman wrote: [EMAIL PROTECTED] wrote: Hello, I am testing object identity. If I do it from the interpreter, I get strange results. *print [] is []* *False* print id([]), id([]) 3083942700 3083942700 Why is that? Isn't this an error? in the first stateme

Re: how to build a street with more than 1 house ?

2008-06-06 Thread Tommy Grav
On Jun 6, 2008, at 6:45 PM, Stef Mientki wrote: hello, In the code below, I can build a large street like this: large_street = house * 25 but not a small street. like this: small_street = 5 * house This calls the int.__mul__() code i believe. Why is this different ? And more interesting, h

Re: lists to save in a tuple

2008-06-09 Thread Tommy Grav
ActivePython 2.5.1.1 (ActiveState Software Inc.) based on Python 2.5.1 (r251:54863, May 1 2007, 17:40:00) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> a = [1,2,3] >>> b = ['a','b','c'] >>> zip(a,b) [(1, 'a'), (

Parsing of a file

2008-08-06 Thread Tommy Grav
I have a file with the format Field f29227: Ra=20:23:46.54 Dec=+67:30:00.0 MJD=53370.06797690 Frames 5 Set 1 Field f31448: Ra=20:24:58.13 Dec=+79:39:43.9 MJD=53370.06811620 Frames 5 Set 2 Field f31226: Ra=20:24:45.50 Dec=+78:26:45.2 MJD=53370.06823860 Frames 5 Set 3 Field f31004: Ra=20:25:0

Re: Parsing of a file

2008-08-07 Thread Tommy Grav
got me thinking about wether there was another way to do it. I had tried a few approaches, but I had not considered the .split() and .split("="). Of course the list members quickly came up with a simple and elegant solution. And I learned a lot in the proc

Re: Homework help

2008-04-01 Thread Tommy Grav
On Apr 1, 2008, at 12:29 PM, [EMAIL PROTECTED] wrote: > On Apr 1, 12:17 pm, Paul Rubin wrote: >> [EMAIL PROTECTED] writes: >>> I don't necessarily want the answers, but need help on how to >>> approach >>> it/the steps i need to solve the problems >> >> What parts are

Re: Setter Propertys' mro?

2008-09-06 Thread Tommy Grav
On Sep 6, 2008, at 9:15 PM, cipher wrote: Whats the mro (method resolution order) of a setter property (__set__ on a descriptor). i seem to be experiencing some weird issue with them. for example class test: You have to use class test(object). Only new style classes accepts properties. C

Cython dynamic library problem

2008-09-18 Thread Tommy Grav
I am trying to learn how to use cython, and while I am following the cython-dev mailing list I didn't feel like this question was totally appropriate for its audience so I am trying here first. I am on a max os x 10.5.4 running drtgrav% python ActivePython 2.5.2.2 (ActiveState Software Inc.)

Re: Cython dynamic library problem

2008-09-18 Thread Tommy Grav
On Sep 18, 2008, at 12:35 PM, Rob Wolfe wrote: I would try to use `distutils` because this package is much wiser than me and knows all necessary switches for gcc. ;) That worked! Thanks Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: Cython dynamic library problem

2008-09-18 Thread Tommy Grav
On Sep 18, 2008, at 12:35 PM, Rob Wolfe wrote: I would try to use `distutils` because this package is much wiser than me and knows all necessary switches for gcc. ;) That worked! Thanks Cheers Tommy -- http://mail.python.org/mailman/listinfo/python-list

Re: string concatenate

2008-10-01 Thread Tommy Grav
On Oct 1, 2008, at 12:41 PM, sandric ionut wrote: Hi: I have the following situation: nameAll = [] for i in range(1,10,1): n = "name" + str([i]) nameAll += n print nameAll I get: ['n', 'a', 'm', 'e', '[', '1', ']', 'n', 'a', 'm', 'e', '[', '2', ']', 'n', 'a', 'm

Fwd: string concatenate

2008-10-01 Thread Tommy Grav
On Oct 1, 2008, at 12:41 PM, sandric ionut wrote: Hi: I have the following situation: nameAll = [] for i in range(1,10,1): n = "name" + str([i]) nameAll += n print nameAll I get: ['n', 'a', 'm', 'e', '[', '1', ']', 'n', 'a', 'm', 'e', '[', '2', ']', 'n', 'a', 'm', 'e'

SciPy problem

2006-03-22 Thread Tommy Grav
I am new to Python and just downloaded ActivePython 2.4.2.10 on my Mac PPC with OS X 10.4.I added the numpy package (0.9.6-py2.4) and it imports fine. But when I try to import scipy (0.4.8-py2.4)I get an error:>>> import scipyTraceback (most recent call last):  File "", line 1, in ?  File "/Library

Newbie: Print question

2006-03-22 Thread Tommy Grav
Being new to Python I am getting a result I do not understand.I have a code that reads in a set of lines from a file, slits upthe lines and puts information into a list of class objects.    obslist = mpc.Read_Observations(options.in_fname) ;        for testobs in obslist:        print testobs.print

Re: Newbie: Print question

2006-03-22 Thread Tommy Grav
Thanks. That works. Like I said I am a newbie :)Cheers  TommyOn Mar 22, 2006, at 1:17 PM, Fredrik Lundh wrote:Tommy Grav wrote:      for testobs in obslist:         print testobs.printmpc() print.      def printmpc(self):         if self.mag!="":             print "%14s  %12.5f  %5.2f  %6.2f  %8.3f

SWIGing problem

2006-03-22 Thread Tommy Grav
This might not be the venue to ask this but I do not know where else to turn. I am trying to install a package that is swig'ed from some C code. Unfortunately the readme file isn't to informative.  Does anyoneknow which libraries to link to to remove the undefined symbolsbelow?[EMAIL PROTECTED] Pyt

Newbie Dictionary from tuples

2006-03-27 Thread Tommy Grav
I have two tuples: keys and subjects. How do I construct a dictionary  using these two tuples?CheersTommy[EMAIL PROTECTED]http://homepage.mac.com/tgrav/"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the

File objects and seek

2006-03-28 Thread Tommy Grav
I have a file object that contains a binary read in file. I would like to move to another position in the file to read in a record. seek seemsto work fine with a positive value, but not a negative one (moving back from the current relative position). Is this the intended behavior?How do I move back

Struct on on x86_64 mac os x

2009-10-20 Thread Tommy Grav
I have created a binary file that saves this struct from some C code: struct recOneData { char label[3][84]; char constName[400][6]; double timeData[3]; long int numConst; double AU; double EMRAT; long int coeffPtr[12][3]; long int DENUM;

Re: (unknown)

2009-11-16 Thread Tommy Grav
On Nov 15, 2009, at 11:08 AM, Gabriel Genellina wrote: > En Fri, 13 Nov 2009 16:05:26 -0300, Ronn Ross escribió: > >> I'm attempting to convert latitude and longitude coordinates from degrees >> minutes and second to decimal form. I would like to go from: >>N39 42 36.3 W77 42 51.5 >> to: >>

Re: ANN: ActivePython 2.6.4.10 is now available

2010-02-05 Thread Tommy Grav
On Feb 5, 2010, at 12:01 AM, Sridhar Ratnakumar wrote: > I'm happy to announce that ActivePython 2.6.4.10 is now available for > download from: > On what platforms does ActivePython run? > > > ActivePython includes installers for the following platforms

Re: MemoryError, can I use more?

2010-02-14 Thread Tommy Grav
On Feb 14, 2010, at 7:20 PM, Echavarria Gregory, Maria Angelica wrote: > > Dear Chris, > > One of the machines I tested my app in is 64 bit and happened the same. The > RAM consumed by the OS and other processes is already included in the 2.2 I'm > telling... my app enters to work when the RA

Re: MemoryError, can I use more?

2010-02-14 Thread Tommy Grav
On Feb 14, 2010, at 10:16 PM, Dave Angel wrote: > There are three different limits at play here. Since you're still not saying > how you're "measuring" usage, we've all been guessing just which one you're > hitting. There's physical RAM, virtual address space, and swappable space > (swapfile

Re: no module named exceptions?

2010-04-01 Thread Tommy Grav
This is what he is expecting. Importing exceptions works fine in 2.6.4, not so in python 3.1. Python 2.6.4 (r264:75706, Nov 3 2009, 18:12:54) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import exceptions >>>

Re: WxPython versus Tkinter.

2011-01-26 Thread Tommy Grav
On Jan 26, 2011, at 10:26 AM, Octavian Rasnita wrote: > You didn't say that WxPython can't be used with Python 3. Have you said that? Some besides Peter pointed this out a few days ago. >>> The other part of the discussion is related to the accessibility and >> care for >accessibility and that

Re: find integers in f.readline()

2010-04-29 Thread Tommy Grav
On Apr 29, 2010, at 10:22 PM, elsa wrote: > Hi people, > > I'm having a problem getting the info I need out of a file. > > I've opened the file with f=open('myFile','r'). > > Next, I take out the first line with line=f.readline() > > line looks like this: > > '83927 300023_25_5_09_FL 9086 91

Re: new to python - trouble calling a function from another function

2010-08-05 Thread Tommy Grav
On Aug 5, 2010, at 11:20 AM, Brandon McCombs wrote: > so I missed a few lines, so sue me. The problem is that when you don't post a self contained example there is no proper way to answer your question, since the problem could be outside the part you posted. > already aware. I reformatted tabs t

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-06 Thread Tommy Grav
On Aug 6, 2010, at 3:14 PM, W. eWatson wrote: > I must be missing something. I tried this. (Windows, IDLE, Python 2.5) > # Try each module > import sys > import numpy > import scipy > import string > > dependencies = "numyp", "scipy" > for dependency in dependencies: >try: >__import_