Re: [IronPython] Iron Python NewB questions . . .

2009-11-02 Thread Justin Regele
Embedding IPy in C# isn't easy at first, and definitely not super straight-forward, but there are alot of options of how to do it. Get Mike's book, or at least download the source for the embedding chapter. Embedding ironpython is tricky now, but things are progressing quickly, and there ARE lots o

Re: [IronPython] C# - IronPython Integration

2009-08-11 Thread Justin Regele
Hi, Also get Michael's book. The web is pretty lacking in helping you get going, but the book is invaluable. On Mon, Aug 10, 2009 at 10:49 PM, Boris Aronshtam < boris_aronsh...@vdptech.com> wrote: > Thanks! > > > > *From:* Curt Hagenlocher [mailto:c...@hagenlocher.org] > *Sent:* Sunday, August

Re: [IronPython] Current VS 2008 integration status

2009-07-20 Thread Justin Regele
I'm in a similar situation, where VS2008 is necessary. It definitely can work, but I've found its best to: 1. Turn off autocompletion for IronPython 2. show whitespace 3. turn off intellisense for ironpython On Sun, Jul 19, 2009 at 10:59 AM, Max R. Yaffe wrote: > I've read several posts about

Re: [IronPython] Documentation

2009-06-26 Thread Justin Regele
Yes, get Michael's book. I was also really lost until I got it. I'm using IronPython Studio, but I'm not making any gui's, and I need to embed it in C# code, so that works for me. Like Michael said, it is very brittle. You must disable autocompletion otherwise it will destroy your python code, or

Re: [IronPython] private functions within a module

2009-06-18 Thread Justin Regele
hahaha. thanks michael. On Thu, Jun 18, 2009 at 1:38 PM, Michael Foord wrote: > Justin Regele wrote: > >> As of Python25, there is no thing as a 'private' method, although the >> _method() convention is what is generally used. >> >> also, staticmethod(

Re: [IronPython] private functions within a module

2009-06-18 Thread Justin Regele
As of Python25, there is no thing as a 'private' method, although the _method() convention is what is generally used. also, staticmethod(objfunc) is used to make a method static. don't know if yo already know this. rather an annoying way of doing it. On Mon, Jun 15, 2009 at 11:34 AM, Michael Foor

Re: [IronPython] clarification on current state of embedding

2009-06-18 Thread Justin Regele
Curt Hagenlocher wrote: > Are you getting an error when you run ipy.exe that tells you that SP1 is > needed? If not, then you already have it installed. IIRC, 2.0SP1 was pushed > out through Windows Update. > > On Thu, Jun 18, 2009 at 1:18 PM, Justin Regele wrote: > >> Yeah,

Re: [IronPython] clarification on current state of embedding

2009-06-18 Thread Justin Regele
s. On Thu, Jun 18, 2009 at 12:59 PM, Michael Foord wrote: > Justin Regele wrote: > >> This makes sense, although I am still confused as to why problems keep >> creeping up to me. I am on Vista, though, and so I think my problem is that >> while I installed 2.0, I cannot ins

Re: [IronPython] clarification on current state of embedding

2009-06-18 Thread Justin Regele
essage- > From: users-boun...@lists.ironpython.com [mailto: > users-boun...@lists.ironpython.com] On Behalf Of Michael Foord > Sent: Thursday, June 18, 2009 4:49 AM > To: Discussion of IronPython > Subject: Re: [IronPython] clarification on current state of embedding > > Jus

Re: [IronPython] clarification on current state of embedding

2009-06-17 Thread Justin Regele
gt;> And how do you get to the classes to use them with the new dynamic >> functionality if it isn't through the hosting API? >> >> What you do with them once you get them is your own business of course... >> >> Michael >> >> >>> On Wed, J

Re: [IronPython] clarification on current state of embedding

2009-06-17 Thread Justin Regele
need the DLR at least because of > the references that the "compiled" dlls would have. > > On Wed, Jun 17, 2009 at 4:45 PM, Justin Regele wrote: > > What is the status of referencing IPy libraries compiled to dlls by other > > CLR languages? Google turned up that as

[IronPython] clarification on current state of embedding

2009-06-17 Thread Justin Regele
What is the status of referencing IPy libraries compiled to dlls by other CLR languages? Google turned up that as of 1.1 you had to use the embedding/hosting api's, since the dlls were not compatible with say C# assemblies. There were allusions made to this being changed. __

Re: [IronPython] new compilations problems, now on xp

2009-06-14 Thread Justin Regele
path. Renaming the module fixed the problem. On Sat, Jun 13, 2009 at 9:34 PM, Justin Regele wrote: > After getting my python project moved into IronPython studio, and working, > I'm having to move it to an xp virtual machine on my laptop to present at a > business meeting on monday.

[IronPython] new compilations problems, now on xp

2009-06-13 Thread Justin Regele
After getting my python project moved into IronPython studio, and working, I'm having to move it to an xp virtual machine on my laptop to present at a business meeting on monday. VisualStudio is erroring out with: the element 'PropertyGroup' in namespace...has invalid child elements' Googling thi

Re: [IronPython] VS Support/Intelllisense for IronPython

2009-06-11 Thread Justin Regele
actually, didn't quite do what i thought, now that I tested after I posted (doh!) if you remove the '.__doc__' from the print, then yes you can actually see the attributes. the problem with the doc strings here is that they are all the same. On Thu, Jun 11, 2009 at 1:12 PM, Justi

Re: [IronPython] VS Support/Intelllisense for IronPython

2009-06-11 Thread Justin Regele
Could the intellisense be written in IronPython itself? Given pythons reflective nature, this could be very easy, and then the community could re-write how it behaves to suit wha they want. open up the console and do this #make a list, or whatever x=[] for attr in dir(x): print attr.__doc__

Re: [IronPython] VS Support/Intelllisense for IronPython

2009-06-11 Thread Justin Regele
I'd like to know why VS constantly botches my code. I turned off auto-complete, but it still manages to insert hidden nasties that make me re-write entire functions that are perfectly valid. Has anyone else had this problem, where VS claims your blocks are not spaced equally? It normally happens wh

Re: [IronPython] suddenly IronPython needs 2.0 SDK

2009-06-10 Thread Justin Regele
Yeah, everything suddenly worked again. On Wed, Jun 10, 2009 at 3:54 PM, Curt Hagenlocher wrote: > Sounds strange. Did reinstallation of the SDK solve your problem? > > On Mon, Jun 8, 2009 at 6:43 PM, Justin Regele wrote: > >> Last week I moved a python application into Ir

[IronPython] suddenly IronPython needs 2.0 SDK

2009-06-08 Thread Justin Regele
Last week I moved a python application into IronPython and under IronPython studio I was building and debugging and everything just worked. But today I was getting errors saying that Framework 2.0 was not found in my registry. ran regedit and yes, its not there. I have 3.5 installed. I downloaded

Re: [IronPython] How to reference List objects?

2009-06-08 Thread Justin Regele
; You can definitely interact with BCL generic List classes in this fashion: > > >>> from System.Collections.Generic import List a = List[str]() > >>> a.Add('abc') > >>> a.Add('def') > >>> a > List[str](['abc',

Re: [IronPython] How to reference List objects?

2009-06-08 Thread Justin Regele
reason for this way of doing it. Wondering about this error: System.Collections.Generic.List'1[testapp.PythonEngine+book] What does the '+' indicate? On Mon, Jun 8, 2009 at 1:32 PM, Michael Foord wrote: > Justin Regele wrote: > >> Type Errors where the object is unsc

Re: [IronPython] How to reference List objects?

2009-06-08 Thread Justin Regele
Type Errors where the object is unscriptable means that it does not have any indices intialized. Use the python interactive interpreter to play around with list methods, and see how they work correctly. This is one of pythons best weapons. if you don't know what objects are in a module, or what at

Re: [IronPython] 'Python' does not exist in current context

2009-05-26 Thread Justin Regele
semblies. > > Microsoft.Scripting.dllMicrosoft.Scripting.Core.dll > IronPython.dll > IronPython.Modules.dll > > On Tue, May 26, 2009 at 11:47 PM, Justin Regele wrote: > >> Trying to embed IPy in C#, and after digging all over the web and the >> archives of this list, I can't figure out why the Python object won&#

[IronPython] 'Python' does not exist in current context

2009-05-26 Thread Justin Regele
Trying to embed IPy in C#, and after digging all over the web and the archives of this list, I can't figure out why the Python object won't load. Here is the basic line where it goes wrong: ScriptEngine eng = Python.CreateEngine(); All the other typical Objects are loading fine, just not the Pyth