>>> [28+((62648012>>m*2)&3)for m in range(1, 13)]
[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
# calendar. cf. lobste.rs/s/sfjsxx/a_for
Conversation
Replying to
I kind of like 30+(m&1^(m>7))-m*(m==2) better than 28+((62648012>>m*2)&3), though, even though it's a less efficient calendar function.
2
1
2
Replying to
