[pythran] Re: PEP 576 and PEP 580

  • From: Jeroen Demeyer <J.Demeyer@xxxxxxxx>
  • To: pythran@xxxxxxxxxxxxx
  • Date: Wed, 11 Jul 2018 21:25:16 +0200

On 2018-07-10 18:03, Serge Guelton wrote:

PEP 576 is easier to understand in terms of implementation and
implication and I can see a clear benefit from the __signature__
attribute. Porting Pythran to use that PEP looks relatively easy.

The __signature__ attribute should really be a separate PEP, it is unrelated to the rest of PEP 576. Adding support for __signature__ is really a matter of fixing inspect. And that can be done independently of PEP 576 or PEP 580.

Function call overhead is scarcely an issue for pythran kernel that tend
to be quite computation intensive, but I can imagine situation
(callbacks ? lowlevelcallable) where this would matter.

If you have a concrete use case, that would help.


Other related posts: