On Fri, 15 Jun 2012 17:07:46 -0400 Yury Selivanov <yselivanov...@gmail.com> wrote: > On 2012-06-15, at 4:48 PM, Victor Stinner wrote: > [snip] > > Would it be possible to only create a signature for builtin the first > > time that you read its __signature__ attribute? I don't know how to > > implement such behaviour on a builtin function. I don't know if it's > > important to decide this right now. > > > > I don't want to create a signature at startup if it is not used, > > because it would waste memory (as docstrings? :-)). > > I think when we have the working mechanism to generate them in place, > we can make it lazy.
I'm not sure I understand. The PEP already says signatures are computed lazily. Is there an exception for built-in functions? Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com