Sage doesn't find cycle_type() attribute on a permutation element
<p>Im trying to work on some group theory with Sage.</p>

<p>In particular I was trying to learn the basic commands related to symmetric groups.</p>

<p>My input is</p>

<pre><code>G=SymmetricGroup(6)

sigma=G('(1,3,5)(4,6)')
</code></pre>

<p>then I use <code>sigma.cycle_type()</code> and according to the documentation, I should get as output a list with the lengths of the cycles that form sigma in decreasing order, in this case I should get something like [3,2]. Instead I get an "AttributeError" :</p>

<pre><code>---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
&lt;ipython-input-25-94f73ca80516&gt; in &lt;module&gt;()
----&gt; 1 sigma.cycle_type()

/home/sage/sage-7.2/src/sage/structure/element.pyx in sage.structure.element.Element.__getattr__ (/home/sage/sage-7.2/src/build/cythonized/sage/structure/element.c:4649)()
    411             dummy_error_message.name = name
    412             raise dummy_attribute_error
--&gt; 413         return getattr_from_other_class(self, P._abstract_element_class, name)
    414 
    415     def __dir__(self):

/home/sage/sage-7.2/src/sage/structure/misc.pyx in sage.structure.misc.getattr_from_other_class (/home/sage/sage-7.2/src/build/cythonized/sage/structure/misc.c:1870)()
    257         dummy_error_message.cls = type(self)
    258         dummy_error_message.name = name
--&gt; 259         raise dummy_attribute_error
    260     if isinstance(attribute, methodwrapper):
    261         dummy_error_message.cls = type(self)

AttributeError: 'sage.groups.perm_gps.permgroup_element.SymmetricGroupElement' object has no attribute 'cycle_type'
</code></pre>

<p>What am I doing wrong?</p>

<p>Possibly you just need a newer version of Sage?  In a late beta of 7.3, I get:</p>

<pre><code>sage: sigma.cycle_type()
[3, 2, 1]
</code></pre>

<p>I should point out that the version in SageMathCloud appears to be too old for this currently, if that's your platform...</p>

python sage