<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/eventlet.git/tests/greenpool_test.py, branch codecov</title>
<subtitle>github.com: eventlet/eventlet.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/'/>
<entry>
<title> #53: Make a GreenPile with no spawn()s an empty sequence. (#555)</title>
<updated>2019-03-04T14:18:19+00:00</updated>
<author>
<name>nat-goodspeed</name>
<email>nat@lindenlab.com</email>
</author>
<published>2019-03-04T14:18:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=d027c72f546e624fff2fdfc3466257ac2810463b'/>
<id>d027c72f546e624fff2fdfc3466257ac2810463b</id>
<content type='text'>
* #53: Make a GreenPile with no spawn()s an empty sequence.

Remove the GreenPile.used flag. This was probably originally intended to
address the potential problem of GreenPool.starmap() returning a (still empty)
GreenPile, a problem that has since been addressed by using GreenMap which
requires an explicit marker from the producer. Currently the only effect of
GreenPile.used is to make GreenPile hang when used with an empty sequence.

Test the empty GreenPile case.

Even though GreenMap is probably not intended for general use, make it
slightly more consumer-friendly by adding a done_spawning() method instead of
requiring the consumer to spawn(return_stop_iteration). GreenPool._do_map()
now calls done_spawning(). Remove return_stop_iteration().

Since done_spawning() merely spawns a function that returns StopIteration, any
existing consumer that explicitly does the same will still work. However, this
is potentially a breaking change if any consumers specifically reference
eventlet.greenpool.return_stop_iteration() for that or any other purpose.

Refactor GreenPile.next(), breaking out the bookkeeping detail to new _next()
method. Make subclass GreenMap call base-class _next(), eliminating the need
to replicate that bookkeeping detail.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* #53: Make a GreenPile with no spawn()s an empty sequence.

Remove the GreenPile.used flag. This was probably originally intended to
address the potential problem of GreenPool.starmap() returning a (still empty)
GreenPile, a problem that has since been addressed by using GreenMap which
requires an explicit marker from the producer. Currently the only effect of
GreenPile.used is to make GreenPile hang when used with an empty sequence.

Test the empty GreenPile case.

Even though GreenMap is probably not intended for general use, make it
slightly more consumer-friendly by adding a done_spawning() method instead of
requiring the consumer to spawn(return_stop_iteration). GreenPool._do_map()
now calls done_spawning(). Remove return_stop_iteration().

Since done_spawning() merely spawns a function that returns StopIteration, any
existing consumer that explicitly does the same will still work. However, this
is potentially a breaking change if any consumers specifically reference
eventlet.greenpool.return_stop_iteration() for that or any other purpose.

Refactor GreenPile.next(), breaking out the bookkeeping detail to new _next()
method. Make subclass GreenMap call base-class _next(), eliminating the need
to replicate that bookkeeping detail.
</pre>
</div>
</content>
</entry>
<entry>
<title>external dependencies for six, monotonic, dnspython</title>
<updated>2018-05-10T17:33:32+00:00</updated>
<author>
<name>nat-goodspeed</name>
<email>nat@lindenlab.com</email>
</author>
<published>2018-05-10T17:33:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=53b63c66f0d9a7d6ba9182a207529ebd949e95f3'/>
<id>53b63c66f0d9a7d6ba9182a207529ebd949e95f3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Type check Semaphore, GreenPool arguments; Thanks to Matthew D. Pagel</title>
<updated>2016-12-22T23:10:07+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2016-12-22T22:36:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=79292bd16a6a1384d8c3d11bcefa40eb53bbeae4'/>
<id>79292bd16a6a1384d8c3d11bcefa40eb53bbeae4</id>
<content type='text'>
- export Event, *Semaphore in `eventlet.` top level namespace

https://github.com/eventlet/eventlet/issues/364
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- export Event, *Semaphore in `eventlet.` top level namespace

https://github.com/eventlet/eventlet/issues/364
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos detected by toolkit misspellings</title>
<updated>2015-02-07T15:41:47+00:00</updated>
<author>
<name>ChangBo Guo(gcb)</name>
<email>eric.guo@easystack.cn</email>
</author>
<published>2015-01-24T02:22:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=3866cd88e46e8332b04f30c89d99de1d94ab5c24'/>
<id>3866cd88e46e8332b04f30c89d99de1d94ab5c24</id>
<content type='text'>
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Closes GH #194
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Closes GH #194
</pre>
</div>
</content>
</entry>
<entry>
<title>PEP-8 fixes</title>
<updated>2014-08-27T06:21:55+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2014-07-18T11:21:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=203e629212be5cf6e53d577734421d494b255754'/>
<id>203e629212be5cf6e53d577734421d494b255754</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: deprecated TestCase.assert_() -&gt; assert keyword</title>
<updated>2014-07-16T11:15:50+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2014-07-16T09:54:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=a651a3097f7ba957ad29342dac011d5a9218e76b'/>
<id>a651a3097f7ba957ad29342dac011d5a9218e76b</id>
<content type='text'>
https://github.com/eventlet/eventlet/issues/101
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/eventlet/eventlet/issues/101
</pre>
</div>
</content>
</entry>
<entry>
<title>python3 compatibility</title>
<updated>2014-04-24T14:11:37+00:00</updated>
<author>
<name>Sergey Shepelev</name>
<email>temotor@gmail.com</email>
</author>
<published>2014-04-24T13:51:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=cbd404d56e231ea5419f07795a12d7082dd70ec4'/>
<id>cbd404d56e231ea5419f07795a12d7082dd70ec4</id>
<content type='text'>
- __next__ for iterator interface
- six.next() to get next item
- list(dict.keys())
- popen2.popen4 -&gt; subprocess
- s2b -&gt; b"..." literals
- deprecated assertEquals -&gt; assertEqual
- hub_test test_fork using run_python
- 1L -&gt; 1 long literal
- many PEP-8 fixes
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- __next__ for iterator interface
- six.next() to get next item
- list(dict.keys())
- popen2.popen4 -&gt; subprocess
- s2b -&gt; b"..." literals
- deprecated assertEquals -&gt; assertEqual
- hub_test test_fork using run_python
- 1L -&gt; 1 long literal
- many PEP-8 fixes
</pre>
</div>
</content>
</entry>
<entry>
<title>python3 compatibility: range, zip, StringIO</title>
<updated>2014-04-23T08:20:10+00:00</updated>
<author>
<name>Viktors</name>
<email>viktor.sergeyev@gmail.com</email>
</author>
<published>2014-04-17T18:07:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=92d12567b20dbe159a1a8a8db4d2cd05d15e6588'/>
<id>92d12567b20dbe159a1a8a8db4d2cd05d15e6588</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>python3 compat fixes</title>
<updated>2014-03-28T06:58:14+00:00</updated>
<author>
<name>Victor Sergeyev</name>
<email>vsergeyev@mirantis.com</email>
</author>
<published>2013-11-25T16:21:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=2b2f0a96b44779c5b98c851c55d70ec5e46e41f9'/>
<id>2b2f0a96b44779c5b98c851c55d70ec5e46e41f9</id>
<content type='text'>
https://github.com/eventlet/eventlet/pull/59
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/eventlet/eventlet/pull/59
</pre>
</div>
</content>
</entry>
<entry>
<title>python3 compat: 2to3: `except E as e:` syntax</title>
<updated>2013-12-03T18:31:55+00:00</updated>
<author>
<name>Davanum Srinivas</name>
<email>dims@linux.vnet.ibm.com</email>
</author>
<published>2013-09-23T02:56:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/eventlet.git/commit/?id=80633ab22486228a64184bb9d8d6fd0ea7977677'/>
<id>80633ab22486228a64184bb9d8d6fd0ea7977677</id>
<content type='text'>
First step to Python 3 compatibility
"2to3 -w -f except ." See [1]

[1] http://docs.python.org/2/library/2to3.html#fixers
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
First step to Python 3 compatibility
"2to3 -w -f except ." See [1]

[1] http://docs.python.org/2/library/2to3.html#fixers
</pre>
</div>
</content>
</entry>
</feed>
