[Tutor] Phyton script for fasta file (seek help)

2013-03-24 Thread michelle_low
Hi everyone, Can someone please help me with the following phyton script? I received the error message DeprecationWarning: the sets module is deprecated from sets import Set. After googling, I have tried the methods others suggest: change sets to set or delete the from sets import Se

Re: [Tutor] Phyton script for fasta file (seek help)

2013-03-24 Thread Peter Otten
michelle_low wrote: > Can someone please help me with the following phyton script? I received Python; write it on the blackboard one hundred times ;) > the error message DeprecationWarning: the sets module is deprecated > from sets import Set. > After googling, I have tried the methods othe

Re: [Tutor] Beep sound

2013-03-24 Thread eryksun
On Sun, Mar 24, 2013 at 12:38 AM, Phil wrote: > On 24/03/13 12:18, Steven D'Aprano wrote: >> Nonsense. Not only does echo exist as a command on any Unix, including >> Apple Mac OS, FreeBSD, OpenBSD, Solaris and others, it also exists on >> Windows and DOS: > I don't want to appear augmentative but

Re: [Tutor] Phyton script for fasta file (seek help)

2013-03-24 Thread Alan Gauld
On 24/03/13 07:45, michelle_low wrote: Can someone please help me with the following phyton script? I received the error message DeprecationWarning: the sets module is deprecated from sets import Set. I'd like to execute them with unix command Peter answered both of

Re: [Tutor] Python based SMB 2.1/3 testing tool

2013-03-24 Thread Alan Gauld
On 24/03/13 04:05, Pankaj Agarwal wrote: I'm looking for a tool like PySMB which can provide support for SMB 2.1. Any references will be appreciated. This list is for learning the Python language and its core libraries. I suspect you might get a better response for this type of specialist ques

Re: [Tutor] Python based SMB 2.1/3 testing tool

2013-03-24 Thread Pankaj Agarwal
Thanks Alan! On Sun, Mar 24, 2013 at 2:13 AM, Alan Gauld wrote: > On 24/03/13 04:05, Pankaj Agarwal wrote: > > I'm looking for a tool like PySMB which can provide support for SMB 2.1. >> Any references will be appreciated. >> > > This list is for learning the Python language and its core > libr

Re: [Tutor] Starting a simple python project

2013-03-24 Thread Leam Hall
On 03/22/2013 05:02 AM, miguel.gua...@hushmail.com wrote: Greetings all! My name is Miguel Guasch, I'm a software tester who's trying to slowly get into automation, and eventually (in a couple of years) into development. Miguel, welcome! Depending on your skills, you might want to look up th

Re: [Tutor] Beep sound

2013-03-24 Thread Phil
On 24/03/13 18:24, eryksun wrote: PulseAudio also suggests that you're using Linux or BSD, though I think it does have ports for OS X and Windows. The ossaudiodev module exists on Linux/BSD, so try something relatively simple like outputting a square wave to /dev/dsp. Here's an example device

Re: [Tutor] Beep sound

2013-03-24 Thread Bod Soutar
> Thank you for your reply Bodsda, > > Actually, I didn't think there was any need to make any guesses since "echo > -e" is exclusively a Linux command. Anyway, I had already spent some time > searching for an answerer and the answer given most often was to "modprobe > pcspkr". This didn't lead to

Re: [Tutor] Beep sound

2013-03-24 Thread xDog Walker
On Friday 2013 March 22 18:48, Phil wrote: > Just out of curiosity how can a beep sound be generated? > > My interest in this came about because echo -e '\a' no longer works. > Also print '\a' doesn't work, presumably for the same reason. The > following is also mute: > > import Tkinter > Tkinter.T

Re: [Tutor] Phyton script for fasta file (seek help)

2013-03-24 Thread Peter Otten
michelle_low wrote: > Hi Peter, > Thanks for your help. You're welcome. In the future, please send your mail to the list, not to an individual poster. That way more people get a chance to read it and you are more likely to get help. > I have followed your advice: > > > -removed the line > >

[Tutor] A Text Adventure Problem

2013-03-24 Thread John Bochicchio
I've been trying to write a simple test text adventure, but have been running into serious problems. Here is the error I get when I run it. It will give me the opening text and lets me make my first choice. Then I get this. error "Traceback: (Most recent call last) file "game1.py", line 104, in R

Re: [Tutor] A Text Adventure Problem

2013-03-24 Thread bob gailer
On 3/24/2013 3:41 PM, John Bochicchio wrote: I've been trying to write a simple test text adventure, but have been running into serious problems. Here is the error I get when I run it. It will give me the opening text and lets me make my first choice. What did you enter? I will bet is was 'wind

Re: [Tutor] A Text Adventure Problem

2013-03-24 Thread John Bochicchio
1. I'm using the terminal to run the code. Using the command - (cd python && python2 game1.py) 2. Using python 2.6 I believe. 3. I'm running Arch Linux at the moment. 4. I'm new to python, but I assume the error must have something to do with not having a way for the program to move to the next are

Re: [Tutor] A Text Adventure Problem

2013-03-24 Thread Alan Gauld
On 24/03/13 21:09, John Bochicchio wrote: 4. I'm new to python, but I assume the error must have something to do with not having a way for the program to move to the next area of the code. Bob already gave you the clue. Look atyou code for window. What does it return? -- Alan G Author of th

Re: [Tutor] A Text Adventure Problem

2013-03-24 Thread bob gailer
On 3/24/2013 3:41 PM, John Bochicchio wrote: I've been trying to write a simple test text adventure [snip] Good first try! As you learn OOP and use of classes you will discover ways to improve and simplify coding. Here's an example. It is far from perfect, but definitely worth a study. It w

Re: [Tutor] A Text Adventure Problem

2013-03-24 Thread bob gailer
On 3/24/2013 5:09 PM, John Bochicchio wrote: 1. I'm using the terminal to run the code. Using the command - (cd python && python2 game1.py) 2. Using python 2.6 I believe. 3. I'm running Arch Linux at the moment. 4. I'm new to python, but I assume the error must have something to do with not hav

Re: [Tutor] Fwd: Which databases allow lists as record fields?

2013-03-24 Thread DoanVietTrungAtGmail
I read your help (thanks, Peter and Alan) and thought that relational database technology didn't naturally map to my problem domain. Here, at each simulation timestep each entity has a run-time variable number of pointers to other entities. Representing each entity as a table seems unwieldy to me.

[Tutor] Chapter 3 Projects

2013-03-24 Thread Mariel Jane Sanchez
Hi, I'm sort of new to Python. I'm taking Computer Science 10 and I'm now on Chapter 3. I don't really get how to do the first three projects. Okay, so for the first project, I don't know how to input the ranges like 0-999, 1000-, 1+ and even the negatives. Like when I run it on the she

Re: [Tutor] Chapter 3 Projects

2013-03-24 Thread Dave Angel
On 03/24/2013 07:38 PM, Mariel Jane Sanchez wrote: Hi, I'm sort of new to Python. I'm taking Computer Science 10 and I'm now on Chapter 3. I don't really get how to do the first three projects. Okay, so for the first project, I don't know how to input the ranges like 0-999, 1000-, 1+ a

[Tutor] (no subject)

2013-03-24 Thread Mandi Seger
Hello, everyone, I am looking for suggestions on a beginner's book for learning Python. I have a nursing background with basic science and math education. I have no programming experience in any computer language. I am currently enrolled in a Master's program for Geographic Information Science an

Re: [Tutor] Chapter 3 Projects

2013-03-24 Thread Alan Gauld
On 24/03/13 23:38, Mariel Jane Sanchez wrote: thing especially when I put 100, my typed phrase "Good Score" shows up when "Very Impressive" is the appropriate phrase to go with that score. And when I put in a negative score it says the same thing instead of saying it's an invalid score. How

Re: [Tutor] (no subject)

2013-03-24 Thread Alan Gauld
On 25/03/13 00:13, Mandi Seger wrote: have a nursing background with basic science and math education. I have no programming experience in any computer language. I would try a library loan since such a book will be of limited value after you've finished it. There are a few that are suitable,

Re: [Tutor] (no subject)

2013-03-24 Thread Robert Sjoblom
On 25 March 2013 01:13, Mandi Seger wrote: > Hello, everyone, > > I am looking for suggestions on a beginner's book for learning Python. I > have a nursing background with basic science and math education. I have no > programming experience in any computer language. Head First Python or Head Firs

Re: [Tutor] Fwd: Which databases allow lists as record fields?

2013-03-24 Thread Alan Gauld
On 24/03/13 22:36, DoanVietTrungAtGmail wrote: I read your help (thanks, Peter and Alan) and thought that relational database technology didn't naturally map to my problem domain. Here, at each simulation timestep each entity has a run-time variable number of pointers to other entities. Represent

Re: [Tutor] Beep sound

2013-03-24 Thread Phil
On 25/03/13 04:30, xDog Walker wrote: Maybe something here: http://code.activestate.com/search/recipes/#q=beep Thanks xDog, yet another sound library (pyaudio) to play with. -- Regards, Phil ___ Tutor maillist - Tutor@python.org To unsubscribe o

Re: [Tutor] (no subject)

2013-03-24 Thread William Ray Wing
On Mar 24, 2013, at 8:13 PM, Mandi Seger wrote: > Hello, everyone, > > I am looking for suggestions on a beginner's book for learning Python. I have > a nursing background with basic science and math education. I have no > programming experience in any computer language. > > I am currently en

Re: [Tutor] Beep sound

2013-03-24 Thread Phil
On 25/03/13 00:27, Bod Soutar wrote: Your on the right track, the other thing I've seen is pcspkr being blacklisted. Look in /etc/modprobe.d/blacklist.conf for a line like 'blacklist pcspkr' if it's there, remove it then modprobe or reboot and it should be working again. Thanks Bodsda, I had

Re: [Tutor] (no subject)

2013-03-24 Thread suhas bhairav
Python website provides you a whole set of resources catering to novices. http://docs.python.org/2/tutorial/ Nick Parlante, a Stanford lecturer has created a wonderful tutorial on Python and you can find it in the below link: https://developers.google.com/edu/python/ Google has free videos which