I don't really like the way to express the condition in
@conditionally_defined, it breaks the Python idiom of explicitly passing
self. Whats the advantage of
@conditionally_defined('cond')
def foo(self)
return ...
over
def foo(self):
if self.cond: return super(Class, self).foo()
return ...
The latter is obvious to anybody who knows Python, the former is obscure.
Same number of lines.
--
You received this message because you are subscribed to the Google Groups
"sage-devel" 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/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.