Thanks for the reply Eric (and for dataclasses). Right now, my solution is 
pretty much that, except I do it by monkey-patching dataclasses._init_fn which, 
I know, isn't the greatest solution I could find. Your double decorator 
solution is cleaner. I'll try that instead. I still end up copying some meta 
code from the dataclasses module to generate the new_init signature, which I 
would have preferred to avoid, hence the feature proposal, but I understand 
that this may have limited interest and/or is maybe outside the scope of 
dataclasses.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/R6PCBNFKRIZRR4TAFKZLKTKRKVHKHITN/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to