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/20170828/7a37f4c3/attachment.html below:

<div dir="ltr"><div><div>A question appeared here about a simple mental model for PEP 550.<br></div>It looks much clearer now, than in the first version, but I still would like to clarify: can one say that PEP 550 just provides more fine-grained version of threading.local(), that works not only per thread, but even per coroutine within the same thread?<br><br>--<br></div>Ivan<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 August 2017 at 17:29, Yury Selivanov <span dir="ltr"><<a href="mailto:yselivanov.ml@gmail.com" target="_blank">yselivanov.ml@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Aug 28, 2017 at 11:26 AM, Ethan Furman <<a href="mailto:ethan@stoneleaf.us">ethan@stoneleaf.us</a>> wrote:<br>
> On 08/28/2017 04:19 AM, Stefan Krah wrote:<br>
><br>
>> What about this?<br>
>><br>
>> async def bar():<br>
>>  Â  Â  setcontext(Context(prec=1))<br>
>>  Â  Â  for i in range(10):<br>
>>  Â  Â  Â  Â  await asyncio.sleep(1)<br>
>>  Â  Â  Â  Â  yield i<br>
>><br>
>> async def foo():<br>
>>  Â  Â  async for i in bar():<br>
>>  Â  Â  Â  Â  # ctx.prec=1?<br>
>>  Â  Â  Â  Â  print(Decimal(100) / 3)<br>
><br>
><br>
> If I understand correctly, ctx.prec is whatever the default is, because foo<br>
> comes before bar on the stack, and after the current value for i is grabbed<br>
> bar is no longer executing, and therefore no longer on the stack.  I hope<br>
> I'm right.  ;)<br>
<br>
</span>You're right!<br>
<span class="HOEnZb"><font color="#888888"><br>
Yury<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/levkivskyi%40gmail.com" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/options/python-dev/<wbr>levkivskyi%40gmail.com</a><br>
</div></div></blockquote></div><br></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