Re: [Python-ideas] Decorator to avoid a mistake

2016-11-23 Thread François Leblanc
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 : > I think you could implement this yourself with metaclasses and it wouldn't > have much (if any) performa

Re: [Python-ideas] Decorator to avoid a mistake

2016-11-23 Thread Paul Moore
On 23 November 2016 at 08:08, François Leblanc wrote: > 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... The point here is that if there is a way to get it without a performance cost (I can't imag

Re: [Python-ideas] Decorator to avoid a mistake

2016-11-23 Thread François Leblanc
I can imagine using a metaclass specialized witch can be activate or desactivate but the cost of decorator call still be here... I think its will be a good improvement if we can provide a solution for this, and i ask myself if this can be set in interpreter with a flag to activate for exemple and

Re: [Python-ideas] Decorator to avoid a mistake

2016-11-23 Thread Sebastian Kreft
Related thread https://mail.python.org/pipermail/python-ideas/2016-July/041095.html On Nov 23, 2016 20:30, "François Leblanc" wrote: > > I can imagine using a metaclass specialized witch can be activate or > desactivate but the cost of decorator > call still be here... > > I think its will be a