Opened 15 years ago

Closed 15 years ago

#516 closed defect (fixed)

Inequality yields traceback

Reported by: sascha_silbe Owned by: rwh
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Calculate Version: Git as of bugdate
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed


Using inequality (!=, Boolean) will yield the following traceback:

1236690580.130710 DEBUG Calculate: process(): parsing u'1!=0', label: u
1236690580.138846 DEBUG root: Parsing preprocessed equation: u'1!=0'
Traceback (most recent call last):

File "/home/sugar/sugar-jhbuild/install/share/sugar/activities/Calculate.activity/", line 70, in <lambda>

[3, 3, 3, _('Enter'), self.col_gray1, lambda w: self._parent.process()],

File "/home/sugar/sugar-jhbuild/install/share/sugar/activities/Calculate.activity/", line 437, in process

res = self.parser.evaluate(tree)

File "/home/sugar/sugar-jhbuild/install/share/sugar/activities/Calculate.activity/", line 586, in evaluate

ret = self._process_node(eqn.body, state)

File "/home/sugar/sugar-jhbuild/install/share/sugar/activities/Calculate.activity/", line 401, in _process_node

func = self.CMPOP_MAP[type(node.ops[0])]

KeyError: <class '_ast.NotEq'>

When using Return (keyboard), there's no visual indication at all (i.e. it's as if Return had not been pressed). When using the Enter button, it's similar, though focus will change normally.

Change History (2)

comment:1 Changed 15 years ago by wadeb

  • Owner changed from wadeb to rwh
  • Status changed from new to assigned

comment:2 Changed 15 years ago by rwh

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

Fixed in git.

Note: See TracTickets for help on using tickets.