Changes between Initial Version and Version 1 of Ticket #17740, comment 22
- Timestamp:
- 02/15/15 16:30:36 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17740, comment 22
initial v1 1 1 Now, I am not sure anymore that your solution is better. The implementation of `division_parent` tries to execute `~parent.one()`. But the default implementation of `__invert__` of an element `x` in `sage.structure.element` is precisely to call `1/x` (and soonly `x.parent().one()/x` with #17692). Hence using `division_parent` should lead to some infinite recursions that we curiously do not see here. No? 2 3 EDIT: This is fine, because in `x.parent().one()/x` the numerator and denominator have the same type... and so no coercion is involved and `__div__` is called directly.