Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 preparation: integer types #16072

Closed
wluebbe mannequin opened this issue Apr 7, 2014 · 11 comments
Closed

Python 3 preparation: integer types #16072

wluebbe mannequin opened this issue Apr 7, 2014 · 11 comments

Comments

@wluebbe
Copy link
Mannequin

wluebbe mannequin commented Apr 7, 2014

Python 2 has two integer types int and long. In Python 3, int is gone and long is renamed int.

The tool 2to3 simply renames long to int.

There are 72 affected modules.

This ticket is tracked as a dependency of meta-ticket ticket:16052.

Tickets: #24221, #24225, #24227, #24244, #24247, #24248.

CC: @fchapoton @mkoeppe @tscrim

Component: python3

Reviewer: Matthias Koeppe

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

@wluebbe wluebbe mannequin added this to the sage-6.2 milestone Apr 7, 2014
@wluebbe wluebbe mannequin added c: distribution labels Apr 7, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@fchapoton
Copy link
Contributor

comment:4

one step done in #22871

@fchapoton fchapoton modified the milestones: sage-6.4, sage-8.0 Apr 25, 2017
@fchapoton
Copy link
Contributor

comment:5

more steps in #24155 and #24218

@fchapoton
Copy link
Contributor

comment:6

after which there remains

git grep -c "^[^#:]*[^_la]long(" *.py
src/sage/interfaces/fricas.py:1
src/sage/interfaces/gp.py:1
src/sage/interfaces/interface.py:2
src/sage/misc/sage_input.py:3
src/sage/rings/finite_rings/element_ext_pari.py:1
src/sage/rings/polynomial/polynomial_quotient_ring_element.py:1
src/sage/rings/quotient_ring_element.py:1

among which

src/sage/misc/sage_input.py:3

is only in doctests

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link

comment:7

Adding some tickets.

@slel
Copy link
Member

slel commented Nov 21, 2017

comment:8

Should the ticket summary say 'The Py2 type "long" is gone in Py3'
rather than 'The Py3 type "long" is gone in Py3'?

@jdemeyer

This comment has been minimized.

@jdemeyer jdemeyer changed the title Python 3 preparation: The Py3 type "long" is gone in Py3 Python 3 preparation: integer types Nov 22, 2017
@fchapoton
Copy link
Contributor

comment:10

new state of affairs on 8.2.b3

src/mac-app/tools/createDSStore/mac_alias/alias.py:2
src/sage/interfaces/fricas.py:1
src/sage/interfaces/gp.py:1
src/sage/interfaces/interface.py:1
src/sage/misc/sage_input.py:3
src/sage/rings/polynomial/polynomial_quotient_ring_element.py:1
src/sage/rings/quotient_ring_element.py:1

@fchapoton
Copy link
Contributor

comment:11

see #24559

@fchapoton
Copy link
Contributor

comment:12

shall we close this one ?

@fchapoton fchapoton removed this from the sage-8.0 milestone Aug 14, 2020
@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 14, 2020

Reviewer: Matthias Koeppe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants