[Tutor] File I/O help

2009-07-22 Thread Chris Castillo
*I'm supposed to be reading in names a grades from a text file like so: * Chris 100 89 76 0 Dave 56 45 30 23 10 0 Sara 55 76 78 60 0 *the 0 indicates that's the end of the student's grades and not an actual 0 number grade for the student. This is what my code looks like so far:* from myFunctions

[Tutor] Option parser tools

2009-07-22 Thread Todd Matsumoto
Hello Tutors, I'm building a script that now needs a command line interface. I'm aware of optparse, but I'm wondering if there are any other tools that may be better for building the interface. Cheers, T -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http:

[Tutor] mnemonics to better learn Python

2009-07-22 Thread David
Dear List, in order to memorize which Python sequences are mutable or immutable, I focused on the SHAPE of the brackets that are associated with each type of sequence. For instance, a *list* is characterised by square brackets, []. My mnemonic device to memorize that lists are mutable is this: "t

Re: [Tutor] how to fill zero value and join two column

2009-07-22 Thread Alan Gauld
wrote I have two text file, having entries as fileA 38 ALA H = 8.29 N = 120.62 CA = 54.33 HA = 4.04 C = 178.95 8 ALA H = 7.85 N = 123.95 CA = 54.67 HA = C = fileB 8 ALA helix (helix_alpha, helix1) 21 ALA helix (helix_alpha, helix2) ... those atoms which doesnot have nay value in fileA. so t

Re: [Tutor] xlwt & xlrd: can I refactor this code better?

2009-07-22 Thread Alan Gauld
"Albert-Jan Roskam" wrote Most functions have many arguments - isn't that called 'tight coupling'? No. In fact too few parameters (arguments are what you pass in, parameters are what you specify in the definition) often wind up relying on global variables to share data - now THAT is tight cou

Re: [Tutor] Bouncing mail

2009-07-22 Thread Wayne
On Wed, Jul 22, 2009 at 3:33 PM, Sander Sweers wrote: > 2009/7/22 Dave Angel : > > Anyone else seeing these? > > Unfortunately yes. Very annoying... :( Yep, and not the only ones I've seen ___ Tutor maillist - Tutor@python.org http://mail.python.org/

Re: [Tutor] demo/turtle

2009-07-22 Thread Gregor Lingl
roberto schrieb: On Wed, Jul 22, 2009 at 7:06 PM, Alan Gauld wrote: "roberto" wrote i'd like to download the demo/turtle directory but i could not find the correct link; i need it to run the exampled cited in http://docs.python.org/library/turtle.html can you tell me where to find

Re: [Tutor] Bouncing mail

2009-07-22 Thread Sander Sweers
2009/7/22 Dave Angel : > Anyone else seeing these? Unfortunately yes. Very annoying... :( Greets Sander ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] xlwt & xlrd: can I refactor this code better?

2009-07-22 Thread Albert-Jan Roskam
Hi, A while ago I wrote a program to merge xls files. Now I refactored it because before, it was one big chunk of spaghetti code and I wanted to add some functionality. The code below works, but I have the feeling that it could still be simplified. Most functions have many arguments - isn't th

[Tutor] Bouncing mail

2009-07-22 Thread Dave Angel
Geneviève DIAGORN wrote: Bonjour, Je suis absente jusqu'au 23/07 inclus. Je prendrai connaissance de votre mail vendredi. En cas d'urgence Soprane, contacter Benoît Tottereau ou William Dibas. Cordialement. Geneviève If you must use an "out of office" auto-reply, then unsubscribe to the ma

Re: [Tutor] demo/turtle

2009-07-22 Thread Dave Angel
roberto wrote: On Wed, Jul 22, 2009 at 7:06 PM, Alan Gauld wrote: "roberto" wrote i'd like to download the demo/turtle directory but i could not find the correct link; i need it to run the exampled cited in http://docs.python.org/library/turtle.html can you tell me where to find it ?

Re: [Tutor] demo/turtle

2009-07-22 Thread roberto
On Wed, Jul 22, 2009 at 7:06 PM, Alan Gauld wrote: > > "roberto" wrote >> >> i'd like to download the demo/turtle directory but i could not find >> the correct link; >> >> i need it to run the exampled cited in >> http://docs.python.org/library/turtle.html >> >> can you tell me where to find it ?

Re: [Tutor] code structure terminology and advice

2009-07-22 Thread Che M
> To: tutor@python.org > From: alan.ga...@btinternet.com > Date: Wed, 22 Jul 2009 08:46:04 +0100 > Subject: Re: [Tutor] code structure terminology and advice > > > "Che M" wrote > > You pretty much answered your own question. > > The ultimate answer depends on a few other contextual issues

[Tutor] how to fill zero value and join two column

2009-07-22 Thread amrita
Hi, I have two text file, having entries as fileA 33 ALA H = 7.57 N = 121.52 CA = 55.58 HA = 3.89 C = 179.24 38 ALA H = 8.29 N = 120.62 CA = 54.33 HA = 4.04 C = 178.95 8 ALA H = 7.85 N = 123.95 CA = 54.67 HA = C = fileB 8 ALA helix (helix_alpha, helix1) 21 ALA helix (helix_alpha, helix2) 23 A

Re: [Tutor] demo/turtle

2009-07-22 Thread Alan Gauld
"roberto" wrote i'd like to download the demo/turtle directory but i could not find the correct link; i need it to run the exampled cited in http://docs.python.org/library/turtle.html can you tell me where to find it ? my version is 2.6.2 I believe the new turtle module should be installe

[Tutor] demo/turtle

2009-07-22 Thread roberto
hello i'd like to download the demo/turtle directory but i could not find the correct link; i need it to run the exampled cited in http://docs.python.org/library/turtle.html can you tell me where to find it ? my version is 2.6.2 thank you very much -- roberto ___

Re: [Tutor] Question from a newbie

2009-07-22 Thread John
On Tuesday 21 July 2009 11:12:23 am Deb wrote: > My son suggested I play around with Python. I was wondering if anybody has > any real life applications? It appears to be able to do quite a lot, but > is anybody really doing it with Python? I am very curious about this > language. I used to be a

[Tutor] Michael Knowles/NONFS/USDAFS is out of the office.

2009-07-22 Thread Michael Knowles
I will be out of the office starting 07/22/2009 and will not return until 07/27/2009. I am out of the office and will respond to your message when I return on Monday, 30 Sep. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listi

Re: [Tutor] code structure terminology and advice

2009-07-22 Thread Glen Zangirolami
Che, You should check out the python styling guide here. It give examples about how to write python code. PEP 8 -- Style Guide for Python Code Hope this helps! ___ Tutor maillist - Tutor@python.org http://mai

Re: [Tutor] Question from a newbie

2009-07-22 Thread Glen Zangirolami
Deb, For starters most of the Google enterprise runs on python. Google App Engin e is for developers to develop web applications on Google There are many applications ranging from web frameworks to math modules. Web frameworks: Django

Re: [Tutor] code structure terminology and advice

2009-07-22 Thread Alan Gauld
"Che M" wrote You pretty much answered your own question. The ultimate answer depends on a few other contextual issues. Q1) Generally, what is the best structure for when there are a number of steps/actions that need to be taken? A sequence! :-) Q2) Is there a term/some jargon in prog