Giter VIP home page Giter VIP logo

Comments (3)

newville avatar newville commented on May 30, 2024

@craigbarratt Oh, thanks and good catch. I guess we don't have a test for that (or #73). I think the fix should not be hard (famous last words?) but I'll try to fix this (and #73) and add tests.

from asteval.

craigbarratt avatar craigbarratt commented on May 30, 2024

Yes - all block execution loops need to return once they see a flow-interrupting statement like break, continue or return.

I recently independently developed an ast interpreter for a plugin for a home automation system called HASS, and just discovered yours. Yours is elegantly written. I only started on python a few months ago and it's a good to see another implementation for something I've been working on. In reading your code I can definitely see my code has some missing features, or things I've done wrong or not cleanly. My implementation is async and has various hooks into HASS.

from asteval.

newville avatar newville commented on May 30, 2024

@craigbarratt fixed in 0.9.19. I can believe that async would be useful for a home automation system, but I think that would be a very complex change for something like asteval. It might be worth looking into, but I have not given it much thought.

from asteval.

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.