<html>
<body>
You have a typo in your first sample, don't you? (See
below.)<br><br>
To my way of thinking, by the way, "for Types in Types" does
not follow the admonishment to use a separate variable name for each
concept / idea. "for Type in Types" certainly makes more
sense. "for Type in a.GetTypes()" makes sense.<br><br>
<br><br>
At 01:23 PM 6/1/2006, Lesley & Mitch Barnett wrote<br>
<blockquote type=cite class=cite cite="">
<font face="Arial, Helvetica" size=2 color="#000080">Here is the code in
the interpreter to show Types in Types: does work or is it a bug?<br>
<br>
IronPython 1.0.2328 (Beta) on .NET 2.0.50727.42<br>
Copyright (c) Microsoft Corporation. All rights reserved.<br>
>>> from System.Reflection import *<br>
>>> a = Assembly.LoadFrom("mapack.dll")<br>
>>> Types = a.GetTypes()<br>
>>> for Type in Types:</font></blockquote><br>
Next line needs to be "print Type" doesn't it? You're
just printing the value of Types, which doesn't change, once for each
value in Types.<br><br>
<blockquote type=cite class=cite cite="">
<font face="Arial, Helvetica" size=2 color="#000080">...
print Types<br>
...<br>
System.Type[]<br>
System.Type[]<br>
System.Type[]<br>
System.Type[]<br>
System.Type[]<br>
System.Type[]<br>
<br>
<br>
>>> Types = a.GetTypes()<br>
>>> for Types in Types:<br>
... print Types<br>
...<br>
Mapack.CholeskyDecomposition<br>
Mapack.EigenvalueDecomposition<br>
Mapack.LuDecomposition<br>
Mapack.Matrix<br>
Mapack.QrDecomposition<br>
Mapack.SingularValueDecomposition<br>
>>> <br>
<br>
[snip]</font></blockquote></body>
<br>
<br>
J. Merrill / Analytical Software Corp</html>