On 5/16/2020 2:35 PM, Joao S. O. Bueno wrote:
So, this thread has stalled, but I saw no contrary opinions to a
decorator like this.
I think the plain version (not treating positional only arguments differently,
no partially-initialized namespace, no annotations based auto-argument cast)
could make it into a bpo -
what do you say?
Has anyone looked at prior art? I didn't see much on PyPI, but there's
this from 12 years ago: http://code.activestate.com/recipes/551763/ . It
also has pointers to other versions. It was linked to from
https://stackoverflow.com/questions/3652851/what-is-the-best-way-to-do-automatic-attribute-assignment-in-python-and-is-it-a
.
I'm sure the techniques available have improved since then.
But my question is: If this technique has been available for 12 years,
why is it not more popular?
Eric
_______________________________________________
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/MQ6GKE4FU57PAJOELXV7O2MDHWEAZTBQ/
Code of Conduct: http://python.org/psf/codeofconduct/