Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit c142a5f

Browse files
committed
18695: clearer names for helpers
1 parent d3bf439 commit c142a5f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sage/symbolic/ring.pyx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,10 @@ cdef class SymbolicRing(CommutativeRing):
588588
if latex_name is not None:
589589
symb.set_texname(latex_name)
590590
if domain is not None:
591-
symb.set_domain(sage_domain_to_ginac(domain))
591+
symb.set_domain(sage_domain_to_ginac_domain(domain))
592592
GEx_construct_symbol(&e._gobj, symb)
593593
if domain is not None:
594-
sage_domain_to_maxima(e, domain)
594+
send_sage_domain_to_maxima(e, domain)
595595

596596
return e
597597

@@ -603,20 +603,20 @@ cdef class SymbolicRing(CommutativeRing):
603603
if name is None: # Check if we need a temporary anonymous new symbol
604604
symb = ginac_new_symbol()
605605
if domain is not None:
606-
symb.set_domain(sage_domain_to_ginac(domain))
606+
symb.set_domain(sage_domain_to_ginac_domain(domain))
607607
else:
608608
if latex_name is None:
609609
latex_name = latex_variable_name(name)
610610
if domain is not None:
611-
ginac_domain = sage_domain_to_ginac(domain)
611+
ginac_domain = sage_domain_to_ginac_domain(domain)
612612
else:
613613
ginac_domain = domain_complex
614614
symb = ginac_symbol(name, latex_name, ginac_domain)
615615
pynac_symbol_registry[name] = e
616616

617617
GEx_construct_symbol(&e._gobj, symb)
618618
if domain is not None:
619-
sage_domain_to_maxima(e, domain)
619+
send_sage_domain_to_maxima(e, domain)
620620

621621
return e
622622

@@ -799,7 +799,7 @@ cdef class SymbolicRing(CommutativeRing):
799799

800800
SR = SymbolicRing()
801801

802-
cdef unsigned sage_domain_to_ginac(object domain) except -1:
802+
cdef unsigned sage_domain_to_ginac_domain(object domain) except -1:
803803
"""
804804
TESTS::
805805
@@ -820,7 +820,7 @@ cdef unsigned sage_domain_to_ginac(object domain) except -1:
820820
else:
821821
raise ValueError(repr(domain)+": domain must be one of 'complex', 'real', 'positive' or 'integer'")
822822

823-
cdef sage_domain_to_maxima(Expression v, object domain) except +:
823+
cdef send_sage_domain_to_maxima(Expression v, object domain) except +:
824824
from sage.symbolic.assumptions import assume
825825
# convert the domain argument to something easy to parse
826826
if domain is RR or domain == 'real':

0 commit comments

Comments
 (0)