There's a minor difference between redirecting vs alias in that an alias
does not respect inheritance:
class Foo:
def f(self):
return 5
alias = f
def redirct(self):
return self.f()
class Bar:
def f(self):
return -1
F = Foo()
F.alias()
5
F.redirect()
5
B = Bar()
B.alias()
5
B.redirect()
-1
Best,
Travis
On Wednesday, November 5, 2014 11:15:11 AM UTC-8, Frédéric Chapoton wrote:
>
> Probably one should keep *closed_interval* as an alias of *interval*
>
> I also noticed today that *interval_iterator* forgets about trivial
> intervals [v,v].
>
> Le mercredi 5 novembre 2014 12:17:10 UTC+1, Jori Mantysalo a écrit :
>>
>> What is the logic having both interval() and closed_interval() defined on
>> posets? Last one is really defined as a function, but is just calls first
>> one.
>>
>> --
>> Jori Mäntysalo
>>
>
--
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/d/optout.