Giter VIP home page Giter VIP logo

Comments (3)

madisonmay avatar madisonmay commented on May 22, 2024

Any chance you're on Python3? Running the same code snippet on my system produces the expected result.

0
1
2
3
4
5
6
7
8
9

from tomorrow.

jithusunny avatar jithusunny commented on May 22, 2024

Yes.
Sorry, I 'assumed' I can use the library with Python 3.x!

Still, any idea how to fix this?
I tried _wait() call method, but it is a blocking execution then.

Thanks,

from tomorrow.

madisonmay avatar madisonmay commented on May 22, 2024

No worries! Unfortunately, the library will simply not work on Python 3.x. I take advantage of some Python 2.7 specific "features" -- namely the fact that old-style python classes have calls to dunder methods (__init__, for example) routed through the __getattr__ method. I would recommend working with concurrent.futures directly in general -- it's an excellent library and quite a bit more transparent. Tomorrow is mainly a thought experiment to see how low I could make the barrier to switching to a threaded model.

from tomorrow.

Related Issues (16)

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.