[Python-ideas] Decorator to avoid a mistake

François Leblanc fleblanc50 at gmail.com
Wed Nov 23 03:08:57 EST 2016


It's why I'd prefer this integrate in language, but if there no way to get
it without performance cost
I will have a look to a pylint solution...


2016-11-22 23:49 GMT+01:00 Nick Timkovich <prometheus235 at gmail.com>:

> I think you could implement this yourself with metaclasses and it wouldn't
> have much (if any) performance hit per-call or per-instantiation (just a
> bit slower when creating the class definition).
>
> It's a bit heavy-handed-hand-holding–if you ask me–but if you want to do
> it, the language gives you the ability.
>
> On Tue, Nov 22, 2016 at 3:24 PM, Adrián Orive Oneca <
> adrian.orive.oneca at gmail.com> wrote:
>
>> This is just a convenience utility that would impact performance. This
>> kind of enhancements, in my opinion, should be taken care by the IDEs, not
>> by the interpreters.
>>
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20161123/e5ca239a/attachment.html>


More information about the Python-ideas mailing list