On Tue, Apr 29, 2008 at 9:07 AM, mabshoff
<[EMAIL PROTECTED]> wrote:
>
>
>
>  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.

This particular case of not preparsing in case IPython is going to do some funny
shell magic should be easy to fix (by changing IPython itself).   I've
cc'd Fernando
Perez, since it's the sort of thing he can probably fix easily in an
hour, or tell
us what to do differently.

 -- william

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to