Hi all,
+1
Python 3.4 Is too much obsolete to continue support
Il dom 16 giu 2019, 06:45 Ivan Kanakarakis <ivan.kanak at gmail.com> ha
scritto:
Hello all,
Looking into this, I see that
* python 3.4 is EOL since March 18, 2019
The oldest python version we should support is python 3.5. Python 3.5
is the default python on many systems, including Debian, which a
platform we want to support.
* function annotations are supported since python 3.0
This is the basis for type hints in function definitions.
* the typing module is supported since python 3.5
The typing module introduced official support for all types supported
in python, as well as things like the "Any" type.
* type hinting was introduced officially in python 3.5
Using function annotations and the typing module, one can now have
type hinting in function definitions.
* variable annotations were introduced in python 3.6
Same story as with function annotations; by allowing variable
annotations and having the typing module, we can now have type hints
for variable definitions.
References:
https://www.python.org/dev/peps/pep-0429/ -- PEP 429 -- Python 3.4
Release Schedule
https://www.python.org/dev/peps/pep-3107/ -- PEP 3107 -- Function
Annotations
https://devguide.python.org/#status-of-python-branches -- Status of
Python branches
https://docs.python.org/3/library/typing.html -- typing -- Support for
type hints
https://www.python.org/dev/peps/pep-0483/ -- PEP 483 -- The Theory of
Type Hints
https://www.python.org/dev/peps/pep-0484/ -- PEP 484 -- Type Hints
https://www.python.org/dev/peps/pep-0526/ -- PEP 526 -- Syntax for
Variable Annotations
+ + + + +
This means we can safely drop support for python 3.4 and have python
3.5 as the minimum version we support from now on.
Python 3.5 supports type hints in function definitions only; it does
not support type hints for variables.
This is supported in python 3.5 -- type hints as part of the function
definition
```
def double(x: int): # function annotation with a type
value = 2 * x
return value
```
This is supported only in python 3.6 -- type hints as part of variable
definitions
```
def double(x: int):
value: int = 2 * x # variable annotation with a type
return value
```
--
Ivan c00kiemon5ter Kanakarakis >:3
_______________________________________________
Satosa-dev mailing list
Satosa-dev at lists.sunet.se
https://lists.sunet.se/listinfo/satosa-dev
--
------------------------------------------------------------------------------------------------------------------
Il banner è generato automaticamente dal servizio di posta elettronica
dell'Università della Calabria
<http://www.unical.it/5x1000>