Status: Valid
Owner: ----
Labels: Type-Enhancement Priority-Medium

New issue 3614 by [email protected]: Named arguments
http://code.google.com/p/sympy/issues/detail?id=3614

We should have a way to name arguments of a class that inherits from Basic. Our current solution looks something like the following

class PointXY(Basic):

    def __new__(cls, x, y):
        return Basic.__new__(cls, x, y)

    @property
    def x(self):
        return self.args[0]

    @property
    def y(self):
        return self.args[1]

This pattern is common enough and verbose enough to merit attention

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to