<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 04/26/2018 11:18 AM, Chris Angelico
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPTjJmrf8bV=68_gQZ6aCfZrB+SpLBri3pMv2Loqcp=piAE-jw@mail.gmail.com">
<pre wrap="">In the reference implementation, it's just DUP_TOP followed by
STORE_FAST (well, technically by "whatever the assignment compiles
to", as it could be affected by global/nonlocal, closures, etc). Is
there much advantage to creating a new opcode?</pre>
</blockquote>
<br>
Probably not much, but I thought we now lived in an age of wonders
where common sequences of opcodes were getting mashed together into
new more-complicated-but-redundant bytecodes (e.g.
BUILD_MAP_UNPACK_WITH_CALL) just to save on dispatch overhead.
You're right, it'd be a micro-optimization, and its value would be
debatable.<br>
<br>
<br>
<i>/arry</i><br>
</body>
</html>