#5386: [with patch, needs review] simplicial complexes and their homology
-------------------------+--------------------------------------------------
 Reporter:  jhpalmieri   |       Owner:  jhpalmieri
     Type:  enhancement  |      Status:  new       
 Priority:  major        |   Milestone:  sage-3.4.2
Component:  misc         |    Keywords:            
-------------------------+--------------------------------------------------

Comment(by hivert):

 Hi there,

 Replying to [comment:1 was]:
 >     AttributeError: __len__ has been removed; use .cardinality() instead

 I found this one by googling through trac... This is due to #5308. See my
 comments there and on http://wiki.sagemath.org/sage-3.4.1 why we had to
 raise an error instead of issuing a deprecated warning.

 The fix is simple enough: as said in the error message to compute the
 number of {{{maximal_faces}}} you should ask
 {{{maximal_faces.cardinality()}}} which returns an arbitrary large sage
 integer and not call {{{len}}} which is specified to return a plain
 machine int.

 Cheers,

 Florent

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