Opened 7 years ago

Closed 7 years ago

#15734 closed defect (fixed)

<> is not Python 3 compatible

Reported by: aapitzsch Owned by:
Priority: major Milestone: sage-6.2
Component: misc Keywords: python3
Cc: Merged in:
Authors: André Apitzsch Reviewers: Jeroen Demeyer
Report Upstream: N/A Work issues:
Branch: u/aapitzsch/ticket/15734 Commit: 1e018de183311d036a23945f5839cc60e50f1ca1
Dependencies: Stopgaps:

Description

Replace <> by !=.

Change History (10)

comment:1 Changed 7 years ago by aapitzsch

  • Authors set to André Apitzsch
  • Branch set to u/aapitzsch/ticket/15734
  • Commit set to 0b286ea0aaab2e24a364d304487b6e7d1bd886cd
  • Status changed from new to needs_review

New commits:

0b286eapython3: replace deprecated <> by !=

comment:2 Changed 7 years ago by git

  • Commit changed from 0b286ea0aaab2e24a364d304487b6e7d1bd886cd to 90e394ad0e9cd23b4d4ea65da11fa5e45b4d1e39

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

90e394aMerge branch 'develop' of git://github.com/sagemath/sage into py3_ne

comment:3 Changed 7 years ago by jdemeyer

  • Status changed from needs_review to needs_work

Comparisons with None should be done using is or is not.

comment:4 Changed 7 years ago by jdemeyer

  • Component changed from PLEASE CHANGE to misc

comment:5 Changed 7 years ago by jdemeyer

Also, conditions like

if ((a==t) & (s<>0)):

should be replaced by

if a == t and s != 0:

comment:6 Changed 7 years ago by git

  • Commit changed from 90e394ad0e9cd23b4d4ea65da11fa5e45b4d1e39 to 1e018de183311d036a23945f5839cc60e50f1ca1

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

12c89cfComparison with `None` using `is` or `is not`.
1e018dereplace "&" by "and"

comment:7 Changed 7 years ago by aapitzsch

  • Status changed from needs_work to needs_review

comment:8 Changed 7 years ago by jdemeyer

  • Reviewers set to Jeroen Demeyer
  • Status changed from needs_review to positive_review

comment:9 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:10 Changed 7 years ago by vbraun

  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.