Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Conversation

Notices

  1. Arne Babenhauserheide Arne Babenhauserheide Python

    float('nan') == float('nan') → False ??? … IEEE 754 requires that ⇒ math.isnan(float('nan')) == math.isnan(float('nan')) → True !python

    about a year ago from Emacs Identica-mode at Mannheim, Baden-Württemberg, Germany
    • Marc Rintsch Marc Rintsch Python

      IEEE 754 requires both and Python (tested w/ 2.6) fullfills both requirements.

      about a year ago
    • Neil Hodges Neil Hodges Python

      @arnebab Also: x = float('nan'); x == x -> False !Python

      about a year ago
    • Neil Hodges Neil Hodges Python , Marc Rintsch

      @bj Makes sense, but why are you using an old version of Python?

      about a year ago
    • Dennis Heidsiek Dennis Heidsiek

      @arnebab: NaN iſt ein Platzhalter für /verſchiedene/ nicht definierte mathematiſche Operationen: 0/0 ≠ ∞/∞.

      about a year ago
    • Marc Rintsch Marc Rintsch Python , Neil Hodges

      Because that's the standard !Python version of the system I'm sitting at right now. But I'm quite sure 2.7 yields the same results.

      about a year ago
    • Neil Hodges Neil Hodges Python , Marc Rintsch

      @bj I was never implying that it's any different in this regard. I just haven't seen 2.6 in a while.

      about a year ago
    • Yngve Inntjore Levin Yngve Inntjore Levin Python , Neil Hodges

      @takeshitakenji aah, sorry, didn't read the entire dent history.. cool! :)

      about a year ago
    • Marc Rintsch Marc Rintsch Python , Neil Hodges

      You don't work much with systems with „stable” or „long term support” distributions then I guess. ☺

      about a year ago
    • Neil Hodges Neil Hodges Python , Marc Rintsch

      @bj Not at home, anyway.

      about a year ago
    • Neil Hodges Neil Hodges Python , Marc Rintsch

      @bj You know, Windows XP kind of qualifies/qualified as a "long term support" OS.

      about a year ago
      Steve Dowe likes this.
    • Marc Rintsch Marc Rintsch Python , Neil Hodges

      But it doesn't come with prebuild python packages at all. ;-)

      about a year ago
    • Neil Hodges Neil Hodges Python , Marc Rintsch

      @bj I think it'd have to take a closed-source Python implementation with the EULA attached for that to happen, unfortunately.

      about a year ago
    • Neil Hodges Neil Hodges Python

      @mcepl Already covered that.

      about a year ago
    • Arne Babenhauserheide Arne Babenhauserheide Python , Neil Hodges

      but x = float('nan'); x is x -> True !Python

      about a year ago
    • Arne Babenhauserheide Arne Babenhauserheide Python , Marc Rintsch

      besides: math.isnan requires python 2.5+

      about a year ago
    • Arne Babenhauserheide Arne Babenhauserheide Python , Neil Hodges

      but the Python license allows closed source versions with EULA…

      about a year ago
    • Guy K. Kloss Guy K. Kloss Python , Neil Hodges

      @takeshitakenji NaN cannot be compared for equality. Different ops might have led to it. If not comparable, == should yield False. !Python

      about a year ago
    • Neil Hodges Neil Hodges Python , Guy K. Kloss

      @xemacs Already covered it, thanks.

      about a year ago

Site notice

Identi.ca is converting to pump.io on 1 June 2013

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Identi.ca is a microblogging service brought to you by E14N. It runs the StatusNet microblogging software, version 1.1.0-release, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal