Skip to content

[RFC][DISCUSS] Python3 Timeline of 2019 #2715

@tqchen

Description

@tqchen

It has been half a year since our last discussion #1602

Many projects officially deprecate python2 starting 2019. I would like to open this RFC again to see the community's opinion on this.

As per the previous discussion, embracing python3 allows us to make use of new features such as type annotation that enables better DSL, and makes cleaner code. It also makes us consistent with the rest of the python eco-system. Let us discuss two things:

When should the move happen

Such a big change will likely need to happen in a major release

  • Do it now in the 0.6 release cycle since 0.5 has been released in 2019
    • We need to send out early notifications to the user that this is happening and have clear error messages
  • Do it in the 0.7 release cycle after 0.6 release

Which minimum version of python3 to depend on

  • python3.5 This is the safest choice as suggested by many in the previous discussion
  • python3.6 More features, type class support(annotate class members), although not strictly necessary in all places

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions