Post #1700039
2025-02-01 17:47 UTC
Here are some emojidentifiers for your next Python code:
import math
乁_ツ_ㄏ = None
乁_益_ㄏ = math.nan
ఠ_ఠ = isinstance
def minnums(values: list | 乁_ツ_ㄏ = 乁_ツ_ㄏ):
if (
values is 乁_ツ_ㄏ
or not all(ఠ_ఠ(n, (float, int))
for n in values)
):
return 乁_益_ㄏ
return min(values)
#python #unicode #emoji
Replies (3)
-
@thias@mastodon.social 2025-02-01 19:11
@ptmcg@fosstodon.org Should None not be base on 無?
-
@A1MVP@masto.hackers.town 2025-04-21 01:42
@ptmcg@fosstodon.org Now here is some vibe coding we can all get behind 👍
-
@sharkfie@cyberplace.social 2026-04-25 12:08
@ptmcg@fosstodon.org There is a lot of room for tomfoolery https://docs.python.org/3/reference/lexical_analysis.html#lexical-names-nonascii