start_new, exit_thread and allocate all appear to be undocumented and their __doc__ says they're just obsolete synonyms, which explains how we missed them.
But yes, we can make these call the correctly named versions so that old scripts don't have to be modified. I've opened a beta 7 bug for this so it should be fixed in the next release. Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Tarlano Sent: Friday, April 28, 2006 3:04 AM To: Discussion of IronPython Subject: [IronPython] Bug: Builtin thread module incomplete 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 _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
