Author: Armin Rigo <[email protected]>
Branch: extradoc
Changeset: r4973:0c62020c9d21
Date: 2013-05-07 14:35 +0200
http://bitbucket.org/pypy/extradoc/changeset/0c62020c9d21/
Log: Stuff that was left around
diff --git a/talk/pycon2013/pypy_without_gil/message_passing.py
b/talk/pycon2013/pypy_without_gil/message_passing.py
--- a/talk/pycon2013/pypy_without_gil/message_passing.py
+++ b/talk/pycon2013/pypy_without_gil/message_passing.py
@@ -24,5 +24,4 @@
running_threads -= 1
else:
num += 1
-
print num
diff --git a/talk/pycon2013/pypy_without_gil/transactions2.py
b/talk/pycon2013/pypy_without_gil/transactions2.py
--- a/talk/pycon2013/pypy_without_gil/transactions2.py
+++ b/talk/pycon2013/pypy_without_gil/transactions2.py
@@ -8,11 +8,12 @@
def do_stuff_for_all(lst):
+ #for x in lst:
+ # do_stuff(x)
+
for x in lst:
- do_stuff(x)
- #for x in lst:
- # transaction.add(do_stuff, x)
- #transaction.run()
+ transaction.add(do_stuff, x)
+ transaction.run()
do_stuff_for_all(range(20))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit