Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated __init__ to include gevent objects; fixed import of Timeout to c... #35

Closed
wants to merge 1 commit into from

Conversation

wwwslinger
Copy link

...ome from pykka.exceptions. Small fixes to enable non-threading actors.

@@ -1,5 +1,6 @@
# flake8: noqa
from pykka.actor import Actor, ActorRef, ThreadingActor
from pykka.gevent import GeventActor, GeventFuture
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will make Pykka unimportable on any system where Gevent isn't available. Thus, it is a no-go.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which includes all Python 3 and PyPy systems.

@jodal jodal closed this Apr 13, 2014
@wwwslinger
Copy link
Author

D'oh. Sorry about that -- a bit too eager on the pull request. Is there any interest in just wrapping that import in a try/except since things otherwise work well without those imports?

@jodal
Copy link
Owner

jodal commented Apr 14, 2014

I don't think you save/gain a lot from it, so I'd rather not. Just doing import pykka.gevent and use pykka.gevent.GeventActor instead of import pykka and pykka.GeventActor doesn't cost you much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants