Re: tuple syntax ',' (ending in comma?)

2006-04-05 Thread Lawrence D'Oliveiro
In article [EMAIL PROTECTED], Michael Yanowitz [EMAIL PROTECTED] wrote: I am confused by the syntax for tuples. ... The way I fixed this error was I added an extra , (comma) to the tuple: thread.start_new_thread(read_data_thread, (strDataFilename,)) I am just confused by the syntax. I am

Re: tuple syntax ',' (ending in comma?)

2006-04-05 Thread Steven D'Aprano
On Wed, 05 Apr 2006 08:17:07 +1000, Ben Finney wrote: Michael Yanowitz [EMAIL PROTECTED] writes: I am still relatively new to Python. I am confused by the syntax for tuples. Well, it's reassuring to know that this is still as confusing for newcomers now as it was when I started. With

tuple syntax ',' (ending in comma?)

2006-04-04 Thread Michael Yanowitz
Hello: I am still relatively new to Python. I am confused by the syntax for tuples. I had: thread.start_new_thread(read_data_thread, (strDataFilename)) and got back the following error: File scene.py, line 256, in readData thread.start_new_thread(read_data_thread, (strDataFilename))

Re: tuple syntax ',' (ending in comma?)

2006-04-04 Thread Georg Brandl
Michael Yanowitz wrote: Hello: I am still relatively new to Python. I am confused by the syntax for tuples. I had: thread.start_new_thread(read_data_thread, (strDataFilename)) and got back the following error: File scene.py, line 256, in readData

Re: tuple syntax ',' (ending in comma?)

2006-04-04 Thread John Salerno
Michael Yanowitz wrote: I am just confused by the syntax. I am used to a comma meaning that there should be another parameter after the comma and if no additional parameter the comma would not be necessary. But isn't it incorrect to think in terms of 'parameters' when referring to tuples?

Re: tuple syntax ',' (ending in comma?)

2006-04-04 Thread Ben Finney
Michael Yanowitz [EMAIL PROTECTED] writes: I am still relatively new to Python. I am confused by the syntax for tuples. Well, it's reassuring to know that this is still as confusing for newcomers now as it was when I started. File scene.py, line 256, in readData