Re: [IronPython] Newbie, feedback/question

2007-12-19 Thread John Messerly
Also, just to be clear: we (IronPython team) didn't write "IronPython Studio". Although it sure looks like a cool project! - John > -Original Message- > From: [EMAIL PROTECTED] [mailto:users- > [EMAIL PROTECTED] On Behalf Of Keith J. Farmer > Sent: Wednesday, December 19, 2007 11:09 AM >

Re: [IronPython] [python] Loading Images from XAML with XamlReader (WPF)

2007-12-13 Thread John Messerly
Michael Foord wrote: > Sorry about the noise guys, but having found the solution I guess I > ought to share it. The answer is (wait for it...)... use site of origin > relative syntax for the Source tag. > > Source="pack://siteoforigin:,,,/image.jpg" > > And its such an obvious syntax, how could I

Re: [IronPython] Using Silverlight Controls from IronPython (Uhmm... it doesn't look like you can)

2007-09-07 Thread John Messerly
Sounds like a bug in XAML event binding... In the Silverlight 1.1 alpha, if the XAML contains an x:Code element, then the XAML parser will always go to DLR/IronPython for event hookup. That is to say, it will never use reflection to hook the event to a statically defined C# method. That is a kn

Re: [IronPython] CLR class constructors and arrays

2007-07-30 Thread John Messerly
For what it's worth, this appears to be fixed in IronPython 2.0 alpha 3: >ipy paramcalltest.py args = System.String[]('a', 'b', 'c') creating ParamCall object: pc.Joined() => a,b,c If it's really bothersome we could add it to the 1.1.1 bug list, but in the meantime I'd suggest the workaround Mic

Re: [IronPython] Version of DLR in Silverlight Alpha Refresh?

2007-07-29 Thread John Messerly
The version of IronPython/DLR that shipped with the Silverlight 1.1 Alpha Refresh is the same one that shipped in the original MIX release: IronPython 2.0 alpha 1. The Refresh release was focused on bug fixes rather than new features. The next Silverlight 1.1 release should have newer IronPython

Re: [Users] Mailing List Archives Gone Private ?

2007-07-23 Thread John Messerly
I'm sure it was accidental :). I'll see if I can get someone to fix it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Monday, July 23, 2007 6:35 PM To: Discussion of IronPython Subject: Re: [Users] Mailing List Archives Gone Private ?

Re: [IronPython] Marking Methods as Scriptable from IronPython with Silverlight (and problems therein)

2007-07-19 Thread John Messerly
What happens if you change method() to return a string, e.g.: [Scriptable] public string method() Does that help? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Thursday, July 19, 2007 4:33 PM To: Discussion of IronPython Subject: [I

Re: [IronPython] Silverlight - Adding References to Assemblies

2007-07-19 Thread John Messerly
bject: Re: [IronPython] Silverlight - Adding References to Assemblies John Messerly wrote: > Did rebooting help? > > That's a really strange error--the app domain should be recreated every page > refresh. Maybe some old copy DLL is in the browser cache... > Nope - same error on a

Re: [IronPython] Silverlight - Adding References to Assemblies

2007-07-18 Thread John Messerly
007 5:27 PM To: Discussion of IronPython Subject: Re: [IronPython] Silverlight - Adding References to Assemblies John Messerly wrote: > Good catch. I'll see if we can get that text updated. > Well - it caught me. ;-) Actually, now I'm getting a different problem. Restarting both

Re: [IronPython] Silverlight - Adding References to Assemblies

2007-07-18 Thread John Messerly
blies John Messerly wrote: > Hi Michael, > > What does the call to clr.AddReference look like? We currently have a > limitation in Silverlight, that we require a fully qualified assembly name, > e.g.: > > clr.AddReference("MyAssembly, Version=1.0.0.0, Culture=neutral

Re: [IronPython] Silverlight - Adding References to Assemblies

2007-07-18 Thread John Messerly
Hi Michael, What does the call to clr.AddReference look like? We currently have a limitation in Silverlight, that we require a fully qualified assembly name, e.g.: clr.AddReference("MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null") (We do some magic to map short names to ful

Re: [IronPython] SystemError when inspecting an Assembly File through Assembly.ReflectionOnlyLoadFrom()

2007-06-28 Thread John Messerly
I think what we're seeing here is an IronPython bug. When you try to call a method on "a", we reflect over the assembly looking for custom attributes, which fails because it was loaded with ReflectionOnlyLoadFrom. If it's any consolation, it is fixed in the 2.0 alpha tree: IronPython console: I

Re: [IronPython] catching WebException from OpenReadAsync

2007-06-27 Thread John Messerly
The "stream = args.Result" line in asyncReader is the culprit. The Result property will throw if the read operation failed. You could move that line inside the try block, so the exception is caught. Or alternatively, use the args.Exception property to determine if there was an error in the read.

Re: [IronPython] Command line

2007-06-12 Thread John Messerly
The reason arguments aren't getting passed is because file associations by default only pass the file name, not any additional arguments. You can see the registry entry for the file association by running the following IPy code: # Reads the registry key containing the command to run for .py file

Re: [IronPython] Reading Text files with open

2007-06-11 Thread John Messerly
Actually, it's a result of System.Text.ASCIIEncoding, which replaces bytes greater than 0x7f with a question mark. I filed this as CodePlex work item #10983 (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=10983). Thanks, John -Original Message- From: [EMAIL PROTECTED]

Re: [IronPython] Patent concerns

2007-05-31 Thread John Messerly
Hi, I am definitely not a lawyer, but I think this question is addressed in the Microsoft Permissive License (http://www.microsoft.com/resources/sharedsource/licensingbasics/permissivelicense.mspx). See section 2.b, "Patent Grant". Cheers, John -Original Message- From: [EMAIL PROTECT