tuple syntax ',' (ending in comma?)

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Wed Apr 5 06:29:07 EDT 2006


In article <mailman.4062.1144156293.27775.python-list at python.org>,
 "Michael Yanowitz" <m.yanowitz at kearfott.com> 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 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.

<http://python.org/doc/2.4.2/ref/parenthesized.html>



More information about the Python-list mailing list