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
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
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
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
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(
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
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,
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
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
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
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
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.
__
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.
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
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
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__
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
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
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
; 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',
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
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
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
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
24 matches
Mail list logo