[Stackless-checkins] r52325 - stackless/sandbox/libraries/uthread-ccp/uthread.py
richard.tew
python-checkins at python.org
Fri Oct 13 19:03:26 CEST 2006
Author: richard.tew
Date: Fri Oct 13 19:03:25 2006
New Revision: 52325
Modified:
stackless/sandbox/libraries/uthread-ccp/uthread.py
Log:
Preparing to use this for slpmonkeypatch, so updating the copyright and module doc string.
Modified: stackless/sandbox/libraries/uthread-ccp/uthread.py
==============================================================================
--- stackless/sandbox/libraries/uthread-ccp/uthread.py (original)
+++ stackless/sandbox/libraries/uthread-ccp/uthread.py Fri Oct 13 19:03:25 2006
@@ -1,17 +1,17 @@
-"""Python Microthread Library, version 0.1
-Microthreads are useful when you want to program many behaviors
-happening simultaneously. Simulations and games often want to model
-the simultaneous and independent behavior of many people, many
-businesses, many monsters, many physical objects, many spaceships, and
-so forth. With microthreads, you can code these behaviors as Python
-functions. Microthreads use Stackless Python. For more details, see
-http://world.std.com/~wware/uthread.html"""
+"""Python Microthread Library, version 1.0
+Stackless adds tasklets to Python, a more modern form of the
+microthreads this library originally provided. This highly
+modified version of the original uthread library is used
+internally at CCP Games and provides a range of useful
+functions and classes.
+"""
-__version__ = "0.1"
+__version__ = "1.0"
__license__ = \
-"""Python Microthread Library version 0.1
+"""Python Microthread Library version 1.0
Copyright (C)2000 Will Ware, Christian Tismer
+Copyright (C)2006 CCP Games
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
@@ -61,15 +61,13 @@
else:
LogTraceback(text)
-tasks = [] # bogus breyta
-
-# handled internally
+# Internal Stackless functionality.
schedule = stackless.schedule
# We need to subclass it so that we can store attributes on it.
class Tasklet(stackless.tasklet):
pass
-
+
def new(func, *args, **kw):
return Tasklet(func)(*args, **kw)
_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins
More information about the Stackless-checkins
mailing list