sagemath/sagecell — Issue #246: Interacts and Type Coercion
Author: kramer314
Created: 2012-02-13 03:28:40+00:00
State: open
Labels: compatibility, interacts

Test Code:

```python
@interact
def _(n = input_box(default=SR(1),type=SR)):
try:
print type(n)
print n.variables()
except:
import sys
e_type, e_details, e_tb = sys.exc_info()
print e_type
print e_details
```

On sagenb, we get the following:

```

()
```

Here, we get:

```

'sage.rings.integer.Integer' object has no attribute 'variables'
```

which suggests type coercion isn't occurring (or isn't occurring correctly).