#4536: [with patch, needs review] Various number field order and ideal utilities
-------------------------------------------+--------------------------------
 Reporter:  cremona                        |        Owner:  was       
     Type:  enhancement                    |       Status:  new       
 Priority:  major                          |    Milestone:  sage-3.2.1
Component:  number theory                  |   Resolution:            
 Keywords:  number fields, orders, ideals  |  
-------------------------------------------+--------------------------------
Comment (by cremona):

 Replying to [comment:1 mhansen]:
 > Hi John,
 >
 > Just one quick comment. Is there a reason you are manually doing the
 caching instead of using the cached_method decorator in
 sage/misc/cachefunc.py?  I think the result is a bit cleaner.

 Quick answer: it never occurred to me to do it any other way!  But isn't
 it completely standard in Sage that when an object has a property (such as
 the norm for an ideal) then one computes it the first time and caches it
 so that further requests for the property used the cached value?  This is
 surely different from caching values of a function.

 >
 > Also, you don't need to use backslashes to continue lines if it occurs
 with in parens or brackets because Python knows that they need to be
 closed.

 OK -- I'll remember that for next time (and if I get to revising this
 patch I'll remove them).

 Thanks

 >
 > --Mike

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4536#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to