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 = [
"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
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
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
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
>>
>> # 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,
>>>
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
"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
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
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
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
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
12 matches
Mail list logo