Re: [Tutor] Returning multiple objects from a function

2012-07-03 Thread Steven D'Aprano
On Tue, Jul 03, 2012 at 07:45:53PM -0700, Alexander Q. wrote: > -Alex > > P.S. Let me know if this message is sent incorrectly (I scrolled down to > the bottom of the text box to type this, as opposed to writing the message > at the top of the text box. I am guessing this is what is meant by > "t

Re: [Tutor] Returning multiple objects from a function

2012-07-03 Thread Alexander Q.
On Mon, Jul 2, 2012 at 8:56 PM, Dave Angel wrote: > On 07/02/2012 10:23 PM, Alexander Q. wrote: > > I understand the basics of tuples, but that formulation returned the > > following error: > > > > Traceback (most recent call last): > > File "C:\Users\Owner\Desktop\MIT\Sets\Set3.py", line 34, i

Re: [Tutor] how contact the administrator of PythonTutor?

2012-07-03 Thread Alan Gauld
On 03/07/12 20:43, Tamar Osher wrote: How do I contact the administrator of PythonTutor? You just have. But to be honest we don't do much administering. Its mostly self-service! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscr

Re: [Tutor] how contact the administrator of PythonTutor?

2012-07-03 Thread Emile van Sebille
On 7/3/2012 12:43 PM Tamar Osher said... How do I contact the administrator of PythonTutor? One should respond shortly. Most admin related tasks can be self administered at http://mail.python.org/mailman/listlinfo/tutor/ Emile ___ Tutor maillist

[Tutor] how contact the administrator of PythonTutor?

2012-07-03 Thread Tamar Osher
How do I contact the administrator of PythonTutor? My email address is emeraldoff...@hotmail.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.py

Re: [Tutor] Simple text file processing using fileinput module."Grabbing successive lines" failure

2012-07-03 Thread Flynn, Stephen (L & P - IT)
Hi Peter, > As you already learned the csv module is the best tool to address your > problem. Yup - it's almost going to make my little coding exercise trivial. :) > However, I'd like to show a generic way to get an extra item in a for- > loop. [snip] > Here's a self-contained example: > > >>

Re: [Tutor] Simple text file processing using fileinput module. "Grabbing successive lines" failure

2012-07-03 Thread Peter Otten
Flynn, Stephen (L & P - IT) wrote: > Tutors, > > Whilst having a play around with reading in textfiles and reformatting > them I tried to write a python 3.2 script to read a CSV file, looking for > any records which were short (indicating that the data may well contain an > embedded CR/LF. I've a

Re: [Tutor] Simple text file processing using fileinput module. "Grabbing successive lines" failure

2012-07-03 Thread Flynn, Stephen (L & P - IT)
> On 02/07/12 18:39, David Rock wrote: > > > Essentially, your problem isn't with using fileinput, it's with how you > > handle each line that comes in. > > The immediate problem is with mis-using fileinput. > But once you solve that you then have to deal with the > other issues David raises. >

Re: [Tutor] Returning multiple objects from a function

2012-07-03 Thread Walter Prins
Hi On 3 July 2012 03:23, Alexander Q. wrote: > > Traceback (most recent call last): > File "C:\Users\Owner\Desktop\MIT\Sets\Set3.py", line 34, in > list4 = tuplesresult[1] > TypeError: 'NoneType' object is not subscriptable Ok as a bit of clarification: When you have a function that doesn