[IronPython] Can't dir ArgIterator
Dave Fugate
dfugate at microsoft.com
Mon Apr 27 17:31:34 CEST 2009
We already have a bug on this one. Please vote for http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=17235.
Thanks,
Dave
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Monday, April 27, 2009 8:26 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Can't dir ArgIterator
Curt Hagenlocher wrote:
> I ran into this a few months back and concluded that it was some kind
> of internal CLR issue. ArgIterator is a special type, most of whose
> methods are internal and/or unsafe, and the CLR doesn't seem to like
> it when we try to specialize a generic method using that type.
I'm using a Wing script to generate 'pi files' (interface files) to give
me autocomplete on .NET assemblies and types. It introspects everything
in the module and dies when it hits ArgIterator.
I can put code in it to workaround it, but pthpththpbt... :-)
Michael
>
> Is there any particular goal you have where you're trying to use
> ArgIterator?
>
> On Mon, Apr 27, 2009 at 7:54 AM, Michael Foord
> <fuzzyman at voidspace.org.uk <mailto:fuzzyman at voidspace.org.uk>> wrote:
>
> Hello guys,
>
> >From a standard install of IronPython 2.0.1 on Vista 64, calling
> dir on System.ArgIterator blows up:
>
> C:\compile>"C:\Program Files (x86)\IronPython 2.0.1\ipy.exe" -D
> -X:TabCompletion
> -X:ColorfulConsole
> IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.3074
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from System import ArgIterator
> >>> dir(ArgIterator)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> SystemError: An attempt was made to load a program with an
> incorrect format. (Ex
> ception from HRESULT: 0x8007000B)
> >>>
>
>
> Michael
>
> --
> http://www.ironpythoninaction.com/
> http://www.voidspace.org.uk/blog
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Ironpython-users
mailing list