##// END OF EJS Templates
Let %autoreload work on modules with frozen dataclasses...
Let %autoreload work on modules with frozen dataclasses See Issue #12411 and Issue #12185. The problem is that a frozen `dataclasses.dataclass` overrides the `__setattr__()` method, so updating its `__class__` member requires going through the base `object` class. This seems to fix the problem.

File last commit:

r22978:37da7145
r27716:becb905f
Show More
embed_flufl.py
5 lines | 269 B | text/x-python | PythonLexer
"""This tests that future compiler flags are passed to the embedded IPython."""
from __future__ import barry_as_FLUFL
from IPython import embed
embed(banner1='', header='check 1 <> 2 == True')
embed(banner1='', header='check 1 <> 2 cause SyntaxError', compile_flags=0)