Hi Chris

Again you ask good questions.

Q: How to find the bare string '#wibble'? It's optimised out during
compilation.
A: Very good. I didn't know that. For current Python we'll have to use a
different marker. For future Python we could change the compiler so that it
directly sets fn.__wibble__ without needing the @wibble decorator.

Q: You have at least added some source code to help(fn), if it's available.
But what if the function came from a .pyc file?
A: It will work the same as tracebacks work, and in exactly the same
circumstances. I think that's exactly what we want. Any other solution
would increase the size of .pyo files, which is to be avoided.

Thank you for your interest. I hope this helps.

-- 
Jonathan
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/YDAKBG553PE4RIVZ3NRFQ46OU3LMEKLC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to