Coder Social home page Coder Social logo

Need a None object about hyphy HOT 7 CLOSED

spond avatar spond commented on May 25, 2024
Need a None object

from hyphy.

Comments (7)

stevenweaver avatar stevenweaver commented on May 25, 2024

This was implemented in #49? No?

from hyphy.

spond avatar spond commented on May 25, 2024

Yep. Can you test?

On Dec 9, 2011, at 19:37, "Steven Weaver" [email protected] wrote:

This was implemented in #49? No?


Reply to this email directly or view it on GitHub:
#33 (comment)

from hyphy.

stevenweaver avatar stevenweaver commented on May 25, 2024

A language constant None equates to 0

>a=None
NO RETURN VALUE
>a
0
>a==0
1

Is this desired behavior? I think this works, and introducing a null-like type at the moment may cause a lot more work in the language than it just equating to 0.

Otherwise, yes None works.

from hyphy.

spond avatar spond commented on May 25, 2024

I wonder if I committed the correct files.
Here's what I get:

<HyPhy Base Object>
>a=None
NO RETURN VALUE
>a
<HyPhy Base Object>
>a==0
...error message...
<HyPhy Base Object>

The error message is about Attempting to operate on an undefined value; this is probably a result of an earlier 'soft' error condition Exiting...

from hyphy.

stevenweaver avatar stevenweaver commented on May 25, 2024

Ok. It looks like I pulled from upstream on a different server and forgot to do so on my own machine. This makes more sense now.

However, I do get this:

>a=None
NO RETURN VALUE
>a==None
0

Shouldn't it equate to 1?

from hyphy.

spond avatar spond commented on May 25, 2024

Good call. Just fixed and pushed the mods to veg/hyphy.

from hyphy.

stevenweaver avatar stevenweaver commented on May 25, 2024

Verified. Closing issue.

from hyphy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.