On Wed, Oct 31, 2012 at 12:12:14AM -0700, Andrew Mathas wrote:
>    As a follow-up, since Nicolas suggested that what I was proposing looked
>    more like options for arbitrary sage objects, so I experimented with
>    adding my options method to SageObject.

Cool

>    Even though SageObject is implemented in cython, from the few
>    quick checks that I made, my generic options code seemed to well
>    for arbitrary sage objects.

Have you tried for Cython (aka extension type) subclasses of
SageObject, like e.g. Integer?

    sage: x = 1
    sage: x.__class__
    <type 'sage.rings.integer.Integer'>
    sage: x.__class__.foo = lambda self: 1
    ------------------------------------------------------------
    Traceback (most recent call last):
    ...
    TypeError: can't set attributes of built-in/extension type 
'sage.rings.integer.Integer'

Cheers,
                                Nicolas
--
Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net>
http://Nicolas.Thiery.name/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to