[IronPython] importing powershell ala the demo video

2006-09-08 Thread brian
Hey everyone, I am missing a key step trying to recreate the "from powershell import *" from Jim Hugunin demo (http://weblog.infoworld.com/udell/screenroom/ironpython_flv.html). I always get the "no module named powershell" error. Does anyone know what else needs to be setup for IronPython to fi

[IronPython] adding a web reference to an Iironpython application

2006-09-08 Thread Walt Grata
I would like to add a reference to a web service in an ironpythong application. I looked at the samples provided on the CodePlex site and the only thing that was similiar used a C# class library to access the web service and ironpython communicated with the dll. Cheers Walt _

Re: [IronPython] New - PythonEngine documentation

2006-09-08 Thread Tim Riley
Very useful. Thank you for pointing that out as I hadn't noticed.TimOn 9/8/06, Shri Borde <[EMAIL PROTECTED] > wrote: In case you hadn't noticed, there is a new IronPythonApiReference.chm in the Doc folder in the zip 1.0 RTM zip files, both bin and src. This should help answer many of t

Re: [IronPython] problem with IronPython 1.0 and os.utime ?

2006-09-08 Thread Dino Viehland
There's two issues here, I've opened bug #3050 to track this (http://www.codeplex.com/WorkItem/List.aspx?ProjectName=IronPython). The 1st issue is that nt.utime is steting the LastAccessTime twice - obviously we want to set LastAccess once, and LastWrite once. The 2nd issue is that we're doing

[IronPython] New - PythonEngine documentation

2006-09-08 Thread Shri Borde
In case you hadn’t noticed, there is a new IronPythonApiReference.chm in the Doc folder in the zip 1.0 RTM zip files, both bin and src. This should help answer many of the questions which come up about the specifics of the hosting APIs.   Thanks, Shri   PS: I thought I had sent this em

Re: [IronPython] Regex that works under CPython doesn't compile under IronPython

2006-09-08 Thread Dino Viehland
This is a bug - I've opened CodePlex bug #3049 to track this (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=3049). The problem here is that we're not recognizing the double \ as being a valid escape sequence that we should ignore. Instead we skip the 1st \, see th

Re: [IronPython] Passing Arguments in hosted enviroment

2006-09-08 Thread David Ebbo
Title: Passing Arguments in hosted enviroment Hi Bernd,   I would recommend against calling ExecuteFile on each request, as that would cause the code to be parsed and compiled every time (very inefficient).  Instead, one thing you can do is:   -  On the first request, create an

[IronPython] problem with IronPython 1.0 and os.utime ?

2006-09-08 Thread Bern.McCarty
I am using IronPython 1.0 under Windows XP and using the python libraries from ActivePython 2.4 Build 243. When I run this program under IronPython: import os import stat def printFileTimes(st): print 'Last Access: ', st[stat.ST_ATIME] print 'Last Modification: ', st[stat.ST_MTIME]

[IronPython] Regex that works under CPython doesn't compile under IronPython

2006-09-08 Thread Chuck.Kirschman
#test.py import re # compiles under CPython, fails under IronPython myregex = re.compile (r"[\\A-Z\.\+]") if myregex.search ('aaaA\\B\\Caaa'): print 'found' else: print 'not found' - I tried to run my Python script under Iron Python and this line:

Re: [IronPython] System.Array

2006-09-08 Thread Sanghyeon Seo
2006/9/9, Dino Viehland <[EMAIL PROTECTED]>: > We thought that CreateInstance was a handy enough way to do this so we > didn't re-invent the wheel. Given our current syntax for creating an array > requiring a sequence we've left the window open to add your proposed syntax > in the future but it'd

Re: [IronPython] System.Array

2006-09-08 Thread Dino Viehland
We thought that CreateInstance was a handy enough way to do this so we didn’t re-invent the wheel.  Given our current syntax for creating an array requiring a sequence we’ve left the window open to add your proposed syntax in the future but it’d be interesting to hear how cumbersome others

Re: [IronPython] Alternative to ironpythonconsole.exe

2006-09-08 Thread J. Merrill
Given the major API changes that took place since you sent this out, have you got an updated version that you're willing to let us have? Thanks! At 06:17 PM 11/4/2005, Szymon Kobalczyk wrote >Hello all, > >Attached is my attempt to create console for IronPython in WinForms. It uses >the RunInte

[IronPython] Visual Studio Integration

2006-09-08 Thread Marc LaFleur
I'm curious what the current status/thinking is on IronPython integration with Visual Studio 2005. I understand there are some older bits available as part of the Visual Studio SDK beta. Any chance this is going to go into production soon? Marc LaFleur Parlance Corporation, Your voice for Service.

Re: [IronPython] System.Array

2006-09-08 Thread Kristof Wagemans
The question is: is there an alternative syntax to create an array of a specific length. Now you have to go through a static method of System.Array to create it. I wanted to know if you can create it directly and keep it looking like System.Array[int]. Something like: System.Array[int](3).

Re: [IronPython] System.Array

2006-09-08 Thread J. Merrill
Did you leave some part of your own question un-answered?  CreateInstance does just what you said you wanted to know how to do, doesn't it? At 04:22 AM 9/8/2006, Kristof Wagemans wrote You can create an int array of length 3 with: System.Array[int]((1,2,3))   Is there an alternative syntax to cr

[IronPython] System.Array

2006-09-08 Thread Kristof Wagemans
You can create an int array of length 3 with: System.Array[int]((1,2,3))   Is there an alternative syntax to create an int array of length 3 without passing in a tuple with 3 values? I know that I can create one with: System.Array.CreateInstance(int,3)   _