On Mon, 04 Mar 2013 at 02:00PM -0800, Dan Drake wrote:
> sage: preparse('len(t) = 4')
> '__tmp__=var("t"); len = symbolic_expression(Integer(4)).function(t)'
Hmm. If you try the same with one of Python's basic keywords (like
"else"), it fails because Python won't let you assign such a thin
To see what is really happening:
sage: preparse('len(t) = 4')
'__tmp__=var("t"); len = symbolic_expression(Integer(4)).function(t)'
Dan
--
--- Dan Drake
- http://math.pugetsound.edu/~ddrake
---
--
You received this message because you are subscribed to the Google Groups
"sa
On Mon, 04 Mar 2013 at 01:36PM -0800, luisfe wrote:
> {{{
> sage: t=(1,2,3)
> sage: type(t)
> tuple
> sage: len(t)
> 3
> sage: len(t)=4
> sage: t
> t
> sage: type(t)
> sage.symbolic.expression.Expression
> }}}
Looks like some of our preparsing to make symbolic stuff work nicer: try this:
f(t) =