Mike,
Here's a minor issue with your patch to axiom.py.
I noticed that you included a hack for Axiom function names with ? and
! suffixes. As you know Sage/Python does not permit these characters
in identifiers. The Axiom convention is that functions with names
ending in ? return True or False and functions with names ending in !
modify mutable data structures in-place.
Rather than using _q and _e as suffixes representing ? and !
respectively, I think it would be more in keeping with Sage
conventions to use prefixes is_ and set_ as below:
-----
class AxiomFunctionElement(FunctionElement):
def __init__(self, object, name):
"""
TESTS:
sage: a = axiom('"Hello"') #optional -- requires Axiom
sage: a.is_upperCase #optional
upperCase?
sage: a[1].is_upperCase()
true
sage: a.set_upperCase #optional
upperCase!
sage: a.set_upperCase() #optional
"HELLO"
"""
if name.startswith("is_"):
name = name[3:] + "?"
elif name.startswith("set_"):
name = name[4:] + "!"
FunctionElement.__init__(self, object, name)
------
Regards,
Bill Page.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" 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/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---