Opened 8 years ago

Closed 8 years ago

#1084 closed defect (fixed)

[with patch] invalid use of ring notation gives bizarre post-preparser syntax error

Reported by: cwitty Owned by: ncalexan
Priority: minor Milestone: sage-2.8.12
Component: user interface Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

Consider this example:

sage: QQX = QQ['x']
sage: K.<x> = QQX
------------------------------------------------------------
   File "<ipython console>", line 1
     K = QQ,names=(u'x',)); (x,) = K._first_ngens(Integer(1))
                         ^
<type 'exceptions.SyntaxError'>: invalid syntax

I don't care if this actually works; but if it doesn't, it should fail with a friendlier error message. And where did the 'X' from QQX go?

Attachments (1)

1084-ncalexan-1.hg (1.2 KB) - added by ncalexan 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by ncalexan

comment:1 Changed 8 years ago by ncalexan

  • Summary changed from invalid use of ring notation gives bizarre post-preparser syntax error to [with patch] invalid use of ring notation gives bizarre post-preparser syntax error

Patch may require 1040-ncalexan-2.hg be attached first; check ticket 1040.

comment:2 Changed 8 years ago by mabshoff

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

applied to 2.8.12.rc0

Note: See TracTickets for help on using tickets.