Opened 3 years ago

Closed 3 years ago

#27767 closed enhancement (fixed)

py3: fix regression in

Reported by: chapoton Owned by:
Priority: major Milestone: sage-8.8
Component: python3 Keywords:
Cc: vdelecroix, tscrim Merged in:
Authors: Frédéric Chapoton Reviewers: John Palmieri, Jean-Philippe Labbé
Report Upstream: N/A Work issues:
Branch: 55cbd22 (Commits, GitHub, GitLab) Commit: 55cbd22e5cf3d184d9d65f826dad926a9e1e5eac
Dependencies: Stopgaps:

Status badges

Description (last modified by chapoton)

wrong use of map from #20181

Change History (8)

comment:1 Changed 3 years ago by chapoton

  • Branch set to u/chapoton/27767
  • Commit set to 70bef8eab0fccd917360187629f1212b1680e889

New commits:

70bef8efix py3 regression in

comment:2 Changed 3 years ago by chapoton

  • Status changed from new to needs_review

comment:3 Changed 3 years ago by chapoton

  • Description modified (diff)

comment:4 Changed 3 years ago by jhpalmieri

Would this change be better? Do we want to discourage the use of map when we want to get a list as a result?

  • src/sage/rings/

    diff --git a/src/sage/rings/ b/src/sage/rings/
    index b582dd7a77..37640f5b34 100644
    a b def number_field_elements_from_algebraics(numbers, minimal=False, same_field=Fal 
    22792279        # embeds the numbers
    22802280        inter_hom = fld.hom([embedded_field.gen(0)])
    2281         nums = map(inter_hom, nums)
     2281        nums = [inter_hom(n) for n in nums]
    22832283        # get the field and homomorphism
    22842284        hom = embedded_field.hom([gen.root_as_algebraic()])

comment:5 Changed 3 years ago by git

  • Commit changed from 70bef8eab0fccd917360187629f1212b1680e889 to 55cbd22e5cf3d184d9d65f826dad926a9e1e5eac

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

55cbd22fix py3 regression in

comment:6 Changed 3 years ago by chapoton

done, thx

comment:7 Changed 3 years ago by jipilab

  • Reviewers set to John Palmieri, Jean-Philippe Labbé
  • Status changed from needs_review to positive_review

Sorry for my mistake. Thanks for detecting this.

I take this as a signal to switch to python3 to develop...

comment:8 Changed 3 years ago by vbraun

  • Branch changed from u/chapoton/27767 to 55cbd22e5cf3d184d9d65f826dad926a9e1e5eac
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.