Re: [sage-devel] Re: Deleting depreciated is_functions

2012-04-10 Thread Starx
Well, I wrote a script to delete some of the is_* functions, but it turned out to be a little more complicated of a task then I thought it would be, so this patch doesn't delete as many as I was aiming for but at least it's a start: http://trac.sagemath.org/sage_trac/ticket/12824 -Jim On Thu, Mar

Re: [sage-devel] Re: Deleting depreciated is_functions

2012-03-29 Thread Florent Hivert
Hi Simon, > On 2012-03-28, Florent Hivert wrote: > >> For parameter-less categories like Fields, I don't have a feeling for > >> whether one should teach new users to use the idiom ``X in Fields`` or > >> ``X in Fields()``. I tend to use the later mysefl. > > > > Speed could be a (not so im

Re: [sage-devel] Re: Deleting depreciated is_functions

2012-03-29 Thread David Roe
I think the idea was that if you cared about speed you would just use Fields(), but that it wasn't an important point in discussing whether QQ in Fields should be valid. David On Thu, Mar 29, 2012 at 09:06, Simon King wrote: > Hi Florent! > > On 2012-03-28, Florent Hivert wrote: > >> For parame

Re: [sage-devel] Re: Deleting depreciated is_functions

2012-03-28 Thread Florent Hivert
On Wed, Mar 28, 2012 at 11:27:24PM +0200, Nicolas M. Thiery wrote: > On Wed, Mar 28, 2012 at 05:39:51AM -0700, David Kohel wrote: > > Doing some magic to make 'QQ^2 in VectorSpaces' work > > might just do injustice to first-time users, since it defers > > the realization that they just made a typo

Re: [sage-devel] Re: Deleting depreciated is_functions

2012-03-28 Thread Nicolas M. Thiery
On Wed, Mar 28, 2012 at 05:39:51AM -0700, David Kohel wrote: > Doing some magic to make 'QQ^2 in VectorSpaces' work > might just do injustice to first-time users, since it defers > the realization that they just made a typo -- unless > VectorSpaces is no longer a Python class: > > sage: VectorSpac

Re: [sage-devel] Re: Deleting depreciated is_functions

2012-03-28 Thread Florent Hivert
Hi Keshav, > Incidentally, `ZZ in Fields` works just fine:: > > sage: 5/1 in ZZ > True > sage: 5/1 in ZZ() > > --- > TypeError Traceback (most recent call > last) >