Changeset 5497:7818311ff7fe for sage/structure/coerce.pxi
- Timestamp:
- 07/24/07 14:09:01 (6 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
sage/structure/coerce.pxi (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sage/structure/coerce.pxi
r5465 r5497 38 38 if PY_TYPE_CHECK(x,Element): 39 39 return (<Element>x)._parent 40 try: 41 # TODO: should the _parent attribute be moved up the tree? 40 elif hasattr(x, 'parent'): 42 41 return x.parent() 43 e xcept AttributeError:42 else: 44 43 return <object>PY_TYPE(x) 45 44
Note: See TracChangeset
for help on using the changeset viewer.
