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

DeprecationWarning: the sets module is deprecated #4522

Closed
trbck opened this issue Nov 11, 2013 · 2 comments
Closed

DeprecationWarning: the sets module is deprecated #4522

trbck opened this issue Nov 11, 2013 · 2 comments
Milestone

Comments

@trbck
Copy link

trbck commented Nov 11, 2013

In my ipython console after typing
%load_ext autoreload %autoreload 2
and after import of my module I get

/Users/ben/.virtualenvs/finance/lib/python2.7/site-         packages/IPython/extensions/autoreload.py:366: 
DeprecationWarning: The compiler package is deprecated and removed in Python 3.x.
module = reload(module)
/Users/ben/.virtualenvs/finance/lib/python2.7/site-packages/IPython/extensions/autoreload.py:366: DeprecationWarning: the sets module is deprecated
module = reload(module)`

How can I turn this off? Thanks for your help!

@takluyver
Copy link
Member

I can't reproduce that using a module that imports compiler and sets. Deprecation warnings are usually silenced on Python 2.7 - could you have something (environment variable, custom warnings filter, etc.) that turns them on?

@minrk
Copy link
Member

minrk commented Nov 11, 2013

If you set PYTHONWARNINGS=always, you will see every deprecation warning.

If you set PYTHONWARNINGS=default, to restore the default behavior, the deprecation warnings should be ignored unless some code is changing the warnings filter at runtime.

The deprecated modules are not imported in master, so I think we can call this 'fixed for 2.0'

@minrk minrk closed this as completed Jan 29, 2014
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

No branches or pull requests

3 participants