On Apr 29, 5:57 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 29, 2008 at 8:52 AM, mabshoff
<SNIP>
> > b) The preparser, i.e. 3.0->RealNumber(3.0): This is a more general
> > issue, i.e. people get bitten by it when using numpy/scipy regularly.
> > I am not sure what can be done here on a technical level to avpoid
> > this whole mess. Any ideas?
>
> It's 3.0 -> RealNumber('3.0')
>
> Regarding numpy/scipy the only longterm solution is to fix numpy/scipy
> to call the __float__ method instead of going boom on certain data
> types. People can also just type RealNumber = float and Integer=int,
> in the meantime, which works very well.
I know about that :), I meant generally figuring out a way to use the
Preparser in most cases, but not when handing off input to ipython for
example.
> -- William
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---