On Tue, May 26, 2009 at 3:19 PM, davidp <[email protected]> wrote:
>
> Should there be a facets method?  Should self.facets be self._facets?

Yes, I think that would be much more consistent with the rest of Sage.
 That has the added bonus that s.facets? can document and give
examples of what facets are.

William

>
> sage: version()
> 'Sage Version 4.0.rc0, Release Date: 2009-05-21'
> sage: s = SimplicialComplex(4, [[1,2], [1,4]])
> sage: s.facets()
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call
> last)
>
> /home/davidp/.sage/temp/poly/15731/
> _home_davidp_math_sandpile_sage_sage_sandpile1_4_sandpile_sage_250.py
> in <module>()
>
> TypeError: 'list' object is not callable
> sage: s.facets
> [(1, 2), (1, 4)]
>
> Dave
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to