[sage-devel] Re: SkewTableaux are not hashable?

2023-02-14 Thread 'Travis Scrimshaw' via sage-devel
Fixed in https://github.com/sagemath/sage/pull/35138

Best,
Travis


On Wednesday, February 15, 2023 at 12:31:54 PM UTC+9 Travis Scrimshaw wrote:

> Hi Martin,
>This happens because it overrides __eq__. It probably would be better 
> to replace it by a __richcmp__ anyways, which might even fix this problem. 
> It has a few easy solutions. I will try to do a PR today for it.
>
> Best,
> Travis
>
> On Wednesday, February 15, 2023 at 3:06:58 AM UTC+9 Martin R wrote:
>
>> sage: hash(SkewTableau([[1]]))
>>
>> ---
>> TypeError Traceback (most recent call 
>> last)
>> Cell In [48], line 1
>> > 1 hash(SkewTableau([[Integer(1)]]))
>>
>> TypeError: unhashable type: 'SkewTableaux_with_category.element_class'
>>
>> It inherits from ClonableList, I would have thought that this 
>> automatically provides a hash.  But of course:
>>
>> # __hash__ is not properly inherited if comparison is changed
>> # see > >
>>
>> :-(
>>
>> Martin
>>
>

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/6e8b8d5d-09a5-4a8b-a6dc-07affad9b11dn%40googlegroups.com.


[sage-devel] Re: Ticket (now issue/PR) tag

2023-02-14 Thread Matthias Koeppe
See https://github.com/sagemath/sage/pull/35015

On Tuesday, February 14, 2023 at 9:01:53 PM UTC-8 Travis Scrimshaw wrote:

> To the github transition team,
>
> Is there a sphinx tag for issues to replace :trac:`12345`?
>
> Travis
>
>

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/b53014c5-2e67-42bc-9f58-55ffb62726f2n%40googlegroups.com.


[sage-devel] Ticket (now issue/PR) tag

2023-02-14 Thread 'Travis Scrimshaw' via sage-devel
To the github transition team,

Is there a sphinx tag for issues to replace :trac:`12345`?

Travis

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/0c1e254a-5e05-46e5-8dfb-bd9eef1a88cfn%40googlegroups.com.


[sage-devel] Non-profit github account

2023-02-14 Thread Tobias Diez
Github provides a free teams account for (registered) non-profit orgs. 
There is not a huge difference between the free and the teams account (see 
https://github.com/pricing), especially if we don't use private repos. 
However, prebuilds for Github Codespaces can only be enabled for orgs on 
the Teams plan and this is a nice feature as it would allow people to start 
developing sage in a matter of seconds without setting up a local 
environment. 

For this reason, I wanted to ask if someone could start the application for 
the non-profit Teams plan at https://support.github.com/contact/nonprofit. 
My understanding is that SageMath is not an officially registered 
non-profit org, so this application might not be successful. But at 
https://socialimpact.github.com/ one finds "Not a nonprofit? Submit a 
request for your social good project, and we’ll let you know if you qualify 
for a discount." so there is still hope (we are a social good project, 
right? ;-) ). I can also the application, but maybe someone with a deeper 
understanding of the official status of the sagemath org can provide more 
details.

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/841f5658-68a7-4b08-9531-8b87399f0216n%40googlegroups.com.


[sage-devel] Re: SkewTableaux are not hashable?

2023-02-14 Thread 'Travis Scrimshaw' via sage-devel
Hi Martin,
   This happens because it overrides __eq__. It probably would be better to 
replace it by a __richcmp__ anyways, which might even fix this problem. It 
has a few easy solutions. I will try to do a PR today for it.

Best,
Travis

On Wednesday, February 15, 2023 at 3:06:58 AM UTC+9 Martin R wrote:

> sage: hash(SkewTableau([[1]]))
> ---
> TypeError Traceback (most recent call last)
> Cell In [48], line 1
> > 1 hash(SkewTableau([[Integer(1)]]))
>
> TypeError: unhashable type: 'SkewTableaux_with_category.element_class'
>
> It inherits from ClonableList, I would have thought that this 
> automatically provides a hash.  But of course:
>
> # __hash__ is not properly inherited if comparison is changed
> # see 
>
> :-(
>
> Martin
>

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/346e2dd4-bca2-4e12-9e33-e66de840a805n%40googlegroups.com.


[sage-devel] SkewTableaux are not hashable?

2023-02-14 Thread 'Martin R' via sage-devel
sage: hash(SkewTableau([[1]]))
---
TypeError Traceback (most recent call last)
Cell In [48], line 1
> 1 hash(SkewTableau([[Integer(1)]]))

TypeError: unhashable type: 'SkewTableaux_with_category.element_class'

It inherits from ClonableList, I would have thought that this automatically 
provides a hash.  But of course:

# __hash__ is not properly inherited if comparison is changed
# see 

:-(

Martin

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/f3932c8e-42a2-4fb2-b4e1-be9c0e9469e1n%40googlegroups.com.