Expression() does not accept constants starting with a decimal point

Issue #653 duplicate
Douglas Arnold created an issue

In version 1.6.0 one cannot use a real constant that begins with a decimal point in an in-line Expression. For example,

f = Expression('.2')

or

g = Expression('x[0] + .2')

fail. They work fine in 1.5.0.

The work-around is easy:

Expression('0.2')

works fine. But it seems like the leading 0 should not be required and a problem that it breaks formerly working code.

Comments (2)

  1. Log in to comment