<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for dhellmann</title><link>https://disqus.com/by/dhellmann/</link><description></description><atom:link href="https://disqus.com/dhellmann/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 28 Jan 2017 17:38:23 -0000</lastBuildDate><item><title>Re: Producing Results Asynchronously¶</title><link>https://pymotw.com/3/asyncio/futures.html#comment-3125429505</link><description>&lt;p&gt;It's just for illustration.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sat, 28 Jan 2017 17:38:23 -0000</pubDate></item><item><title>Re: Composing Coroutines with Control Structures¶</title><link>https://pymotw.com/3/asyncio/control.html#comment-3123867981</link><description>&lt;p&gt;Yes, that's correct.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Fri, 27 Jan 2017 16:22:39 -0000</pubDate></item><item><title>Re: Executing Tasks Concurrently¶</title><link>https://pymotw.com/3/asyncio/tasks.html#comment-3123866742</link><description>&lt;p&gt;I haven't tested any of the code under 3.4, unfortunately. It sounds like the conversion you did was incomplete, based on the error message. A string is being passed somewhere that is expecting a coroutine.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Fri, 27 Jan 2017 16:21:52 -0000</pubDate></item><item><title>Re: Producing Results Asynchronously¶</title><link>https://pymotw.com/3/asyncio/futures.html#comment-3104208653</link><description>&lt;p&gt;register_callbacks() is a coroutine, so if it's called without the await I wouldn't think it would work properly.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Tue, 17 Jan 2017 11:24:34 -0000</pubDate></item><item><title>Re: Debugging with asyncio¶</title><link>https://pymotw.com/3/asyncio/debugging.html#comment-3104017484</link><description>&lt;p&gt;Yes, since inner() is a coroutine it can be used directly with await.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Tue, 17 Jan 2017 09:26:38 -0000</pubDate></item><item><title>Re: queue — Thread-safe FIFO Implementation¶</title><link>https://pymotw.com/3/queue/index.html#comment-3100657579</link><description>&lt;p&gt;No, not necessarily. The GIL is held between opcode execution, not for an entire expression or statement. So it's possible for the lock to switch while computing the key to use to pass to a dictionary, for instance, changing part of the inputs to the expression. And of course operations that require updating multiple data structures atomically need to be managed with a lock.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sun, 15 Jan 2017 09:28:15 -0000</pubDate></item><item><title>Re: namedtuple - Python Module of the Week</title><link>https://pymotw.com/2/collections/namedtuple.html#comment-3097496242</link><description>&lt;p&gt;Comments here are really not the best forum for that sort of question. You may want to try posting to the python-list mailing list.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Fri, 13 Jan 2017 10:42:33 -0000</pubDate></item><item><title>Re: Communication Between Processes - Python Module of the Week</title><link>https://pymotw.com/2/multiprocessing/communication.html#comment-3086268345</link><description>&lt;p&gt;I haven't worked with PyGame before, so I can't help with your question. You may have better luck asking on their mailing list or on python-list.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Fri, 06 Jan 2017 12:53:56 -0000</pubDate></item><item><title>Re: Communication Between Processes - Python Module of the Week</title><link>https://pymotw.com/2/multiprocessing/communication.html#comment-3064306353</link><description>&lt;p&gt;Good question. It doesn't matter how you save the reference to the lock. It doesn't know what object or code path is being protected. It's up to the users of the lock to coordinate and all use the same lock instance. One convenient way to do that is to attach the lock to the object being locked so it is easy to access, but that's not a requirement.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Thu, 22 Dec 2016 09:17:00 -0000</pubDate></item><item><title>Re: decimal – Fixed and floating point math - Python Module of the Week</title><link>https://pymotw.com/2/decimal/#comment-3046922869</link><description>&lt;p&gt;Decimals support the same formatting instructions as ints, floats, and other numerical types. &lt;a href="https://docs.python.org/3.5/library/string.html#formatspec" rel="nofollow noopener" target="_blank" title="https://docs.python.org/3.5/library/string.html#formatspec"&gt;https://docs.python.org/3.5...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sun, 11 Dec 2016 11:01:05 -0000</pubDate></item><item><title>Re: Scheduling Calls to Regular Functions¶</title><link>https://pymotw.com/3/asyncio/scheduling.html#comment-3046822681</link><description>&lt;p&gt;Good eyes, thanks! I found similar errors in a few other files and fixed them, too.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sun, 11 Dec 2016 09:33:34 -0000</pubDate></item><item><title>Re: threading — Manage Concurrent Operations¶</title><link>https://pymotw.com/3/threading/index.html#comment-3046792057</link><description>&lt;p&gt;Thanks, it looks like at some point I adjusted the timeouts to make them shorter, but I missed one. That's fixed now.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sun, 11 Dec 2016 09:02:13 -0000</pubDate></item><item><title>Re: Using SSL — PyMOTW 3</title><link>https://pymotw.com/3/asyncio/ssl.html#comment-3046783717</link><description>&lt;p&gt;Thanks, I broke the page rendering when I changed the file headers a little. I've fixed it here, too.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sun, 11 Dec 2016 08:53:05 -0000</pubDate></item><item><title>Re: Asynchronous I/O Using Coroutines and Streams¶</title><link>https://pymotw.com/3/asyncio/io_coroutine.html#comment-3046783458</link><description>&lt;p&gt;Thanks, I broke the page rendering when I changed the file headers a little. I've fixed it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sun, 11 Dec 2016 08:52:47 -0000</pubDate></item><item><title>Re: TCP/IP Client and Server - Python Module of the Week</title><link>https://pymotw.com/2/socket/tcp.html#comment-3040820476</link><description>&lt;p&gt;You'll probably have more luck with that level of question if you ask on python-list (&lt;a href="https://www.python.org/community/lists/)" rel="nofollow noopener" target="_blank" title="https://www.python.org/community/lists/)"&gt;https://www.python.org/comm...&lt;/a&gt; where more folks are actively discussing design questions like this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Wed, 07 Dec 2016 13:06:48 -0000</pubDate></item><item><title>Re: dbhash – DBM-style API for the BSD database library¶</title><link>https://pymotw.com/2/dbhash/index.html#comment-3032002956</link><description>&lt;p&gt;Thanks for reporting this problem. I have been working on the Python 3 updates (see &lt;a href="https://pymotw.com/3/)" rel="nofollow noopener" target="_blank" title="https://pymotw.com/3/)"&gt;https://pymotw.com/3/)&lt;/a&gt; so I've let this part of the site get a little stale. The links should now be pointing to the right places.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Fri, 02 Dec 2016 17:30:53 -0000</pubDate></item><item><title>Re: webbrowser – Displays web pages - Python Module of the Week</title><link>https://pymotw.com/2/webbrowser/#comment-3031987000</link><description>&lt;p&gt;Great example!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Fri, 02 Dec 2016 17:19:31 -0000</pubDate></item><item><title>Re: Executing Tasks Concurrently¶</title><link>https://pymotw.com/3/asyncio/tasks.html#comment-3031083696</link><description>&lt;p&gt;Hmm, yes, it seems I left a bit of cruft in at least one example. Thanks for pointing it out.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Fri, 02 Dec 2016 08:24:14 -0000</pubDate></item><item><title>Re: asyncio — Asynchronous I/O, event loop, and concurrency tools¶</title><link>https://pymotw.com/3/asyncio/#comment-3031082512</link><description>&lt;p&gt;Thanks for the kind words! I'm glad you've found this helpful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Fri, 02 Dec 2016 08:23:14 -0000</pubDate></item><item><title>Re: selectors — I/O Multiplexing Abstractions¶</title><link>https://pymotw.com/3/selectors/index.html#comment-3023973999</link><description>&lt;p&gt;For small amounts of data, under light load, there is not likely to be that much difference. You'll notice the difference under higher load, since buffers in the networking stack may fill up, or not, differently. The blocking socket will pause the application until more data arrives. The non-blocking socket will provide the data available, even if it is less than was requested by the read() call.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Mon, 28 Nov 2016 08:37:25 -0000</pubDate></item><item><title>Re: unittest — Automated Testing Framework¶</title><link>https://pymotw.com/3/unittest/index.html#comment-3022628876</link><description>&lt;p&gt;You’re absolutely right, thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sun, 27 Nov 2016 11:06:44 -0000</pubDate></item><item><title>Re: Producing Results Asynchronously¶</title><link>https://pymotw.com/3/asyncio/futures.html#comment-3021124012</link><description>&lt;p&gt;Your guess is right. The callbacks run as part of the event loop processing, so as long as control is inside one of your coroutines the callbacks won't execute. If your coroutine yields control, either by awaiting something or returning, the event loop will regain control and process the callbacks on the next iteration.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Sat, 26 Nov 2016 07:09:00 -0000</pubDate></item><item><title>Re: warnings — Non-fatal Alerts¶</title><link>https://pymotw.com/3/warnings/#comment-3003565486</link><description>&lt;p&gt;Yes, it's less than ideal, but according to the standard library documentation it's meant to be overridden. &lt;a href="https://docs.python.org/3.5/library/warnings.html" rel="nofollow noopener" target="_blank" title="https://docs.python.org/3.5/library/warnings.html"&gt;https://docs.python.org/3.5...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Tue, 15 Nov 2016 13:01:17 -0000</pubDate></item><item><title>Re: threading – Manage concurrent threads - Python Module of the Week</title><link>https://pymotw.com/2/threading/#comment-3003562622</link><description>&lt;p&gt;You're right, that's a typo. I probably had an earlier version of the example using 5 threads instead of 2, and failed to update the text when I updated the code.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Tue, 15 Nov 2016 12:59:35 -0000</pubDate></item><item><title>Re: threading – Manage concurrent threads - Python Module of the Week</title><link>https://pymotw.com/2/threading/#comment-3001913192</link><description>&lt;p&gt;If you're working with a queue, you should look at the join() method. &lt;a href="https://pymotw.com/2/Queue/#using-queues-with-threads" rel="nofollow noopener" target="_blank" title="https://pymotw.com/2/Queue/#using-queues-with-threads"&gt;https://pymotw.com/2/Queue/...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Hellmann</dc:creator><pubDate>Mon, 14 Nov 2016 13:18:51 -0000</pubDate></item></channel></rss>