[IronPython] Bug: Builtin thread module incomplete

Anthony Tarlano mailinglist.account at gmail.com
Fri Apr 28 12:04:23 CEST 2006


The builtin IronPython thread module (./IronPython/Modules/thread.cs)
is missing several module functions, such as 'start_new',
'exit_thread' and 'allocate'. (see below)

The missing 'start_new' is causing some cpython scripts not to run for
me on IronPython. Is this going to be fixed for 1.0?


CPC220# python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import thread; dir(thread)
['LockType', '__doc__', '__name__', '_local', 'allocate', 'allocate_lock', 'erro
r', 'exit', 'exit_thread', 'get_ident', 'interrupt_main', 'start_new', 'start_ne
w_thread']
>>> ^Z

CPC220# python.net
IronPython 1.0.60420 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import thread; dir(thread)
['Equals', 'Finalize', 'GetHashCode', 'GetType', 'LockType', 'MemberwiseClone',
'ToString', '__builtins__', '__class__', '__dict__', '__init__', '__module__', '
__name__', 'allocate_lock', 'error', 'exit', 'get_ident', 'interrupt_main', 'loc
k', 'start_new_thread']
>>> ^Z



More information about the Ironpython-users mailing list