On 12.04.20 02:20, Soni L. wrote:
I figured something better instead. you can have a class ESpace, but
you use it like so:
espace = ESpace()
try:
foo(espace=espace)
except espace.module.submodule.Exception:
...
e.g. for builtins:
espace = ESpace()
try:
Dear Pythoners,
class X:
def __init__(self, x, **kwargs):
super().__init__(**kwargs)
print(x, kwargs)
@dataclass
class Y(X):
y: int
Y(1) # What should happen?
Y(1, 2) # What should happen?
I feel like it would be nice to be able to use dataclasses more often
witho