499
you are viewing a single comment's thread
view the rest of the comments
[-] Valmond@lemmy.world 1 points 1 week ago

A non type should be a type. It should be of the type none. And it is in good script languages like Python so I don't know why you think it shouldn't.

[-] Remavas@programming.dev 1 points 4 days ago

They say a picture is worth a thousand words.

[-] Valmond@lemmy.world 1 points 3 days ago

That's a Numpy type, not a Python typesm, try a=None b=None a==b

[-] Remavas@programming.dev 1 points 2 days ago* (last edited 2 days ago)

That's not a type. A NaN is a floating point number (of type float). I used numpy because that's the easiest way to get a NaN.

This is part of the floating point standard.

This was never about None, which is a completely different thing.

this post was submitted on 17 May 2025
499 points (97.9% liked)

Programmer Humor

23428 readers
1404 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS