We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd38365 commit 4b85613Copy full SHA for 4b85613
src/sage/combinat/cluster_complex.py
@@ -267,7 +267,7 @@ def _repr_(self):
267
sage: ClusterComplex(['A', 2])._repr_()
268
"Cluster complex of type ['A', 2] with 5 vertices and 5 facets"
269
"""
270
- if k == 1:
+ if self._k == 1:
271
name = 'Cluster complex'
272
else:
273
name = 'Multi-cluster complex'
src/sage/structure/sage_object.pyx
@@ -160,6 +160,9 @@ cdef class SageObject:
160
sage: P.rename('A polynomial ring')
161
sage: P.get_custom_name()
162
'A polynomial ring'
163
+ sage: P.reset_name()
164
+ sage: P.get_custom_name() is None
165
+ True
166
167
try:
168
return self._SageObject__custom_name
0 commit comments