We kept the python 3.5 compatibility for the 0.6 release. This is an RFC 
propose to require python3.6 in the 0.7 release cycle.

##  3.6 Features that could Benefit the Project

There are two features which would be relevant for us `f-string` and `type 
annotation in class objects`. While f-string is more like a sugar that can be 
replaced in another way. Class object type annotation would be more critical 
for potential new features we want to develop. In particular, given the 
first-class python support goal we set, we will likely introduce more python 
DSLs that involves python AST, parsing. The following snipet gives a possible 
mock up API that parses a python object definition to define an ADT(which 
requires 3.6).

```python
@tvm.hybrid.object
class ADTObject:
   field_A : int
   field_B : float
```
## Availability
- python3.6 was released in Dec 2016(three years ago)
- ubuntu 16.04 still defaults to python 3.5, while ubuntu 18.04 supports 3.6
- There are ppas in 16.04 which could gain 3.6 support


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-tvm/issues/4957

Reply via email to