Ticket #12747 (closed defect: fixed)
is_R_algebra is useless and wrong and should be deleted
| Reported by: | JStarx | Owned by: | AlexGhitza |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-5.0 |
| Component: | algebra | Keywords: | algebra, all.py |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | David Loeffler |
| Authors: | Jim Stark | Merged in: | sage-5.0.beta12 |
| Dependencies: | Stopgaps: |
Description (last modified by JStarx) (diff)
In algebras/all.py we find the following function:
def is_R_algebra(Q, R):
# TODO: do something nontrivial when morphisms are defined.
return True
A search of the source shows that this function is not used anywhere else in sage, and good thing too, cause it's obviously wrong. The attached patch deletes this function.
Attachments
Change History
Changed 14 months ago by davidloeffler
-
attachment
trac12747-newline.patch
added
JStarx's patch with newline
comment:3 Changed 14 months ago by davidloeffler
- Status changed from needs_review to positive_review
- Reviewers set to David Loeffler
Apply trac12747-newline.patch
(for the patchbot). This function is totally laughable, and the patch looks fine except for one breathtakingly trivial niggle: in Sage we generally like code files to end with a newline character, so I restored the newline you had shaved off the end of algebras/all.py. I guess that single newline doesn't merit a re-review, so I'm setting this to positive review.
