Re: [Tutor] help

2005-03-13 Thread C Smith
On Sunday, Mar 13, 2005, at 05:01 America/Chicago, [EMAIL PROTECTED] wrote: if this is not a program please teach me what is a program and what i need to know to write them and if this is a program teach me how to write better programs i can use outside of the python shell... OK, how about this

[Tutor] re help

2005-03-13 Thread Ron Nixon
The following program takes text data like this: Jimi Hendrix 2100 South Ave Seattle, WA 55408 and changes it to this Jimi Hendrix, 2100 South Ave,Seattle,WA,55488 and writes it to a file. The problem I'm running into is that it only writes this first address to a file and there are several oth

Re: [Tutor] command for clearing user screen input

2005-03-13 Thread Kent Johnson
Gopinath V, ASDC Chennai wrote: HI all, I'm trying a series of inputs ...i need to get the screen cleared after every 5 inputs...can any 1 tell me how do I do it Presuming you are using some kind of console window, you can do something like print '\n' * 50 Anything fancier is platform dependen

[Tutor] funny behaviour

2005-03-13 Thread Jacob Abraham
Dear Tutors, A class was created to extend timedelta to add and subtract months. Simple doctests that simply create an instance of the class failed. Could someone please explain this really funny behaviour. Regards, Jacob Abraham from datetime import datetime, timedelta class WeirdTimeDelta(

[Tutor] command for clearing user screen input

2005-03-13 Thread Gopinath V, ASDC Chennai
Title: command for clearing user screen input HI all,    I'm trying a series of inputs ...i need to get the screen cleared after every 5 inputs...can any 1 tell me how do I do it -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 13, 2005 4:31 P

Re: [Tutor] help [Please use better subject lines than "help!"]

2005-03-13 Thread Danny Yoo
On Sun, 13 Mar 2005, R. Alan Monroe wrote: > > ok i have learned that on the python shell or new window you can > > type in..print "hello world"...and the output is ..'hello > > world'.. or you can put in anything realy and it say it back to > > you.is this a program or what > >

Re: [Tutor] python>data>sqlite>python>data>paper

2005-03-13 Thread Danny Yoo
On Sat, 12 Mar 2005, [iso-8859-1] Jan Ekström wrote: > I have looked through a lot of tutor documentation. But I would ask > someone to show me python code for putting som data in a sqlite database > and code showing how I get data out of such a database Hi Jan, You may want to look at:

RE: [Tutor] Newbie in Python (fwd)

2005-03-13 Thread Danny Yoo
On Sun, 13 Mar 2005, Danny Yoo wrote: > Thanks for the reply..i wasn't sure how this works so I am glad there is > someone that might be able to help me. Because this is an university > assignment I am not sure how much of help you can provide..but here it > goes. [text cut] As you might under

Re: [Tutor] creating a tab delimited filename

2005-03-13 Thread Danny Yoo
On Sun, 13 Mar 2005, Brian van den Broek wrote: > jrlen balane said unto the world upon 2005-03-13 19:37: > > so for example, i am creating a text file with file.write() > > > > how am i going to make the file a tab-delimited file??? any > > parameters needed??? > > > > >>> record1 = ['Foo', 'B

Re: [Tutor] creating a tab delimited filename

2005-03-13 Thread Brian van den Broek
jrlen balane said unto the world upon 2005-03-13 19:37: so for example, i am creating a text file with file.write() how am i going to make the file a tab-delimited file??? any parameters needed??? >>> record1 = ['Foo', 'Bar', 'Baz'] >>> record2 = ['Ham', 'Spam', 'Eggs'] >>> records = [record1, reco

Re: [Tutor] creating a tab delimited filename

2005-03-13 Thread jrlen balane
specifically, I want to write an array in to a text file, how am i going to make the file a tab-delimited file??? On Mon, 14 Mar 2005 08:37:35 +0800, jrlen balane <[EMAIL PROTECTED]> wrote: > so for example, i am creating a text file with > file.write() > > how am i going to make the file a tab-

Re: [Tutor] creating a tab delimited filename

2005-03-13 Thread jrlen balane
so for example, i am creating a text file with file.write() how am i going to make the file a tab-delimited file??? any parameters needed??? On Sun, 13 Mar 2005 15:59:46 -0800 (PST), Danny Yoo <[EMAIL PROTECTED]> wrote: > > > On Sun, 13 Mar 2005, jrlen balane wrote: > > > what does a tab del

Re: [Tutor] creating a tab delimited filename

2005-03-13 Thread Danny Yoo
On Sun, 13 Mar 2005, jrlen balane wrote: > what does a tab delimited filename mean? how am i going to make this? > also how does it differs from space delimited, csv, and others? Hello, As Kent mentioned, you probably mean "tab delimited file", which means a file whose lines are split up into

Re: [Tutor] Terminology WAS Whats so good about OOP ?

2005-03-13 Thread Danny Yoo
> > > > Where I come from, the output of a function is determined by the input > > to the function. > > Well, actually, your being upset at that is the exact point of > functional programming languages: in functional programming, the output > of a function is determined by its input, and *

RE: [Tutor] Newbie in Python (fwd)

2005-03-13 Thread Danny Yoo
-- Forwarded message -- Date: Sun, 13 Mar 2005 21:58:09 +1100 From: oscar ng <[EMAIL PROTECTED]> To: 'Danny Yoo' <[EMAIL PROTECTED]> Subject: RE: [Tutor] Newbie in Python Hi Danny, Thanks for the reply..i wasn't sure how this works so I am glad there is someone that might be abl

Re: [Tutor] Terminology WAS Whats so good about OOP ?

2005-03-13 Thread Max Noel
On Mar 13, 2005, at 18:38, Brian van den Broek wrote: Thanks for the explanation, Sean. The reference to grammatical theory here does seem to make sense. But, relying on correspondence between the technical terms in programming/comp. sci. and other fields with similar terminology can get in the

[Tutor] Terminology WAS Whats so good about OOP ?

2005-03-13 Thread Brian van den Broek
Sean Perry said unto the world upon 2005-03-13 02:49: Brian van den Broek wrote: 1) Namespace issues With procedural (or imperative -- don't know which is the right terms for non-OOP code which employs functions) code, you can have issues caused by namespaces. Just yesterday, someone on the main py

Re: [Tutor] creating a tab delimited filename

2005-03-13 Thread Kent Johnson
jrlen balane wrote: what does a tab delimited filename mean? how am i going to make this? also how does it differs from space delimited, csv, and others? I think you probably mean "tab-delimited file", not "filename". A tab-delimited file is similar to a space-delimited file. It is typically a rec

Re: [Tutor] Clear the text in an entry widget

2005-03-13 Thread David Holland
Thanks John, That works, the problem was that I had written self.answer_ent.grid.delete(0.0, END) However when I replaced the 0.0 with a 0, it worked fine. At least I found a work around but your idea is much more elegant. David --- John Fouhy <[EMAIL PROTECTED]> wrote: > David Holland wrote: >

[Tutor] Clear the text in an entry widget

2005-03-13 Thread David Holland
I have written a simple test your maths program. There is just one question, how do you clear the text in a tkinter widget ? The only way that I could do it was to create a function to create the entry widget and then have it re-created. Is there a better way. This is the way I did :- def cr

[Tutor] creating a tab delimited filename

2005-03-13 Thread jrlen balane
what does a tab delimited filename mean? how am i going to make this? also how does it differs from space delimited, csv, and others? can't really find an article that could put me in the right direction so i posted here. thanks in advance. ___ Tutor ma

Re: [Tutor] help

2005-03-13 Thread R. Alan Monroe
> ok i have learned that on the python shell or new window you can type in..print "hello world"...and the output is ..'hello world'.. or you can > put in anything realy and it say it back to you.is this a program or what Yep, that's a program. Just an ultra, ultra-simple one.

Re: [Tutor] help

2005-03-13 Thread Alan Gauld
> ok i have learned that on the python shell or new window you can type > in..>>>print "hello world"...and the output is ..'hello world'.. or you can > put in anything realy and it say it back to you.is this a program or what Yes it is a program. And believe it or not the PC processor

Re: [Tutor] help

2005-03-13 Thread Kent Johnson
[EMAIL PROTECTED] wrote: * ok i have learned that on the python shell or new window you can type in..>>>print "hello world"...and the output is ..'hello world'.. or you can put in anything realy and it say it back to you.is this a program or what and what is the purpose of this can yo

[Tutor] help

2005-03-13 Thread Jeff420harris00
   ok i have learned that on the python shell or new window you can type in..>>>print "hello world"...and the output is ..'hello world'.. or you can put in anything realy and it say it back to you.is this a program or what and what is the purpose of this can you realy use this for any thi