[Tutor] Using the TIME module to extract a semi-random number

2009-09-18 Thread Katt
ensure that the programs that I write are completely portable. Thanks again, Katt ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Super class

2009-09-25 Thread Katt
As I am a beginner I am constantly assimilating new python code and vocabulary associated with it. Could someone please explain to me what a super class is, its importance and what level of python programming it is(beginner,intermediate,advanced programming technique)? This would greatly help

Re: [Tutor] What is Curses and why do they call it that.

2009-10-12 Thread Katt
, Katt ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] First line of a python program

2009-10-12 Thread Katt
Hello all, Numerous times I see the following as the first line of a python program: #! /usr/bin/python What is this for or do for the program? Thanks in advance, Katt ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

Re: [Tutor] Shebang (#!) in the first line of a python script

2009-10-13 Thread Katt
From: "Mark K. Zanfardino" To: Katt Cc: tutor@python.org Subject: Re: [Tutor] First line of a python program In computing, a shebang (also called a hashbang, hashpling, pound bang, or crunchbang) refers to the characters "#!" when they are the first two characters in a

Re: [Tutor] Curses - What does it do and why is it called this?

2009-10-13 Thread Katt
From: Steve Willoughby To: Katt The name is a humorous reference to the "cursor" on the screen which this package controls for the application, moving it around (and curses even Now I understand. Makes sense. If "Curses" is for UNIX what would I use on a Windows XP

Re: [Tutor] Changing text colors on WinXP py2.6.2

2009-10-13 Thread Katt
Hello All, Is it possible to change text color on a WinXP system by just using the Ansi escape codes. I have tried, but it just shows the start and end text of the code, but it doesn't change the color. I have tried placing the following before and aft the variable I wish to change: print

Re: [Tutor] Shebang (#!) in the first line of a python script

2009-10-13 Thread Katt
Message: 2 Date: Tue, 13 Oct 2009 06:24:42 -0400 From: Dave Angel To: Alan Gauld Cc: tutor@python.org, Katt Subject: Re: [Tutor] Shebang (#!) in the first line of a python script Message-ID: <4ad4556a.2020...@ieee.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Alan

Re: [Tutor] Changing colors using WinXP py2.6.2

2009-10-13 Thread Katt
Message: 3 Date: Tue, 13 Oct 2009 11:34:15 +0100 From: Tim Golden Cc: tutor@python.org Subject: Re: [Tutor] Changing text colors on WinXP py2.6.2 Message-ID: <4ad457a7.5030...@timgolden.me.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Katt wrote: Is it possible to

Re: [Tutor] PyWin32 - Library of functions to interact with windows?

2009-10-14 Thread Katt
on 3: If the above 2 are correct is it just a matter of doing the following: print "The remaining number of apples is: "RGB(red),number_apples The above print statement would yield just the number_apples variable in red text. Thanks in advance, Katt __

Re: [Tutor] Changing the color of text in the windows shell (WinXP/python 2.6.2)

2009-10-14 Thread Katt
Hello All, Message: 4 Date: Wed, 14 Oct 2009 18:38:31 +0100 From: "Alan Gauld" To: tutor@python.org Subject: Re: [Tutor] PyWin32 - Library of functions to interact with windows? "Katt" wrote Now I find myself scratching my head and saying to myself: "now what?"

Re: [Tutor] Changing the text color in the WinXP dos shell (WinXP/py2.6.2)

2009-10-16 Thread Katt
Date: Thu, 15 Oct 2009 08:11:11 +0100 From: "Alan Gauld" To: tutor@python.org Subject: Re: [Tutor] Changing the color of text in the windows shell (WinXP/python 2.6.2) Message-ID: "Katt" wrote lucky). So I will pursue all three types of changing color. First I will

Re: [Tutor] PyWin32 - Library of functions to interact with windows

2009-10-16 Thread Katt
Message: 4 Date: Thu, 15 Oct 2009 09:35:30 +0100 From: Tim Golden Cc: tutor@python.org Subject: Re: [Tutor] PyWin32 - Library of functions to interact with windows? Message-ID: <4ad6ded2.5040...@timgolden.me.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Katt wrote: Hel

Re: [Tutor] Most pythonic input validation

2009-10-16 Thread Katt
t. Could you not just put choice = int(raw_input(prompt)) instead of using two different statements? Or is it that my example will return as string? The third is the "try" statement. How is this different from the "for" loop or "if" loop? The fourth is exce

Re: [Tutor] Understanding what the code does behind the scenes

2009-10-16 Thread Katt
he WConio module. The fourth line puzzles me though. I think it says that when the textcolor returns the zero that it doesn't print the None? I am not sure though. Could you let me know if I have the right idea? Thanks in advance, Katt ___

Re: [Tutor] Tutorials and How important is pseudocode

2009-10-16 Thread Katt
Message: 7 Date: Fri, 16 Oct 2009 13:54:37 +0100 From: "Alan Gauld" To: tutor@python.org Subject: Re: [Tutor] PyWin32 - Library of functions to interact with windows Message-ID: Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response &quo

Re: [Tutor] Testing for empty list

2009-10-19 Thread Katt
python knowledge preventing me from seeing the meaning of the question? Thanks in advance, Katt ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Reading information from a text file into a list of lists (WinXP/py2.6.2)

2009-10-25 Thread Katt
s(): print "\nReading text file into program: reminders.txt" text_file = open("important", "r") dates = text_file.readlines() text_file.close() important_dates = dates.split() print dates print important_dates # read_important_dates() ---

Re: [Tutor] Retrieving information from a plain text file (WinXP/py2.6.2/Beginner)

2009-11-02 Thread Katt
me why my read_reminders function retrieves the information, but cannot process that information? When I try and run the program I get the following error message: Reading text file into program: reminders.txt [['Reminder1,2010_10_15'], ['Reminder2,2010_11_01'], ['Reminder3,2010_11_15']] Traceback (most recent call last): File "reminders.py", line 182, in print reminders NameError: name 'reminders' is not defined Thanks in advance for your help, Katt ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Retrieving information from a plain text file(WinXP/py2.6.2/Beginner)

2009-11-05 Thread Katt
? When I try and run the program I get the following error message: Reading text file into program: reminders.txt [['Reminder1,2010_10_15'], ['Reminder2,2010_11_01'], ['Reminder3,2010_11_15']] Traceback (most recent call last): File "reminders.py",

Re: [Tutor] Change a text string from a list and change it into an integer number.(WinXP/py2.6.2/Beginner)

2009-11-05 Thread Katt
the "cyear" in stead of just the "c". All input is appreciated. Thanks in advance, Katt ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tutor Digest, Vol 69, Issue 21 - Change a text string from a list and change it into an integer(WinXP/py2.6.2/Beginner)

2009-11-09 Thread Katt
am getting the posts in a Digest manner. Let me know if you have any suggestions. Now back to message at hand: Message: 3 Date: Thu, 5 Nov 2009 21:34:31 -0600 From: Wayne Werner To: Katt Cc: tutor Subject: Re: [Tutor] Change a text string from a list and change it into an integer number