Post AW3LuJUTFm8weC68eW by j2kun@mathstodon.xyz
(DIR) More posts by j2kun@mathstodon.xyz
(DIR) Post #AW3LtmQmAUa07B7DoO by dabeaz@mastodon.social
2023-05-26T16:26:11Z
1 likes, 1 repeats
Obscure Python factlet... Python has always allowed a trailing comma in function definitions:def f(x, y, ): ...However, it was found that the parenthesis would sometimes tip over in certain IDEs. So, starting Python in 3.8, you can now prop it up:def f(x, y, /): ...
(DIR) Post #AW3LuJUTFm8weC68eW by j2kun@mathstodon.xyz
2023-05-26T16:33:16Z
0 likes, 0 repeats
@dabeaz just fix the IDE???
(DIR) Post #AW3LuKQFmwMdXP8Hia by dabeaz@mastodon.social
2023-05-26T16:43:35Z
1 likes, 0 repeats
@j2kun You can also just slightly tilt the monitor.