Strange location for a comma

2015-09-03 Thread ast
Hello, At the end of the last line of the following program, there is a comma, I dont understand why ? Thx from cx_Freeze import setup, Executable # On appelle la fonction setup setup( name = "salut", version = "0.1", description = "Ce programme vous dit bonjour", executables = [

Re: Strange location for a comma

2015-09-03 Thread ast
"ast" a écrit dans le message de news:55e83afb$0$3157$426a7...@news.free.fr... Hello, At the end of the last line of the following program, there is a comma, I dont understand why ? Thx from cx_Freeze import setup, Executable # On appelle la fonction setup setup( name = "salut", vers

Re: Strange location for a comma

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 14:20:06 +0200, "ast" writes: >Hello, > >At the end of the last line of the following program, >there is a comma, I dont understand why ? > >Thx > > >from cx_Freeze import setup, Executable > ># On appelle la fonction setup >setup( >name = "salut", >version

Re: Strange location for a comma

2015-09-03 Thread Peter Otten
ast wrote: > > "ast" a écrit dans le message de > news:55e83afb$0$3157$426a7...@news.free.fr... >> Hello, >> At the end of the last line of the following program, >> there is a comma, I dont understand why ? >> >> Thx >> >> >> from cx_Freeze import setup, Executable >> >> # On appelle la fonctio

Re: Strange location for a comma

2015-09-03 Thread MRAB
On 2015-09-03 13:28, ast wrote: "ast" a écrit dans le message de news:55e83afb$0$3157$426a7...@news.free.fr... Hello, At the end of the last line of the following program, there is a comma, I dont understand why ? Thx from cx_Freeze import setup, Executable # On appelle la fonction setup

Fwd: Strange location for a comma

2015-09-03 Thread Vladimir Ignatov
>> >> # On appelle la fonction setup >> setup( >>name = "salut", >>version = "0.1", >>description = "Ce programme vous dit bonjour", >>executables = [Executable("salut.py")],# <--- HERE >> ) >> >> > > Ok its understood, it's a 1 element only tuple > > example: > A = 5, >>>

Re: Strange location for a comma

2015-09-03 Thread Laura Creighton
No, I am wrong. You are in the middle of a fuction definition. You are correct, that is a wierd place for a comma, though I can see doing that if you anticipate adding more arguments to the function in the near future. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Strange location for a comma

2015-09-03 Thread ast
"ast" a écrit dans le message de news:55e83afb$0$3157$426a7...@news.free.fr... Hello, At the end of the last line of the following program, there is a comma, I dont understand why ? Thx from cx_Freeze import setup, Executable # On appelle la fonction setup setup( name = "salut", vers

Re: Strange location for a comma

2015-09-03 Thread Tim Chase
On 2015-09-03 14:48, Peter Otten wrote: > The only reason I see to add an extra comma are smaller and easier > to read diffs when you make a change: While that's the primary reason I do it, it's also helpful if you have a bunch of named keyword arguments and want sort/rearrange them (usually for c

Re: Strange location for a comma

2015-09-03 Thread Nick Sarbicki
Tim, Doesn't work for the first column in SQL, but we tend to put the comma and a space before the column name. It makes it easier to move things around and (debateably) more readable. It is also very obvious when you have missed a comma this way. - Nick On Thu, 3 Sep 2015 16:14 Tim Chase wrote

Re: Strange location for a comma

2015-09-03 Thread Martin Komoň
In this case those are not tuples but rather arguments in a function call. The extra comma does not change the evaluation, my guess is that it is there for easier adding/removing arguments without having to care about trailing commas. Martin On 03/09/15 14:28, ast wrote: > > "ast" a écrit dans

Re: Strange location for a comma

2015-09-03 Thread Sven R. Kunze
On 03.09.2015 14:20, ast wrote: Hello, At the end of the last line of the following program, there is a comma, I dont understand why ? Thx from cx_Freeze import setup, Executable # On appelle la fonction setup setup( name = "salut", version = "0.1", description = "Ce programme vous d