Opened 6 months ago

Closed 6 months ago

#26397 closed defect (fixed)

py3: allow Python 3 bytes to be multiplied by Sage Integers

Reported by: embray Owned by:
Priority: minor Milestone: sage-8.4
Component: python3 Keywords:
Cc: Merged in:
Authors: Erik Bray Reviewers: Frédéric Chapoton
Report Upstream: N/A Work issues:
Branch: 402ac35 (Commits) Commit: 402ac35585754d67c5f30bac268b3dcf7f16e335
Dependencies: Stopgaps:

Description

This already works on Python 2 with all basestring types, but needs an extra bit for Python 3 bytes. Noticed this while hacking on #24852.

Change History (4)

comment:1 Changed 6 months ago by git

  • Commit set to 402ac35585754d67c5f30bac268b3dcf7f16e335

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

402ac35py3: allow multiplication of Python 3 bytes objects by Integers

comment:2 Changed 6 months ago by embray

  • Status changed from new to needs_review

comment:3 Changed 6 months ago by chapoton

  • Reviewers set to Frédéric Chapoton
  • Status changed from needs_review to positive_review

ok

comment:4 Changed 6 months ago by vbraun

  • Branch changed from u/embray/python3/bytes-integer-mul to 402ac35585754d67c5f30bac268b3dcf7f16e335
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.