Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in span #5575

Closed
williamstein opened this issue Mar 20, 2009 · 3 comments
Closed

bug in span #5575

williamstein opened this issue Mar 20, 2009 · 3 comments

Comments

@williamstein
Copy link
Contributor

sage: V = QQ^4
sage: a = [V.random_element() for _ in range(4)]
sage: span(a)
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)

/Users/wstein/.sage/temp/teragon.local/19499/_Users_wstein__sage_init_sage_0.py in <module>()

/Users/wstein/build/sage-3.4/local/lib/python2.5/site-packages/sage/modules/free_module.pyc in span(gens, base_ring, check, already_echelonized)
    456         base_ring, gens = gens, base_ring
    457         
--> 458     R = self.base_ring() if base_ring is None else base_ring
    459 
    460     if not isinstance(R, principal_ideal_domain.PrincipalIdealDomain):

NameError: global name 'self' is not defined

Component: linear algebra

Issue created by migration from https://trac.sagemath.org/ticket/5575

@williamstein
Copy link
Contributor Author

Attachment: trac_5575.patch.gz

@JohnCremona
Copy link
Member

comment:2

Review: patch looks fine and applies ok to 3.4. There is an appropriate doctest and all tests in sage/modules pass. Good!

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 23, 2009

comment:3

Merged in Sage 3.4.1.alpha0.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Mar 23, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants