Opened 9 years ago

Closed 9 years ago

#10274 closed defect (fixed)

Example coercion code is broken

Reported by: was Owned by: robertwb
Priority: minor Milestone: sage-4.6.1
Component: coercion Keywords:
Cc: Merged in: sage-4.6.1.alpha2
Authors: Robert Bradshaw Reviewers: William Stein
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

I noticed that the example code at http://sagemath.org/doc/reference/coercion.html is actually broken -- no surprise, since not tested = broken :-(. The fix is easy:

x = x._x

should be

x = x._value

Attachments (1)

10274-coercion-docs.patch (767 bytes) - added by robertwb 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by robertwb

comment:1 Changed 9 years ago by was

  • Status changed from new to needs_review

comment:2 Changed 9 years ago by was

  • Status changed from needs_review to positive_review

comment:3 Changed 9 years ago by jdemeyer

  • Authors set to Robert Bradshaw
  • Reviewers set to William Stein

comment:4 Changed 9 years ago by jdemeyer

  • Merged in set to sage-4.6.1.alpha2
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.