#4368: [with patch, needs review] Create a function which gets an attribute from
an object and calls it with specified arguments and keywords
-------------------------+--------------------------------------------------
Reporter: mhansen | Owner: mhansen
Type: enhancement | Status: assigned
Priority: minor | Milestone: sage-3.2
Component: misc | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by mvngu):
Reply to [comment:2 mhansen]
[[BR]][[BR]]
The following snippet is from the attached patch '''trac_4368.patch''':
{{{
+def attrcall(name, *args, **kwds):
+ """
+ Returns a callable which takes in an object, gets the method
+ named name from that objects, and calls it with the specified
+ arguments and keywords.
}}}
Why "named name from that _objects_"? (my emphasis) My understanding is
that I can pass in an object (not more than one) to the proposed class
{{{AttrCallObject}}}. If you mean that I can pass in only one object in
order to get a returned callable, then you might want to consider the
following documentation change:
{{{
-named name from that objects, and calls it with the specified
+named name from that object, and calls it with the specified
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4368#comment:3>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---