Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #32148: change '__len__' method of propositional formula to 'len…
…gth' #28053 added a `__len__` method to propositional formulas, so that `len(f)` would return the length of the formula. However, it was pointed out in #29738 that only containers should have a `len`. So the method should be renamed to `length`. {{{ sage: f = propcalc.formula("a -> b") sage: f.length() 3 }}} For now, `__len__` is being retained as an alias. URL: https://trac.sagemath.org/32148 Reported by: gh-DaveWitteMorris Ticket author(s): Dave Morris Reviewer(s): Travis Scrimshaw
- Loading branch information