[Ironpython-users] Microsoft.Scripting.Metadata is used for?

2015-12-11 Thread Stéphane Lozier
I'm just wondering what Microsoft.Scripting.Metadata is used for. As far as I can tell it's used by the Microsoft.Scripting.Utils.ReflectionUtils.GetVisibleExtensionMethods (in main\Runtime\Microsoft.Dynamic\Utils\ReflectionUtils.cs) which in turn is used by nothing (other than by some commented o

Re: [Ironpython-users] Cannot create instances of that class because it is abstract

2016-01-29 Thread Stéphane Lozier
Shapefile is an interface with a CoClassAttribute to ShapefileClass (which means when you do new Shapefile() in C# it creates an instance of ShapefileClass). I have no idea what the correct behaviour for IronPython should be, but in this case MapWinGIS.Shapefile gives you the interface. You could

Re: [Ironpython-users] Cannot create instances of that class because it is abstract

2016-01-29 Thread Stéphane Lozier
gt; bool > > // MapWinGIS.ShapefileClass > [DispId(11)] > [MethodImpl(MethodImplOptions.InternalCall)] > public virtual extern bool Open([MarshalAs(UnmanagedType.BStr)] [In] > string ShapefileName, [MarshalAs(UnmanagedType.Interface)] [In] ICallback > cBack = null); > > >

[Ironpython-users] Executing scripts in parallel

2016-04-04 Thread Stéphane Lozier
Has anyone looked at executing scripts in parallel from C# using the same ScriptEngine? I tried without much success and I was wondering if it's just not something the engine can do, or if by tightening up thread safety in a few places it could be made to work properly. Stéphane _

Re: [Ironpython-users] unblocking a file in ironpython

2016-07-01 Thread Stéphane Lozier
Basically what you're trying to do is get rid of the Zone.Identifier alternate stream of the file. You can see these from the command prompt using the dir /R command (windows 7 or later?). I've deleted these before using C# and PInvoke. The file delete methods of .NET don't let you delete alternat

Re: [Ironpython-users] no module named urllib

2016-07-15 Thread Stéphane Lozier
This may be a silly question, but are you running your code with frames (or maybe full frames) enabled? I seem to remember the six module requiring this... On Jul 15, 2016 10:54 AM, "László Frank" wrote: > First off, many thanks for your continuous help Thimo. > > And actually not, I did not tr

Re: [Ironpython-users] Gitter-chat?

2016-11-14 Thread Stéphane Lozier
The gitter chat moved from https://gitter.im/IronLanguages/main to https://gitter.im/IronLanguages because we wanted it to be a room that covers all the projects (ipy2, ipy3 and dlr). However, I wonder if the new room is restricted to organization members only? It may explain why you're not able to

Re: [Ironpython-users] Retrieving comments from FunctionDefinition nodes in c#

2017-05-04 Thread Stéphane Lozier
I believe the documentation is part of the body of the function. Maybe try node.Body.Documentation? Stéphane On Tue, May 2, 2017 at 8:08 AM, Venkatesh Potluri wrote: > Hi list, > > I am unable to extract comments corresponding to a python function > using IronPython in c#. Despite the python co

Re: [Ironpython-users] Cpython module import: ipy.exe vs. ScriptEngine semantics

2017-08-09 Thread Stéphane Lozier
Notice that in the traceback it's listing the failing files as coming from C:\Python27\Lib. IronPython has its own set of standard libraries and those need to be included when using ScriptEngine. When you use ipy.exe it loads the proper standard libraries (if you type sys.path in the interactive yo

Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-03 Thread Stéphane Lozier
The .NET Core version of IronPython does not support assembly generation. I haven't tried it myself, but you could probably compile the assembly using the full framework version and then run it with .NET Core 2.0 (assuming you're not using unsupported APIs). Stéphane On Tue, Apr 3, 2018, 5:16 PM

Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-04 Thread Stéphane Lozier
oading the dll in the embedded IronPython? > > Thanks for your help, I am super hopeful I can get this working. > Josiah > > On Tue, Apr 3, 2018 at 2:39 PM Stéphane Lozier > wrote: > >> The .NET Core version of IronPython does not support assembly generation. >> I h

Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-05 Thread Stéphane Lozier
ges/ironpython2/releases. Is there a release with dotnet core > or can I build one? > > I did notice that I can't compile via running the compile script in the > embedded IronPython in dotnet core, as CompileModule is not supported. > > Thanks so much for answering my questi