Le dimanche 16 octobre 2011 à 23:58 +0200, Florent Hivert a écrit :
> Which version of sage are you using ?

I use the 4.7.1 with combinat...

nicolas@lancelot:/opt/sage/devel/sage-combinat$ hg qtop
trac_6812_integer_vectors_mod_permgroup.patch
nicolas@lancelot:/opt/sage/devel/sage-combinat$ sage -br

----------------------------------------------------------
sage: Building and installing modified Sage library files.
...
...
----------------------------------------------------------------------
| Sage Version 4.7.1, Release Date: 2011-08-11                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
Loading Sage library. Current Mercurial branch is: combinat
sage: class Myparent(Parent):
....:     class Element(ClonableIntArray):
....:         def check(self):
....:             pass
....:         
sage: B = Myparent()
sage: B.element_class(B, [0,0,0,0])
[0, 0, 0, 0]
sage: B([0,0,0,0])
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call
last)

/opt/sage/devel/sage-combinat/<ipython console> in <module>()

/opt/sage/local/lib/python2.6/site-packages/sage/structure/parent.so in
sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7149)()

/opt/sage/local/lib/python2.6/site-packages/sage/structure/coerce_maps.so in 
sage.structure.coerce_maps.DefaultConvertMap_unique._call_ 
(sage/structure/coerce_maps.c:3254)()

/opt/sage/local/lib/python2.6/site-packages/sage/structure/coerce_maps.so in 
sage.structure.coerce_maps.DefaultConvertMap_unique._call_ 
(sage/structure/coerce_maps.c:3157)()

/opt/sage/local/lib/python2.6/site-packages/sage/categories/sets_cat.pyc
in _element_constructor_from_element_class(self, *args, **keywords)
    307                 17
    308             """
--> 309             return self.element_class(parent = self, *args,
**keywords)
    310 
    311         def is_parent_of(self, element):

/opt/sage/local/lib/python2.6/site-packages/sage/structure/list_clone.so
in sage.structure.list_clone.ClonableIntArray.__init__
(sage/structure/list_clone.c:6591)()

TypeError: __init__() takes at least 2 positional arguments (1 given)
sage: 

I am surprised we don't have the same error returned. Even when I unapply all 
patches, I still have the same error about the mismatching of positional 
arguments.

Cheers,
Nicolas.


-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" 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-combinat-devel?hl=en.

Reply via email to