A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20150908/fbc331be/attachment.html below:

<div dir="ltr">The byte code for the embedded expressions is all produced during the regular byte code generation phase.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 8, 2015 at 3:30 AM, Erik <span dir="ltr"><<a href="mailto:python@lucidity.plus.com" target="_blank">python@lucidity.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
<br>
I realise I'm coming late to the party on this, but I have a question about something I don't think the PEP makes clear.<br>
<br>
<br>
<br>
When is the bytecode for the embedded expressions created?<br>
<br>
<br>
<br>
Is it when the source code is parsed, or at runtime when the f-string is evaluated?<br>
<br>
If the latter, then any process that works on bytecode (introspection tools, peep-hole optimisers etc) will need work.<br>
<br>
I understand that colorising editors and analysis tools which operate at the source code level will need work, that's fair enough.<br>
<br>
<br>
The PEP hints at things in this area in the "Specification", "Code equivalence" and "Expression evaluation" sections, and my guess is that it will (and should) happen during parsing, but I can't see where it comes right out and says it.<br>
<br>
Thanks, E.<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4