not-Reddit
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS Bot@lemmy.bestiver.seMB to Hacker News@lemmy.bestiver.seEnglish · 4 days ago

NaN Is Weird

brassnet.biz

external-link
message-square
4
link
fedilink
5
external-link

NaN Is Weird

brassnet.biz

RSS Bot@lemmy.bestiver.seMB to Hacker News@lemmy.bestiver.seEnglish · 4 days ago
message-square
4
link
fedilink
NaN is weird.
brassnet.biz
external-link
In which I showcase a Python oddity surrounding NaN and dictionaries.

Comments

alert-triangle
You must log in or register to comment.
  • SpaceNoodle@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 days ago

    Because NaN is purposefully not allowed to be mathematically equal to anything, but a reference to an object evaluated as such can be equivalent to itself.

  • skip0110@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 days ago

    Its not a Python oddity, its just IEEE 754.

  • HubertManne@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 days ago

    its so tastey though. That kinda burnt thing is just great.

  • hammertime@lemmy.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 days ago

    NaHaH

Hacker News@lemmy.bestiver.se

hackernews@lemmy.bestiver.se

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !hackernews@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

Source of the RSS Bot

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 630 users / day
  • 1.74K users / week
  • 4.01K users / month
  • 4.02K users / 6 months
  • 1 local subscriber
  • 4.53K subscribers
  • 2.47K Posts
  • 1.89K Comments
  • Modlog
  • mods:
  • patrick@lemmy.bestiver.se
  • RSS Bot@lemmy.bestiver.se
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org