@f0x wearing my wife's skin and claiming I love myself
Notices by Merc (merc@fanimations.club)
-
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 14:29:18 JST
Merc
-
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 09:24:48 JST
Merc
@theorytoe @kirby I do wish giving type annotations was syntax sugar for having asserts that it is that type :P
-
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 09:07:16 JST
Merc
@theorytoe @kirby I think it's useful to say 'whatever type this is, if it occurs here, it will also occur here'
If you're getting to more complicated shit like 'whatever type this is, a subtype with __open__ defined on it will occur here', you are going to hell you are going to hell you are going to hell you are g
-
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 09:04:23 JST
Merc
@theorytoe @kirby I should just start writing in Cython and see if people tell me to fuck off
-
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 09:00:55 JST
Merc
@theorytoe @kirby You can do shit like l = list[T]() and I think that's pretty sexy but the people here hate it.
-
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 09:00:02 JST
Merc
@pwm @theorytoe @kirby Not everything, sigh
https://boltons.readthedocs.io/en/latest/
https://grantjenks.com/docs/sortedcontainers/
uhhhhh I guess pandas and numpy too. And pyyaml. Maybe pillow. -
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 08:53:53 JST
Merc
@theorytoe @kirby https://discuss.python.org/t/pep-718-subscriptable-functions/28457 I read the fucking forums this has Guido's blessing
In conversation from fanimations.club permalink Attachments
-
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 08:51:14 JST
Merc
I just called for...else the "en passant of python"
In conversation from fanimations.club permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 08:51:11 JST
Merc
@kirby fuck I looked it up, I thought the else only triggered if the for loop was empty
In conversation from fanimations.club permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 08:51:11 JST
Merc
@kirby I figure it's rare but if it's an option you gotta do it for the meme
In conversation from fanimations.club permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 08:51:10 JST
Merc
@kirby I'm not retarded, that should be the intuitive understanding of it. Its iterable was empty, so it evaluates to false (unless you did something stupid), so the else triggers
In conversation from fanimations.club permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 08:51:09 JST
Merc
@kirby This is stupid. Make for...else for if the iterable evaluates false (if there's a for _ in x...else, have that be syntactic sugar for if x for _ in x... else), then use finally. You'd need to decide if the finally would trigger even if the for loop returns (I would make it so), though.
In conversation from fanimations.club permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 08:51:08 JST
Merc
@kirby "breaking change" so what nigga who the fuck uses this anyways.
from future import for_else_is_finally
In conversation from fanimations.club permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 08:51:07 JST
Merc
@kirby ```python3
def better_for_loop[T](it: Iterable[T], fin: Callable[[], None] = lambda: None) -> Generator[T, None, bool]:
Citation for subscriptable functions notation: https://discuss.python.org/t/pep-718-subscriptable-functions/28457
if not it:
return False
yield from it
fin()
return TrueIn conversation from fanimations.club permalink Attachments
-
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 04:06:21 JST
Merc
@lain @sanek He's listening to the supercomputer slip on pee hypothetical again
In conversation from gnusocial.jp permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 03:41:03 JST
Merc
I love you but in an unwoke way
In conversation from fanimations.club permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 00:42:44 JST
Merc
@aceattorneybot @graf @theorytoe @authen @fiore @Tony @pernia @pwm @syzygy @ktaxi @kirby @p @sysrq @grauburgunder @zuck zuck hire me when you start your own neuralink
In conversation from fanimations.club permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Thursday, 20-Aug-2026 00:41:50 JST
Merc
@graf @theorytoe @authen @fiore @Tony @pernia @pwm @syzygy @ktaxi @kirby @p @sysrq @grauburgunder @zuck @aceattorneybot render
In conversation from fanimations.club permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Wednesday, 19-Aug-2026 10:01:09 JST
Merc
@theorytoe theorytoe girl theory?
In conversation from fanimations.club permalink -
Embed this notice
Merc (merc@fanimations.club)'s status on Wednesday, 19-Aug-2026 08:56:09 JST
Merc
I know everything ask me anything
In conversation from fanimations.club permalink