Opened 6 years ago

Closed 6 years ago

#21250 closed enhancement (fixed)

py3: handling removed attributes func_* and im_*

Reported by: Frédéric Chapoton Owned by:
Priority: major Milestone: sage-7.4
Component: python3 Keywords:
Cc: Merged in:
Authors: Frédéric Chapoton Reviewers: Jeroen Demeyer
Report Upstream: N/A Work issues:
Branch: 53ada45 (Commits, GitHub, GitLab) Commit: 53ada4539978b91c61ae2622d27ce64c8747f067
Dependencies: Stopgaps:

Status badges

Description

according to

http://python3porting.com/stdlib.html#removedmodules-section

we should no longer used the attributes func_* and im_* in py3

six provides a way to be py2/py3 compatible.

Change History (14)

comment:1 Changed 6 years ago by Frédéric Chapoton

Branch: u/chapoton/21250
Commit: c0524a494e946af350be158c48f757db17024e90

New commits:

c0524a4start handling removed attributes func_* and im_*

comment:2 Changed 6 years ago by Jeroen Demeyer

src/sage/categories/coercion_methods.pyx conflicts with #20767. Please just remove all changes to that file (or at least make sure that it doesn't conflict).

Last edited 6 years ago by Jeroen Demeyer (previous) (diff)

comment:3 Changed 6 years ago by git

Commit: c0524a494e946af350be158c48f757db17024e900e462b8b24373acbd392db57f7e775f7e87ea614

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

0e462b8start handling removed attributes func_* and im_*

comment:4 Changed 6 years ago by Frédéric Chapoton

done

comment:5 Changed 6 years ago by Frédéric Chapoton

Status: newneeds_review

comment:6 Changed 6 years ago by Jeroen Demeyer

Please don't change src/sage_setup/docbuild/ext/sage_autodoc.py. It should be treated as a file coming from upstream.

comment:7 Changed 6 years ago by git

Commit: 0e462b8b24373acbd392db57f7e775f7e87ea614248adb2d4cae7da6f472b20eaff7dff45921eecc

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

248adb2start handling removed attributes func_* and im_*

comment:8 Changed 6 years ago by Frédéric Chapoton

done

comment:9 Changed 6 years ago by Jeroen Demeyer

Reviewers: Jeroen Demeyer

positive_review if this passes doctests.

comment:10 Changed 6 years ago by git

Commit: 248adb2d4cae7da6f472b20eaff7dff45921eeccf635fba17d7146e4990b1121d978b1c12ee2dc1a

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

f635fbatrac 21250 missing future import

comment:11 Changed 6 years ago by Frédéric Chapoton

Status: needs_reviewneeds_work

sage -t src/sage/misc/rest_index_of_methods.py # 1 doctest failed

comment:12 Changed 6 years ago by git

Commit: f635fba17d7146e4990b1121d978b1c12ee2dc1a53ada4539978b91c61ae2622d27ce64c8747f067

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

53ada45start handling removed attributes func_* and im_*

comment:13 Changed 6 years ago by Frédéric Chapoton

Status: needs_workpositive_review

ok, here is a branch where I have just reverted the changes in one file. This branch passes all doctests, so I will assume that I can put it to positive review in your name.

comment:14 Changed 6 years ago by Volker Braun

Branch: u/chapoton/2125053ada4539978b91c61ae2622d27ce64c8747f067
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.