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
Autoreload Enum Error #10232
Comments
autoreload is a bit black magic, so it's not a big surprise when it breaks. I'd guess that the recursion error is because enum values have a reference back to their class (e.g. |
If that's true, is there a way to mark a class as having been already reloaded so autoreload does not try again? |
Not at present. Actually, I now think my guess was wrong; MyEnum.A is not a type, so it should be updated like that. You can see the code updating a class object here: ipython/IPython/extensions/autoreload.py Line 276 in e834116
|
seem like in |
also we should bump the number of stacks shown to something like 10-ish (or make it configurable) to be able to debug things like that better. |
I'm getting a weird error when trying to use autoreload and Enums. I have an Enum class defined in a file as:
Using
%autoreload 2
, if I try to addC = 'C'
toMyEnum
, or remove an existing definition, I get the following error:Sometimes it is a different error:
I'm running the code on Debian Linux, using Anaconda with python 3.5.
The text was updated successfully, but these errors were encountered: