Skip to content

Meta-ticket: Remove Python 2 support for Sage 9.2; upgrades enabled by the removal #29141

@mkoeppe

Description

@mkoeppe

From https://groups.google.com/forum/#!topic/sage-devel/vYlbnAwKATM "drop python2 compatibility in 9.1" (thread Jan 5-22, 2020).

Removal of Python 2 support in Sage 9.2 has been announced at https://wiki.sagemath.org/Python3-Switch and https://wiki.sagemath.org/ReleaseTours/sage-9.1

Removal tickets:

Upgrade tickets:

Please check that upgraded packages are compatible with Python >= 3.6 (and note this on the upgrade ticket) because we may wish to support Python 3.6 venv (#29033).

Other:

  • compatibility with python 3.8... needs details
    • "at this point the major issues are python 3.8 and ipython 7, and I don't see how one could support several versions of them without forking hundreds of doctests. Both updates require multi-thousand-lines patches, due to changes in dict sorting and hashes."
  • remove src/sage/cpython/_py2_random.py

Reference: Tickets that kept Python 2 compatibility but introduced a performance penalty for Python 2:

See also:

CC: @fchapoton @embray @jdemeyer @slel @antonio-rojas @kiwifb @timokau @jhpalmieri @tscrim @isuruf @nbruin @orlitzky @vbraun @dimpase @videlec @kliem

Component: python3

Keywords: sd109

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/29141

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