Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#4459 closed defect (duplicate)

preparser incorrectly identifies integer methods that start with e as scientific notation

Reported by: mhansen Owned by: cwitty
Priority: minor Milestone: sage-duplicate/invalid/wontfix
Component: misc Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

sage: 3.exp()
------------------------------------------------------------
   File "<ipython console>", line 1
     RealNumber('3.e')xp()
                       ^
SyntaxError: invalid syntax

sage: 3.is_square()
False

Change History (4)

comment:1 Changed 13 years ago by mhansen

  • Summary changed from preparser incorrectly identifies integer methods that start with e to preparser incorrectly identifies integer methods that start with e as scientific notation

comment:2 Changed 13 years ago by mhansen

The same thing happens for those that start with 'r':

sage: 3.rational_reconstruction()
------------------------------------------------------------
   File "<ipython console>", line 1
     3.ational_reconstruction()

comment:3 Changed 12 years ago by boothby

  • Resolution set to duplicate
  • Status changed from new to closed

Rolled into #5079

comment:4 Changed 12 years ago by mabshoff

  • Milestone changed from sage-3.4.1 to sage-duplicate/invalid/wontfix
Note: See TracTickets for help on using tickets.