#5537: [with patch, not ready for review] bug in __cmp__ in 
permgroup_element.pyx
--------------------------+-------------------------------------------------
 Reporter:  jhpalmieri    |       Owner:  joyner    
     Type:  defect        |      Status:  new       
 Priority:  major         |   Milestone:  sage-3.4.2
Component:  group_theory  |    Keywords:            
--------------------------+-------------------------------------------------
 From [http://groups.google.com/group/sage-
 support/browse_frm/thread/5dcc22b42a7227d4 sage-support]:
 {{{
 sage: h = PermutationGroupElement('(1,3,2)')
 sage: k = PermutationGroupElement('(1,2,3),(4,5)')
 sage: h
 (1,3,2)
 sage: k^2
 (1,3,2)
 sage: k^2 == h, h == k^2
 (False, True)
 }}}
 Clearly these comparisons should return the same thing. robertwb pointed
 out in the thread that, especially since the parents are not explicitly
 defined here, they should both return True.

 I'll post a patch, but I don't know much about this code, and I don't want
 to slow things down too much.  If anyone else has a faster way, please
 produce a new patch.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5537>
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