[Python-ideas] decorator syntax limitation

Franck Michea franck.michea at gmail.com
Fri Feb 21 16:44:10 CET 2014


On Thu, Feb 20, 2014 at 10:58 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 21 February 2014 07:55, Jan Kaliszewski <zuo at chopin.edu.pl> wrote:
>>
>> As far as I remember, generally, the belief that this restriction
>> is necessary seemed not to be very strong.
>
> Yup, but the gains aren't that great, either - it's never irritated
> anyone enough for them to write up the necessary PEP and implement the
> Grammar change :)
>
> Cheers,
> Nick.
>

Well, I started to work on a public API design and was hoping I could
use this pattern, but I had another idea since then that would work
without syntax modification. Not promising anything, but I may look
into this within the next few months (~9) if it bothers me enough :)

Haoyi's trick is awesome, but I don't think it's a good idea for
something public :/ Though I'll keep that in mind if I ever need that
in my code :)

Thank you for your answers guys!

-- 
Franck Michea - EPITA/GISTRE/LSE 2014


More information about the Python-ideas mailing list