jfhbrook / pyee

A rough port of Node.js's EventEmitter to Python with a few tricks of its own
https://github.com/jfhbrook/public
MIT License
371 stars 39 forks source link

refactor EE import paths #87

Closed jfhbrook closed 2 years ago

jfhbrook commented 3 years ago

Instead of from pyee import EventEmitter, TwistedEventEmitter etc, consider:

from pyee import EventEmitter  # alias
from pyee.base import EventEmitter
from pyee.twisted import TwistedEventEmitter

The current aliases would work as they do now but be marked as deprecated, similar to the BaseEventEmitter.