#5242: [with patch, needs review] generic_power can now handle semi-groups
---------------------------+------------------------------------------------
 Reporter:  hivert         |        Owner:  hivert  
     Type:  enhancement    |       Status:  assigned
 Priority:  major          |    Milestone:  sage-3.3
Component:  algebra        |   Resolution:          
 Keywords:  generic power  |  
---------------------------+------------------------------------------------
Comment (by cremona):

 I would prefer not to have implicit casting of general types to booleans.
 Can we not have "if n==0" or "if n.is_zero()" instead of "if not n", and
 similar?  Remember that Sage code is all visible to users, so we should
 avoid obscure programming idioms.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5242#comment:5>
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