[Tutor] learning how to convert script to python

2011-06-27 Thread Jim Syyap
I am learning python at the moment--this is something I would like to work on/convert. It's a poker application that opens a table for you every x-minutes. The project has been discontinued and I would like to convert it to python, then use it. Can you tell me what language this is--lisp or autoho

Re: [Tutor] Class methods

2011-06-27 Thread Alan Gauld
"David Merrick" wrote Is it possible too have crit1 = Critter("Dave") crit2 = Critter("Sweetie") farm = [crit1,crit2] #List# and then be able to use Critters methods on farm? No, Marc has already answered that. class Critter(object): """A virtual pet""" def __init__(self, name, hu

Re: [Tutor] Critter

2011-06-27 Thread Alan Gauld
"Vincent Balmori" wrote I'm on the Critter Caretake problem that involves handling more than one critter. I have looked At David Merrick's threads for some answers, Given that David hasn't solved the problem yet that may not be the best source! :-) difference is that he created a whole ne

Re: [Tutor] learning how to convert script to python

2011-06-27 Thread Alan Gauld
"Jim Syyap" wrote The project has been discontinued and I would like to convert it to python, then use it. Can you tell me what language this is--lisp or autohotkey? No idea what autohotkey looks like but it certainly is NOT Lisp. What do I need to learn so I can convert these? Python a

Re: [Tutor] Tutor Digest, Vol 88, Issue 103

2011-06-27 Thread David Merrick
Thanks that should help ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Critter

2011-06-27 Thread Vincent Balmori
Last thing I need to do solve is the __str__ problem. I can print the name fine, but everytime I try to put in the self.hunger and self.boredom values I get: TypeError: Can't convert 'int' object to str implicitly http://old.nabble.com/file/p31940427/critter_caretaker3.py critter_caretaker3.py

[Tutor] Zipping files and Mysql

2011-06-27 Thread gagnrath
I am trying to write a script that will dump a mysql db and then zip the file. I do know about mysqldb, but I was wondering if there is anything native to the libraries that will allow me to do this without using a seperate piece. Then after I gather the DBs, I need to zip them. I wrote the

[Tutor] nested list query

2011-06-27 Thread Vikram K
Suppose i have the following nested list: >>> x [['19600894', '1', 'chr15_76136768', 'MISSENSE'], ['19600894', '2', 'chr15_76136768', 'MISSENSE'], ['18467762', '1', 'chr14_23354066', 'MISSENSE']] How do i obtain from nested list x (given above), the following nested list z: >>> z [['chr15_76136

Re: [Tutor] Critter

2011-06-27 Thread Walter Prins
On 27 June 2011 19:52, Vincent Balmori wrote: > > Last thing I need to do solve is the __str__ problem. I can print the name > fine, but everytime I try to put in the self.hunger and self.boredom values > I get: > > TypeError: Can't convert 'int' object to str implicitly > > OK, so if Python can'

[Tutor] Beginner troubleshooting py2exe

2011-06-27 Thread Esther Showalter
Hello! I'm trying to follow the introductory tutorial on using py2exe at http://py2exe.org/index.cgi/Tutorial. It's very straightforward except that I keep getting an error when I come to step #3 and I don't know what I need to do about it: I'm running Python 2.7 on Windows Vista (32-bit). I've i

Re: [Tutor] Critter

2011-06-27 Thread Alan Gauld
"Vincent Balmori" wrote Last thing I need to do solve is the __str__ problem. I can print the name fine, but everytime I try to put in the self.hunger and self.boredom values I get: TypeError: Can't convert 'int' object to str implicitly That's right you need to do it explicitly. Either b

Re: [Tutor] nested list query

2011-06-27 Thread Alan Gauld
"Vikram K" wrote Suppose i have the following nested list: x [['19600894', '1', 'chr15_76136768', 'MISSENSE'], ['19600894', '2', 'chr15_76136768', 'MISSENSE'], ['18467762', '1', 'chr14_23354066', 'MISSENSE']] How do i obtain from nested list x (given above), the following nested list z:

Re: [Tutor] Beginner troubleshooting py2exe

2011-06-27 Thread delegbede
Just curious. Going by the last line of the error generated, it says something you tried to import is not a valid windows application. Can you confirm you installed the right py2exe for python 2.7 on Win32? You may want to check that to be sure. The last line of your error stack should point