question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RFC] Python3 Timeline

See original GitHub issue

We plan to do some improvements to the IR in this release cycle, and one such question that comes up is the dependency on python version. Up until now, TVM has always been compatible to both python2 and python3. However, there are language features in python3 that we like, in particular:

  • Type annotations like def myfunc(x:int) -> int introduced python3.5
  • Class type annotations that decorate fields are introduced python3.6

Introducing these type annotations to the code will make the program cleaner, but that also means the code will not be python2 compatible. If we introduce class type annotation, we can only use python3.6. One of the major benefits is that adopting type annotation allows the introduction of typed DSLs

Some of the options are:

  • Keep support python2
  • For a new set of features, require python3.5+
  • Enforce python3.6

For background, currently, ubuntu support(14.04 python3.4, 16.04 python3.5, 18.04 python3.6). Most packages plan to stop supporting python2 on 2019

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
nhynescommented, Aug 14, 2018

+1 for python3.6

In terms of package support, the ones TVM requires (numpy and decorator) already support 3.7. Even pypy nightly has 3.6 support!

also f-strings are pretty okay 😃

1reaction
FrozenGenecommented, Aug 16, 2018

+1 For a new set of features, require python3.5+. Enforce python3.6 is too aggressive. Many Linux distro are Python 3.5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[RFC] Python3 Timeline · Issue #1602 · apache/tvm
We plan to do some improvements to the IR in this release cycle, and one such question that comes up is the dependency...
Read more >
[gentoo-dev] [RFC] Timeline for Python 3.9 switch ...
5 ; 6, According to the upstream release schedule [1], the last bugfix release ; 7, is planned for May. Afterwards, upstream will...
Read more >
Python3 requirement timeline - pre-RFC
cross posting https://github.com/dmlc/tvm/issues/1602.
Read more >
subject:"\[gentoo\-dev\] \[RFC\] Timeline for Python 3.9 switch and ...
On Thu, Feb 18, 2021 at 3:45 PM Michał Górny wrote: > > Hi, > > I'd like to discuss a rough timeline...
Read more >
[RFC-60] Support python 3 and python 2.7 simultaneously - Jira
In the current timeline python 2.7 will no longer receive anything ... This RFC proposes that we start to modify the stack code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found