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

py3 : bad imports and QQ(string) #24034

Closed
fchapoton opened this issue Oct 13, 2017 · 15 comments
Closed

py3 : bad imports and QQ(string) #24034

fchapoton opened this issue Oct 13, 2017 · 15 comments

Comments

@fchapoton
Copy link
Contributor

as another step

CC: @tscrim @jhpalmieri @a-andre @kiwifb

Component: python3

Author: Frédéric Chapoton

Branch/Commit: d75000d

Reviewer: Jeroen Demeyer, John Palmieri

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

@fchapoton fchapoton added this to the sage-8.1 milestone Oct 13, 2017
@fchapoton
Copy link
Contributor Author

Branch: u/chapoton/24034

@fchapoton
Copy link
Contributor Author

Commit: a6ec385

@fchapoton
Copy link
Contributor Author

New commits:

a6ec385py3: some bad imports, and QQ calls on strings

@jdemeyer
Copy link

comment:2

What's wrong with QQ(string)? Are we going to disallow that?

@fchapoton
Copy link
Contributor Author

comment:4

well, this screams (in the experimental python3 build that nobody seems to care about) that bytes is expected and str is given. I am just trying to move forward to more serious issues.

Maybe the call QQ('string') will need to be fixed, but not now and here.

@jdemeyer
Copy link

comment:5

Replying to @fchapoton:

well, this screams (in the experimental python3 build that nobody seems to care about)

Then just fix it in your experimental branch instead of an official Sage Trac ticket.

@fchapoton
Copy link
Contributor Author

comment:6

This I did for sure. But the change is so small that I assumed it would meet no objection.

@jhpalmieri
Copy link
Member

comment:8

In lie_algebras/all.py, could we change

from .import examples as lie_algebras

to

from . import examples as lie_algebras

@jhpalmieri
Copy link
Member

comment:9

Why don't other instances of QQ(str) fail? There are some for example in rings/rational.pyx.

@jhpalmieri
Copy link
Member

comment:10

I don't mind the QQ changes on this ticket, since it is not changing any doctests and not changing any functionality of Sage, just changing how a few rational numbers are initialized in the Sage code.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 13, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

d75000dtrac 24034 detail

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 13, 2017

Changed commit from a6ec385 to d75000d

@fchapoton
Copy link
Contributor Author

comment:12

Thanks.

This ticket is part of the effort to make sage start when built with python3. It turns out that one of these QQ(string) was sitting on the road. It does not pretend to fix anything else.

Ready to go, if patchbots say green ?

@jhpalmieri
Copy link
Member

Reviewer: Jeroen Demeyer, John Palmieri

@vbraun
Copy link
Member

vbraun commented Oct 21, 2017

Changed branch from u/chapoton/24034 to d75000d

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

4 participants