I like type() a lot, and the attributes dict it takes as argument works with lambda.
My use case is just a python module for a framework provides a default instance for some model, and I thought it would be cool to just change a method without going through I'm really bad at defending ideas, specially in English, but I have one statement to try: How exciting is life if you're not monkey patching runtime on a daily basis ? Cheers
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/