#9989: easier access to operands of a symbolic expression
-----------------------------+----------------------------------------------
Reporter: burcin | Owner: burcin
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.6
Component: symbolics | Keywords:
Author: Burcin Erocal | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Comment(by burcin):
Replying to [comment:2 kcrisman]:
> What is the `property` thing in Python/Cython? I haven't heard of that
before (as opposed to `def` or `cdef` or `class`).
I also found out about it while looking through the Sage library code for
a way to make `numpy` work when I define `__getitem__()`:
http://docs.cython.org/src/userguide/extension_types.html#properties
The function defined by `__get__()` is run when you access that property.
This makes the syntax look much cleaner. You don't need to put `()` at the
end any more, compared to the syntax needed for `.operands()`.
> Does this depend at all on any of the Pynac 0.2.1 tickets' patches?
No, it should be independent. Though I admit that there are a bunch of
symbolics patches before this on my queue.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9989#comment:3>
Sage <http://www.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.