Re: [sage-combinat-devel] Re: AttributeError when ploting a poset

2012-01-27 Thread Nicolas M. Thiery
On Thu, Jan 26, 2012 at 11:48:55AM -0800, Simon King wrote: It may fix the plot problem, but it probably doesn't fix the bug that I was fixing at #12351. Namely, the patch from #10998 does not change the __eq__ method of poset elements. Hence, you would still have that comparing a poset

[sage-combinat-devel] Re: AttributeError when ploting a poset

2012-01-27 Thread Simon King
Hi Nicolas, On 27 Jan., 15:01, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote: With the Sage-Combinat queue installed, I get:     sage: P = Poset([[1,2],[4],[3],[4],[]])     sage: P(0) == int(0)     False OK, that probably means that the original bug (namely __eq__ assuming that both

Re: [sage-combinat-devel] Re: AttributeError when ploting a poset

2012-01-27 Thread Nicolas M. Thiery
On Fri, Jan 27, 2012 at 03:11:23PM -0800, Simon King wrote: OK, that probably means that the original bug (namely __eq__ assuming that both arguments are poset elements) is indeed fixed by coercion I will double check! If it is the case, then I suggest that you also add the P(0)==int(0)