Skip to content

Commit 8656357

Browse files
committed
Updated contributors.
1 parent 4399957 commit 8656357

File tree

3 files changed

+57
-18
lines changed

3 files changed

+57
-18
lines changed

body.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
<header>
129129
<h1><span class="green">gevent</span> For the Working Python Developer</h1>
130130
<h3 class="author">
131-
<a href="http://www.stephendiehl.com">Stephen Diehl</a>
131+
Written by the Gevent Community
132132
</h3>
133133
</header>
134134

index.html

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
<header>
129129
<h1><span class="green">gevent</span> For the Working Python Developer</h1>
130130
<h3 class="author">
131-
<a href="http://www.stephendiehl.com">Stephen Diehl</a>
131+
Written by the Gevent Community
132132
</h3>
133133
</header>
134134

@@ -138,6 +138,10 @@ <h3 class="author">
138138

139139
<div class="toc">
140140
<ul>
141+
<li><a href="#introduction">Introduction</a><ul>
142+
<li><a href="#contributors">Contributors</a></li>
143+
</ul>
144+
</li>
141145
<li><a href="#core">Core</a><ul>
142146
<li><a href="#greenlets">Greenlets</a></li>
143147
<li><a href="#synchronous-asynchronous-execution">Synchronous &amp; Asynchronous Execution</a></li>
@@ -172,12 +176,27 @@ <h3 class="author">
172176
</li>
173177
</ul>
174178
</div>
175-
<h1 id="core">Core</h1>
179+
<h1 id="introduction">Introduction</h1>
176180
<p>The structure of this tutorial assumes an intermediate level
177181
knowledge of Python but not much else. No knowledge of
178182
concurrency is expected. The goal is to give you
179-
the tools you need to get going with gevent and use it to solve
180-
or speed up your applications today.</p>
183+
the tools you need to get going with gevent, help you tame
184+
your existing concurrency problems and start writing asynchronous
185+
applications today.</p>
186+
<h3 id="contributors">Contributors</h3>
187+
<p>In chronological order of contribution:
188+
<a href="http://www.stephendiehl.com">Stephen Diehl</a>
189+
<a href="https://github.com/jerem">J&eacute;r&eacute;my Bethmont</a>
190+
<a href="https://github.com/sww">sww</a>
191+
<a href="https://github.com/brunoqc">Bruno Bigras</a>
192+
<a href="https://github.com/dripton">David Ripton</a>
193+
<a href="https://github.com/traviscline">Travis Cline</a>
194+
<a href="https://github.com/Lothiraldan">Boris Feld</a></p>
195+
<p>This is a collaborative document published under MIT license.
196+
Have something to add? See a typo? Fork and issue a
197+
pull request <a href="https://github.com/sdiehl/gevent-tutorial">Github</a>.
198+
Any and all contributions are welcome.</p>
199+
<h1 id="core">Core</h1>
181200
<h2 id="greenlets">Greenlets</h2>
182201
<p>The primary pattern used in gevent is the <strong>Greenlet</strong>, a
183202
lightweight coroutine provided to Python as a C extension module.
@@ -313,16 +332,16 @@ <h2 id="synchronous-asynchronous-execution">Synchronous &amp; Asynchronous Execu
313332
Task 8 done
314333
Task 9 done
315334
Asynchronous:
316-
Task 3 done
317-
Task 5 done
318-
Task 4 done
319-
Task 6 done
320335
Task 0 done
321336
Task 2 done
322-
Task 8 done
337+
Task 6 done
338+
Task 5 done
339+
Task 3 done
340+
Task 4 done
341+
Task 9 done
323342
Task 1 done
324343
Task 7 done
325-
Task 9 done
344+
Task 8 done
326345
</pre></code></p>
327346
<p>In the synchronous case all the tasks are run sequentially,
328347
which results in the main programming <em>blocking</em> (
@@ -964,6 +983,7 @@ <h2 id="gevent-zeromq">Gevent ZeroMQ</h2>
964983
gevent-zeromq</code></p>
965984
<pre><code class="python">
966985
# Note: Remember to ``pip install pyzmq gevent_zeromq``
986+
import gevent
967987
from gevent_zeromq import zmq
968988

969989
# Global Context
@@ -981,7 +1001,7 @@ <h2 id="gevent-zeromq">Gevent ZeroMQ</h2>
9811001

9821002
def client():
9831003
client_socket = context.socket(zmq.REP)
984-
client_socket.connect("tcp://*:5000")
1004+
client_socket.connect("tcp://127.0.0.1:5000")
9851005

9861006
for request in range(1,10):
9871007

@@ -990,10 +1010,10 @@ <h2 id="gevent-zeromq">Gevent ZeroMQ</h2>
9901010
# Implicit context switch occurs here
9911011
client_socket.send("World")
9921012

993-
publisher = gevent.spawn(server),
994-
client = gevent.spawn(client),
1013+
publisher = gevent.spawn(server)
1014+
client = gevent.spawn(client)
9951015

996-
gevent.joinall( publisher + client )
1016+
gevent.joinall([publisher, client])
9971017

9981018
</pre>
9991019

tutorial.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
[TOC]
22

3-
# Core
3+
# Introduction
44

55
The structure of this tutorial assumes an intermediate level
66
knowledge of Python but not much else. No knowledge of
77
concurrency is expected. The goal is to give you
8-
the tools you need to get going with gevent and use it to solve
9-
or speed up your applications today.
8+
the tools you need to get going with gevent, help you tame
9+
your existing concurrency problems and start writing asynchronous
10+
applications today.
11+
12+
### Contributors
13+
14+
In chronological order of contribution:
15+
[Stephen Diehl](http://www.stephendiehl.com)
16+
[J&eacute;r&eacute;my Bethmont](https://github.com/jerem)
17+
[sww](https://github.com/sww)
18+
[Bruno Bigras](https://github.com/brunoqc)
19+
[David Ripton](https://github.com/dripton)
20+
[Travis Cline](https://github.com/traviscline)
21+
[Boris Feld](https://github.com/Lothiraldan)
22+
23+
This is a collaborative document published under MIT license.
24+
Have something to add? See a typo? Fork and issue a
25+
pull request [Github](https://github.com/sdiehl/gevent-tutorial).
26+
Any and all contributions are welcome.
27+
28+
# Core
1029

1130
## Greenlets
1231

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy