Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Thread.__delete: Discussion of internal obscurities belongs in comments | Tim Peters | 2004-07-21 | 1 | -31/+28 |
| | | | | | | | | rather than in docstrings. Rewrote so that _active_limbo_lock is released no matter what happens (it could have been left locked if _sys got None'd out). Use "in" in preference to has_key() for dict lookup. Don't bother looking for 'dummy_threading' in sys.modules unless KeyError is raised. Since the heart of the method is the del, do that in only one place. | ||||
* | Fix bug where a KeyError was raised if -O was being used for the interpreter | Brett Cannon | 2004-07-21 | 1 | -1/+33 |
| | | | | | | | | | and Thread.__delete() was called after a Thread instance was created. Problem resulted from a currentThread() call in an 'assert' statement being optimized out and dummy_thread.get_ident() always returning -1 and thus overwriting the entry for the _MainThread() instance created in 'threading' at import time. Closes bug #993394. | ||||
* | Implemented thread-local data as proposed on python-dev: | Jim Fulton | 2004-07-14 | 1 | -1/+9 |
| | | | | http://mail.python.org/pipermail/python-dev/2004-June/045785.html | ||||
* | threading.Thread objects will now print a traceback for an exception raised | Brett Cannon | 2004-07-03 | 1 | -2/+38 |
| | | | | | | | during interpreter shutdown instead of masking it with another traceback about accessing a NoneType when trying to print the exception out in the first place. Closes bug #754449 (using patch #954922). | ||||
* | Remove calls to currentThread() in _Condition methods that were side-effect. | Brett Cannon | 2004-03-08 | 1 | -2/+0 |
| | | | | | | | | | Side-effects were deemed unnecessary and were causing problems at shutdown time when threads were catching exceptions at start time and then triggering exceptions trying to call currentThread() after gc'ed. Masked the initial exception which was deemed bad. Fixes bug #754449 . | ||||
* | * Move collections.deque() in from the sandbox | Raymond Hettinger | 2004-01-29 | 1 | -2/+3 |
| | | | | | | * Add unittests, newsitem, and whatsnew * Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py * Docs are forthcoming | ||||
* | Add traceback.format_exc(). | Neil Schemenauer | 2003-11-05 | 1 | -5/+2 |
| | |||||
* | Make the classes exposed by threading.py new-style classes. This is | Tim Peters | 2003-07-01 | 1 | -3/+7 |
| | | | | mostly for convenience and to aid debugging. | ||||
* | Resolved minor XXX question in the obvious way. | Tim Peters | 2003-07-01 | 1 | -1/+1 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2003-06-29 | 1 | -2/+2 |
| | |||||
* | Remove stub settrace() and setprofile() calls. | Jeremy Hylton | 2003-06-29 | 1 | -8/+0 |
| | |||||
* | Add settrace() and setprofile() functions to the threading library. | Jeremy Hylton | 2003-06-29 | 1 | -0/+20 |
| | |||||
* | Provide dummy (do-nothing) settrace() and setprofile() functions until | Tim Peters | 2003-06-29 | 1 | -1/+9 |
| | | | | Jeremy can check in the real things. | ||||
* | Get rid of many apply() calls. | Guido van Rossum | 2003-02-27 | 1 | -6/+6 |
| | |||||
* | - prefer "import ... as" to "import / (assignments) / del" for most things | Fred Drake | 2002-12-30 | 1 | -18/+11 |
| | | | | | - when the thread module isn't available, subsequent attempts to import threading should not suceed | ||||
* | Add __all__. (Brett Cannon.) | Guido van Rossum | 2002-12-30 | 1 | -0/+2 |
| | |||||
* | The _Event class should be more careful with releasing its lock when | Guido van Rossum | 2002-11-21 | 1 | -8/+14 |
| | | | | | | | | interrupted. A try/finally will do nicely. Maybe other classes need this too, but since they manipulate more state it's less clear that that is always the right thing, and I'm in a hurry. Backport candidate. | ||||
* | Docstring nits: The module is neither proposed nor new. | Jeremy Hylton | 2002-08-14 | 1 | -1/+1 |
| | |||||
* | Explain use of currentThread() in _Condition methods. | Jeremy Hylton | 2002-08-14 | 1 | -2/+2 |
| | |||||
* | Explain a little more. | Jeremy Hylton | 2002-08-14 | 1 | -0/+1 |
| | |||||
* | Explain a minor mystery. | Jeremy Hylton | 2002-08-14 | 1 | -0/+1 |
| | |||||
* | Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i) | Raymond Hettinger | 2002-06-30 | 1 | -2/+1 |
| | |||||
* | Partial introduction of bools where appropriate. | Guido van Rossum | 2002-04-07 | 1 | -19/+19 |
| | |||||
* | Convert a pile of obvious "yes/no" functions to return bool. | Tim Peters | 2002-04-04 | 1 | -2/+2 |
| | |||||
* | SF #515023. Make _DummyThread.join() signature match base class (Thread) | Neal Norwitz | 2002-02-19 | 1 | -1/+1 |
| | |||||
* | Thread.__bootstrap(): ignore exceptions in the self.__delete() call in | Guido van Rossum | 2001-12-28 | 1 | -1/+4 |
| | | | | | | | | | | | | the finally clause. An exception here could happen when a daemon thread exits after the threading module has already been trashed by the import finalization, and there's not much of a point in trying to insist doing the cleanup in that stage. This should fix SF bug ##497111: active_limbo_lock error at program exit. 2.1.2 and 2.2.1 Bugfix candidate! | ||||
* | Whitespace normalization. | Tim Peters | 2001-09-18 | 1 | -4/+4 |
| | |||||
* | Patch #428326: New class threading.Timer. | Martin v. Löwis | 2001-09-05 | 1 | -1/+30 |
| | |||||
* | Added new BoundedSemaphore class. Closes bug 452836. | Skip Montanaro | 2001-08-20 | 1 | -0/+15 |
| | |||||
* | of course I muffed it separating the notes code from the initial_value | Skip Montanaro | 2001-08-19 | 1 | -4/+4 |
| | | | | code. grrr... | ||||
* | add debug calls to self._note for the Semaphore class. This closes bug | Skip Montanaro | 2001-08-19 | 1 | -0/+9 |
| | | | | | 443614. I will submit a new feature request and patch to threading.py and libthreading.tex to address the bounded semaphore issue. | ||||
* | Remove unused imports (PyChecker) | Andrew M. Kuchling | 2001-08-13 | 1 | -4/+0 |
| | |||||
* | _Condition.wait(): never sleep longer than the timeout time remaining, | Tim Peters | 2001-08-12 | 1 | -4/+11 |
| | | | | | and even if we have a long time left to wait, try the lock at least 20 times/second. | ||||
* | SF bug [#410708] Condition.wait() and KeyboardInterrupt. | Tim Peters | 2001-04-02 | 1 | -23/+25 |
| | | | | | | http://sourceforge.net/tracker/?func=detail&aid=410708&group_id=5470&atid=105470 Added try/finally around Condition.wait() guts, so that the lock state gets restored at the end no matter what happens. | ||||
* | Whitespace normalization. | Tim Peters | 2001-01-15 | 1 | -3/+3 |
| | |||||
* | Comment out a debugging print statement that triggered a complaint in | Guido van Rossum | 2000-12-15 | 1 | -1/+1 |
| | | | | c.l.py. | ||||
* | Revise to use atexit instead of monkeying with sys.exitfunc directly. | Fred Drake | 2000-08-18 | 1 | -9/+2 |
| | |||||
* | patch from Charles Waldman-- | Jeremy Hylton | 2000-06-01 | 1 | -0/+1 |
| | | | | define ThreadError (== thread.error); docs should be updated, too | ||||
* | Fix a typo in a comment | Andrew M. Kuchling | 2000-02-29 | 1 | -1/+1 |
| | |||||
* | The third and final doc-string sweep by Ka-Ping Yee. | Guido van Rossum | 2000-02-04 | 1 | -2/+1 |
| | | | | | | | | The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac. | ||||
* | Duncan Grisby noted a typo in _DummyThread. | Guido van Rossum | 1999-09-29 | 1 | -1/+1 |
| | |||||
* | Get rid of tabnanny's last complaints. | Guido van Rossum | 1998-06-09 | 1 | -3/+3 |
| | |||||
* | Two places where _time() should be used said time.time(), which | Guido van Rossum | 1998-05-29 | 1 | -2/+2 |
| | | | | doesn't work of course. | ||||
* | Use random instead of whrandom. | Guido van Rossum | 1998-05-20 | 1 | -2/+2 |
| | |||||
* | New Java-style threading module. The doc strings are in a separate module. | Guido van Rossum | 1998-04-09 | 1 | -0/+638 |