I don't mind that solution although my concern is whether it would be confusing 
to have `init` have two different purposes depending on the argument. And, if 
`__post_init__` was overrided, which I would say it commonly is, that would 
mean the user would have to manually do the conversion, as well as remembering 
to add an extra argument for the conversion function (assuming I'm 
understanding what you're saying).

If no type was provided to `init` but a conversion function was, it would be a 
case of getting the type from the function signature, right?
_______________________________________________
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/CAS4EAIEUBYRHRBO54XAZQFC5ABL6HAZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to