Re: [IronPython] ElementTree bug?

2010-06-19 Thread David Escobar
Good to know. Thank you! On Sat, Jun 19, 2010 at 2:01 AM, Seo Sanghyeon wrote: > 2010/6/19 David Escobar : > > So is this a known bug, or is expat one of the C-based extension modules > > that IronPython doesn't handle yet? > > expat is one of C-based extension modul

Re: [IronPython] ElementTree bug?

2010-06-18 Thread David Escobar
So is this a known bug, or is expat one of the C-based extension modules that IronPython doesn't handle yet? On Fri, Jun 18, 2010 at 11:56 AM, W. Matthew Wilson wrote: > On Fri, Jun 18, 2010 at 2:51 PM, David Escobar > wrote: > > Hi everyone, > > There seems to be

[IronPython] ElementTree bug?

2010-06-18 Thread David Escobar
Hi everyone, There seems to be an inconsistency in the ElementTree class between CPython and IronPython. In CPython 2.6.4: *Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import xml.e

Re: [IronPython] Convert between python array and .NET Array

2010-06-11 Thread David Escobar
This worked for me (based on the code you provided): import clr from System import Array dest = Array[str](bytes) On Fri, Jun 11, 2010 at 9:51 PM, Marcel wrote: > I have a python method that returns a Python byte array.array('c'). > > Now, I want to copy this array using > System.Runtime.Inte

Re: [IronPython] Internal Assembly Dependency

2010-05-26 Thread David Escobar
I had a similar problem when using ctypes to access a Windows .dll. Before calling the method that relies on the MathNet.Iridium assembly, try setting the current working directory to the folder containing your 1st assembly (the one you reference directly). clr.AddReferenceToFileAndPath(mypath) im

Re: [IronPython] Quickstart guide for Ironpython Studio

2010-04-26 Thread David Escobar
What about SharpDevelop? They have excellent IronPython support - including a Windows Forms designer. http://www.sharpdevelop.com/OpenSource/SD/Default.aspx David On Mon, Apr 26, 2010 at 5:05 AM, Michael Foord wrote: > On 26/04/2010 13:03, Ben Rousch wrote: > >> On Mon, Apr 26, 2010 at 7:22 AM

Re: [IronPython] ImportError: No module named

2010-04-08 Thread David Escobar
As an aside, you can also access XLSX files with CPython as well. You can use the Python for Win32 extensions. Apparently, it even supports Python 3.x (although I've only used it with Python 2.6 so far). http://sourceforge.net/projects/pywin32/ David On Thu, Apr 8, 2010 at 1:12 PM, Richard Stev

Re: [IronPython] IronPython Tools for Visual Studio

2010-04-08 Thread David Escobar
Also, checkout SharpDevelop, an open source .NET IDE. It has full IronPython integration (including a Windows Forms designer!). It can also be used for C#, F#, VB, and Boo. David On Thu, Apr 8, 2010 at 10:35 AM, Prasanna Jaganathan wrote: > Hi > > I am trying to get a good IDE for working with

Re: [IronPython] Web Services library

2009-11-30 Thread David Escobar
One way to do it is to use the *wsdl.exe* tool to generate a proxy class. The tool will generate the proxy class in C# (it can't do IronPython code), but you can then take the resulting .cs file and compile it to a .dll (using the C# compiler - *csc.exe*). Place the .dll into the same folder as you

Re: [IronPython] Ctrl + A

2009-10-06 Thread David Escobar
The ASCII code for the Ctrl+A character is 01, so I would try something like this: cmd = chr(01) + " SWITCH ON 01 02" Then send the cmd string. If you need to convert a single-character string back to an ASCII code, you would use the ord function. On Tue, Oct 6, 2009 at 11:12 PM, Aloysius Jegan

Re: [IronPython] IronPython 2.0.3 must-fix bugs

2009-09-30 Thread David Escobar
In compiled assemblies, the FolderBrowseDialog window control (Windows Forms) does not show the folder tree view. On Fri, Sep 25, 2009 at 4:52 PM, David DiCato wrote: > As we work towards our IronPython 2.0.3 bugfix release, Dino and I would > like to get a feel for which bugs left unresolved

Re: [IronPython] Accessing CPython from compiled assemblies

2009-09-18 Thread David Escobar
: Re: [IronPython] Accessing CPython from compiled assemblies > > David Escobar wrote: > > I'm using IronPython 2.6 B2 and accessing the CPython 2.6 libraries in > > the standard way. > > > > import sys > > sys.path.append(r"c:\python26\lib") > >

Re: [IronPython] Accessing CPython from compiled assemblies

2009-09-17 Thread David Escobar
Of course, didn't think of that. I'll just copy over the modules I'm using and then run the pyc script on them along with my own program files. Thanks. On Thu, Sep 17, 2009 at 4:28 AM, Michael Foord wrote: > David Escobar wrote: > >> I'm using IronPython 2.6

[IronPython] Accessing CPython from compiled assemblies

2009-09-16 Thread David Escobar
I'm using IronPython 2.6 B2 and accessing the CPython 2.6 libraries in the standard way. import sys sys.path.append(r"c:\python26\lib") When I compile to an .exe, is there a way to link in the CPython libraries I'm using? Otherwise I get an ImportError when I run the application on a machine that

Re: [IronPython] CallTargetX delegates

2009-09-01 Thread David Escobar
[mailto: > users-boun...@lists.ironpython.com] *On Behalf Of *David Escobar > *Sent:* Tuesday, September 01, 2009 5:41 PM > *To:* Discussion of IronPython > *Subject:* [IronPython] CallTargetX delegates > > > > In IronPython 2.6 beta 2, did the CallTargetX delegates get moved to

[IronPython] CallTargetX delegates

2009-09-01 Thread David Escobar
In IronPython 2.6 beta 2, did the CallTargetX delegates get moved to another module or were they simply removed altogether? The only delegate in IronPython.Compiler is CallTarget0. I checked IronPython 2.0.2 and it has up to CallTarget16. ___ Users mailin

Re: [IronPython] FolderBrowserDialog does not show folders

2009-08-19 Thread David Escobar
erator() > > -Original Message- > From: users-boun...@lists.ironpython.com [mailto: > users-boun...@lists.ironpython.com] On Behalf Of Michael Foord > Sent: Wednesday, August 19, 2009 3:45 PM > To: davidesco...@ieee.org; Discussion of IronPython > Subject: Re: [IronPython] FolderB

Re: [IronPython] FolderBrowserDialog does not show folders

2009-08-19 Thread David Escobar
Yes, I did. The 2.6 pyc.py did not work when run against 2.0.2, but I downloaded IP 2.6 Beta 2 and now the FolderBrowserDialog comes up correctly. So I guess I'll just use 2.6 from now on. Thanks! On Wed, Aug 19, 2009 at 3:44 PM, Michael Foord wrote: > David Escobar wrote: > >>

Re: [IronPython] FolderBrowserDialog does not show folders

2009-08-19 Thread David Escobar
against 2.0. > > > On Wed, Aug 19, 2009 at 3:09 PM, Curt Hagenlocher wrote: > >> It's a COM issue. The emitted Main needs to be tagged with the [STAThread] >> attribute. >> >> On Wed, Aug 19, 2009 at 11:41 AM, David Escobar >> wrote: >> >>&g

Re: [IronPython] FolderBrowserDialog does not show folders

2009-08-19 Thread David Escobar
lders. On Wed, Aug 19, 2009 at 11:27 AM, Dino Viehland wrote: > Are you compiling w/ the “/target:winexe” option? You’ll need to provide > that for doing WinForms development. > > > > *From:* users-boun...@lists.ironpython.com [mailto: > users-boun...@lists.ironpython.com]

[IronPython] FolderBrowserDialog does not show folders

2009-08-19 Thread David Escobar
I've noticed an issue with the FolderBrowserDialog window from IronPython. When I display it with the ShowDialog method in a compiled script (through pyc.py), it does not show the TreeView of folders. It will display the Description title and the buttons, however. If I run the script straight throu

Re: [IronPython] IronPython DLLs distributing

2009-08-17 Thread David Escobar
Ah ok, I will do that. Thanks. On Mon, Aug 17, 2009 at 12:48 PM, Michael Foord wrote: > David Escobar wrote: > >> Hello everyone. What is the best way to distribute IronPython >> applications? I've seen that all the IronPython .dll files need to be in the >> same f

[IronPython] IronPython DLLs distributing

2009-08-17 Thread David Escobar
Hello everyone. What is the best way to distribute IronPython applications? I've seen that all the IronPython .dll files need to be in the same folder as the application .exe and the application .dll in order to run. Is it possible to install the IronPython .dll files in one common location for all