[Python-Dev] PEP 484
Mike Kozulya
mikekozulya at kipt.kharkov.ua
Mon May 25 10:02:42 CEST 2015
More information about the Python-Dev mailing list
Mon May 25 10:02:42 CEST 2015
- Previous message (by thread): [Python-Dev] PEP 485: math.isclose()
- Next message (by thread): [Python-Dev] PEP 484
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
May I suggest to eliminate "->" in function definition?
def function1 (variable1: variable1_type, variable2:
variable2_type): function1_type
return str2function1_type(str(variable1)+str(' ')+str(variable2))
OR
def function1: function1_type (variable1: variable1_type,
variable2: variable2_type):
return str2function1_type(str(variable1)+str(' ')+str(variable2))
both look a bit simpler than
def function1 (variable1: variable1_type, variable2:
variable2_type) -> function1_type:
return str2function1_type(str(variable1)+str(' ')+str(variable2))
Are there any convincing reasons to introduce syntactic sugar?
Yours Mike Kozulya
- Previous message (by thread): [Python-Dev] PEP 485: math.isclose()
- Next message (by thread): [Python-Dev] PEP 484
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list