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

Need the ability to hook existing standard library modules #30

Open
Mystic-Mirage opened this issue Jan 15, 2014 · 0 comments
Open

Need the ability to hook existing standard library modules #30

Mystic-Mirage opened this issue Jan 15, 2014 · 0 comments

Comments

@Mystic-Mirage
Copy link
Contributor

Today I tried to backport datetime module from Python 3.3 (there are new timezone class and datetime.timestamp method).

I placed new datetime.py into future/standard_library/ and added 'future.standard_library.datetime': 'datetime' to RENAMES but existing hook algorithm prevents module overriding if it is already exists in sys.modules.

So how it can be done?

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

No branches or pull requests

2 participants