Any plans on re-implementing the built-in array module in IPY 2.0?
IronPython console: IronPython 2.0A3 (2.0.10724.00) on .NET 2.0.50727.832 Copyright (c) Microsoft Corporation. All rights reserved. >>> import array Traceback (most recent call last): File , line 0, in <string>##28 File , line 0, in _stub_##2 ImportError: No module named array >>> IronPython 1.1 (1.1) on .NET 2.0.50727.832 Copyright (c) Microsoft Corporation. All rights reserved. >>> import array >>> arr = array.array('I') >>> li = range(12) >>> li [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] >>> arr.fromlist(li) >>> arr array('I', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ]) >>> type(arr) <type 'array'> >>> Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import array >>> arr = array.array('I') >>> l = range(12) >>> l [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] >>> arr.fromlist(l) >>> arr array('I', [0L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L]) >>> type(arr) <type 'array.array'> >>> Thane Plummer TKP Inc. Augusta, GA No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.13/946 - Release Date: 8/10/2007 3:50 PM
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com