PEP 526 - var annotations and the spirit of python

MRAB python at mrabarnett.plus.com
Sun Jul 1 13:17:20 EDT 2018


On 2018-07-01 18:06, Abdur-Rahmaan Janhangeer wrote:
> was viewing pep526, so, finally, python cannot do without hinting the type
> as other languages?
> will python finally move to
> int x = 3 where int is a pre annotation?
> 
> i am not arguing it's usefulness but rather, does it fit with python?
> 
PEP 526 says that the annotation would be:

x: int = 3

It also says """It should also be emphasized that Python will remain a 
dynamically typed language, and the authors have no desire to ever make 
type hints mandatory, even by convention.""


More information about the Python-list mailing list