#6186: two probably-easy-to-fix scope bugs
--------------------+-------------------------------------------------------
Reporter: was | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-4.0.1
Component: misc | Keywords:
--------------------+-------------------------------------------------------
{{{
sage: version()
'Sage Version 4.0, Release Date: 2009-05-29'
sage: G = Algebras(CC); G.category()
---------------------------------------------------------------------------
NameError Traceback (most recent call
last)
/Users/jeromelefebvre/.sage/temp/Jerome.local/57209/
_Users_jeromelefebvre__sage_init_sage_0.py in <module>()
/Applications/sage/local/lib/python2.5/site-packages/sage/categories/
category.pyc in category(self)
172
173 def category(self):
--> 174 return Objects()
175
176 def is_Category(x):
NameError: global name 'Objects' is not defined
An other;
sage: k = Qp(13);f.<a> = k.extension(x^2+1)
---------------------------------------------------------------------------
NameError Traceback (most recent call
last)
/Users/jeromelefebvre/.sage/temp/Jerome.local/57209/
_Users_jeromelefebvre__sage_init_sage_0.py in <module>()
/Applications/sage/local/lib/python2.5/site-packages/sage/rings/padics/
padic_generic.pyc in extension(self, modulus, prec, names, print_mode,
halt, **kwds)
463 else:
464 print_mode[option] = self._printer.dict
()[option]
--> 465 return ExtensionFactory(base=self, premodulus=modulus,
prec=prec, halt=halt, names=names, check = True, **print_mode)
466
467 def local_print_mode(obj, print_options, pos = None, ram_name
= None):
/Applications/sage/local/lib/python2.5/site-packages/sage/structure/
factory.so in sage.structure.factory.UniqueFactory.__call__ (sage/
structure/factory.c:761)()
/Applications/sage/local/lib/python2.5/site-packages/sage/rings/padics/
factory.pyc in create_key_and_extra_args(self, base, premodulus, prec,
print_mode, halt, names, var_name, res_name, unram_name, ram_name,
print_pos, print_sep, print_alphabet, print_max_ram_terms,
print_max_unram_terms, print_max_terse_terms, check, unram)
2261 key = (polytype, base, premodulus, modulus, names,
prec, halt, print_mode, print_pos, print_sep, tuple(print_alphabet),
print_max_ram_terms, print_max_unram_terms, print_max_terse_terms)
2262 else:
-> 2263 upoly, epoly, prec = split(modulus, prec)
2264 key = (polytype, base, premodulus, upoly, epoly,
names, prec, halt, print_mode, print_pos, print_sep, tuple
(print_alphabet), print_max_ram_terms, print_max_unram_terms,
print_max_terse_terms)
2265 return key, {'shift_seed': shift_seed}
NameError: global name 'split' is not defined
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6186>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---