Re: [Ironpython-users] IronPython wiki

2011-06-16 Thread Jimmy Schementi
On Jun 16, 2011, at 12:55 PM, Brian Wilson wrote: > Do you think there is enough interest to unlock the member feature on > the IronPython.info wiki, or should I just talk here? > > BTW I've dealt with wiki spam by putting Captcha and ConfirmEdit on my > wiki and it seems to work. http://ironpyth

Re: [Ironpython-users] [IronPython] Visual studio 2010

2011-06-16 Thread Jimmy Schementi
Finally, when it comes to CI, is there a recognised way of runningIron Python modules from an MSBuild script?Paul,I have a VS2010 plugin that lets you run IronPython tests in MSTest; I'll put it on GitHub shortly.Excellent, thank you! I'll look forward to the link.OK, I put the tool on GitHub: http

Re: [Ironpython-users] How can IronPython access a public static value defined in C#?

2011-06-20 Thread Jimmy Schementi
On Jun 20, 2011, at 11:57 AM, Jeff Hardy wrote: > On Mon, Jun 20, 2011 at 5:16 AM, Doug Blank wrote: >> Yes, indeed. So, my question is: how to get a "public static property" >> to be dynamically included with "from x import *"? You can't mark it >> readonly, right? And it doesn't seem possible wi

Re: [Ironpython-users] IronPython 2.7.1 Beta coming this weekend

2011-06-20 Thread Jimmy Schementi
On Jun 20, 2011, at 11:53 AM, Jeff Hardy wrote: > > For embedding, I would recommend you continue what you're doing - it's > just just straight-up safer. It's a shame zipimport doesn't work; we > could cut the deployed size of the stdlib down significantly. How about pre-compiling your python fi

Re: [Ironpython-users] How can IronPython access a public static value defined in C#?

2011-06-20 Thread Jimmy Schementi
On Jun 20, 2011, at 1:16 PM, Jeff Hardy wrote: > On Mon, Jun 20, 2011 at 9:35 AM, Jimmy Schementi wrote: >> If we chose to map .NET property imports to module variables, then we'd have >> to execute the getter when imported, which would break this example (random >>

Re: [Ironpython-users] How can IronPython access a public static value defined in C#?

2011-06-20 Thread Jimmy Schementi
On Jun 20, 2011, at 2:59 PM, Keith Rome wrote: > Evaluating a property could potentially introduce unexpected side effects. > Best practices in OOP says that a property getter should never alter state, > but it happens enough in the wild that I would think it to be dangerous to > blindly invoke

Re: [Ironpython-users] FW: IronPython, Daily Digest 6/23/2011

2011-06-27 Thread Jimmy Schementi
It's a daily digest of the issues on ironpython.codeplex.com, not of this mailing list. If it's not of interest we can put it on a smaller dev list. ~Jimmy On Jun 27, 2011, at 9:21 AM, David Fraser wrote: > Yes, me too... > > - Original Message - > From: "Larry Jones" > To: ironpyth

Re: [Ironpython-users] importing third-party modules

2011-07-03 Thread Jimmy Schementi
On Jul 3, 2011, at 9:32 AM, Dave Wald wrote: > On 7/3/2011 5:30 AM, Wolfgang Schmoller wrote: >> Hello, >> >> I'm working on a site, where I need to work with python. I have managed to >> configure that, so that I can use python instead of Javascript. Now, I need >> to import a third-party modul

Re: [Ironpython-users] Undesired Side Effects of sending digests to the list as emails

2011-07-04 Thread Jimmy Schementi
Dave, The digest is not of this list, it's of the Codeplex issues activity, and here's the previous thread on the topic: http://mail.python.org/pipermail/ironpython-users/2011-June/015003.html ~Jimmy On Jul 3, 2011, at 11:25 AM, David Bagby wrote: > Hi List, > > I've been reading the list

Re: [Ironpython-users] get/set cursor position in HTML

2011-07-05 Thread Jimmy Schementi
The usual document and window variables are available in Python files which are executed via script tags; imported modules do not have those variables set. See http://www.ironpython.net/browser/docs.html#interacting-with-markup FYI, document.selection is an IE-only feature. ~Jimmy On Jul 5

Re: [Ironpython-users] Importing .NET Lib Error

2011-07-11 Thread Jimmy Schementi
This particular error is actually informative, and even gives a URL for how to fix it: http://go.microsoft.com/fwlink/?LinkId=155569. But I'll summarize: You're running the script from a network share (looks like you're using Parallels with shared Mac drives?). Also looks like you're running thi

Re: [Ironpython-users] Assembly references: file does not exist?

2011-07-14 Thread Jimmy Schementi
On Jul 14, 2011, at 7:59 AM, Dave Peterson wrote: > Turns out that I can put an ipy.exe.config in the install location of > IronPython and get my assembly to load. > > Does anyone know if there's an equivalent programmatic way to do this? For > example, can I import the clr module, call some

Re: [Ironpython-users] codeplex member

2011-07-15 Thread Jimmy Schementi
On Jul 15, 2011, at 10:15 AM, Slide wrote: > How does one become a member of the project on codeplex so that issues can be > assigned to them? Send me your codeplex id and I'll add you as a developer. > Also, is the plan to stick with codeplex issues or possibly move to github's > issue system?

Re: [Ironpython-users] Q: Protecting my source in an ASP.NET IronPython application possible?

2011-07-20 Thread Jimmy Schementi
>>> Normal the code-behind files for the web forms are readable for anyone >>> with access to the server Define "access", is it the ability to see http://yourhost.com/Default.aspx.py or C:\inetpub\wwwroot\Default.aspx.py? For the first case, as slide mentioned, you can block IIS from serving th

Re: [Ironpython-users] Q: Protecting my source in an ASP.NET IronPython application possible?

2011-07-20 Thread Jimmy Schementi
On Jul 20, 2011, at 11:26 AM, Jeff Hardy wrote: > On Wed, Jul 20, 2011 at 7:14 AM, Jimmy Schementi wrote: >> By the way, you're correct that Microsoft.Scripting.AspNet doesn't support >> loading code-behind from DLLs produced from clr.CompileModules. If anyone >

Re: [Ironpython-users] IronPython 2.7.1 Beta 2 Now Available

2011-07-25 Thread Jimmy Schementi
For every commit you can download a .tar.gz or .zip, for example: https://github.com/IronLanguages/main/zipball/0358561dbf1cf8dee4832e5291b0be844654f0c3 https://github.com/IronLanguages/main/tarball/0358561dbf1cf8dee4832e5291b0be844654f0c3 where 035856... is the commit hash. ~Jimmy On Jul 25, 20

Re: [Ironpython-users] FW: CreateMethod() replacement

2011-07-25 Thread Jimmy Schementi
I don't have a good answer for you other than to look at what CreateMethod did in the old codebase. The complexity is you need to create a delegate based on the type you passed in as TDelegate, as well as the string args. Without figuring out where in the IronPython compiler you can get back a Dyna

Re: [Ironpython-users] Compiling IronPython for .NET 2.0

2011-07-27 Thread Jimmy Schementi
We do still have the v2Debug build configuration available in the csproj files, and IronPython.Mono.sln still allows building it: msbuild Solutions\IronPython.Mono.sln /p:Configuration=v2Debug However, current sources fail to build in a few places. Looks like you can put #if !CLR2 around those a

Re: [Ironpython-users] Hosting ironpyhon in silverlight , get Could not add reference to assembly System.Windows.Controls error

2011-07-28 Thread Jimmy Schementi
There is no System.Windows.Controls.dll that ships with Silverlight, it is in the Silverlight SDK, meaning you must provide it in your application's XAP file. ~Jimmy 2011/7/28 曾东 : > Hi, > > > > I use this code in silverlight to run a script define outer > > > > var setup = new Scr

Re: [Ironpython-users] Compiling IronPython for .NET 2.0

2011-07-28 Thread Jimmy Schementi
I'm a little confused about the issues, as with this simple patch: https://gist.github.com/557 I'm able to build IronPython (using IronPython.Mono.sln as that still has v2Debug build configurations): msbuild Solutions\IronPython.Mono.sln /p:Configuration=v2Debug And run it, showing it's using

Re: [Ironpython-users] (no subject)

2011-07-28 Thread Jimmy Schementi
Replied on the other thread: http://mail.python.org/pipermail/ironpython-users/2011-July/015136.html ~Jimmy 2011/7/28 曾东 : > Hi, > > > > I use this code in silverlight to run a script define outer > > > > var setup = new ScriptRuntimeSetup(); > > setup.HostType = typeo

Re: [Ironpython-users] Hosting ironpyhon in silverlight , get Couldnot add reference to assembly System.Windows.Controls error

2011-07-28 Thread Jimmy Schementi
On Thu, Jul 28, 2011 at 12:42 PM, zdong wrote: > dear jimmy > > Acturally i want to create instance of StackPanel,TextBlock ect. That been > widly known as silverlight standard framework element in > system.windows.controls. If i directly use stackins=StackPanel() it's seems > could not found Stac

Re: [Ironpython-users] IronPython Tools (NOT Python Tools For VS2010)

2011-07-29 Thread Jimmy Schementi
Yes, which is why the tools are not enabled by default in the latest installer. ~Jimmy On Jul 29, 2011, at 7:59 PM, Slide wrote: > Are the IronPython Tools officially deprecated in favor of the Python Tools > for VS2010? > > Thanks, > > slide > > -- > slide-o-blog > http://slide-o-blog.bl

Re: [Ironpython-users] external libraries

2011-08-02 Thread Jimmy Schementi
The projects have multiple licenses because of external dependencies. In general, if we can keep the compiler and library implementations Apache 2 that'd be great. If we do need to bring in something with a different license, it should be it's own assembly. ~Jimmy On Tue, Aug 2, 2011 at 11:53 AM

Re: [Ironpython-users] IronPython 3 in new mono 2.10.4

2011-08-18 Thread Jimmy Schementi
All IronPython releases can be found on http://ironpython.codeplex.com, but no, IronPython 3.0 has not been released yet. I believe they just took the latest sources from http://github.com/IronLanguages/main, which has the 3.0.0.0 version. Not sure what actual commit they took, you'd have to ask

Re: [Ironpython-users] ErrorListener

2011-10-12 Thread Jimmy Schementi
On Oct 12, 2011, at 4:55 AM, Markus Schaber wrote: >> Sorry for disturbing again, but I'm a little bit confused about the >> ErrorListeners from the Hosting API. >> >> For compilation of a ScriptSource, I can pass an ErrorListener which gets >> the errors and warnings, but it seems that I cannot

Re: [Ironpython-users] PI files for WING IDE

2011-12-01 Thread Jimmy Schementi
Anyone using Wing IDE with IronPython and also use Michael's scripts? I haven't in a few years. CJ, have you considered the Python Tools for VS as an alternative? ~Jimmy On Nov 30, 2011, at 5:04 PM, "C. Justin Mayers" wrote: I am brand new to IronPython and have only been using Python for a l

Re: [Ironpython-users] Removal of IronPython Tools for Visual Studio from 2.7.2

2011-12-11 Thread Jimmy Schementi
I'm ok with removing the IronPython tools from the installer, but IronRuby's next release will most likely still use IronStudio, so I'd be careful removing it from git. ~Jimmy On Dec 11, 2011, at 4:53 PM, Shahrokh Mortazavi < [email protected]> wrote: +1. Slightly biased tho.

Re: [Ironpython-users] Reload module within embedded C# app

2011-12-21 Thread Jimmy Schementi
On Wed, Dec 21, 2011 at 5:16 PM, Daniel Fernandez wrote: > Hi Jeff, > > In my simple scenario was able to update test2. I just perform the following > varsuccess = engine.GetSysModule().GetVariable("modules").Remove("test2"); > > > then I perform the ImportModule on the test module and test2 was u

Re: [Ironpython-users] How to use extension type with C# Extension Methods?

2012-01-09 Thread Jimmy Schementi
On Jan 9, 2012, at 6:25 PM, Jeff Hardy wrote: > I'm not sure this is documented anywhere. It is documented, but the documentation is wrong =) From http://ironpython.net/documentation/dotnet/dotnet.html#extension-methods: Extension methods are currently not natively supported by IronPython. Hence

Re: [Ironpython-users] Poor performance of a c# - Ironpython application

2012-05-23 Thread Jimmy Schementi
On Wed, May 23, 2012 at 12:44 PM, Carles F. Julià wrote: >> My guess is that it's .NET's JIT compiler. How do you execute the scripts? >> Are you compiling them and caching the results or re-executing them each >> time? > > > I compile the script once and then I save a python object in a dynamic >

Re: [Ironpython-users] WP7 & Silverlight Support in IronPython

2012-07-02 Thread Jimmy Schementi
I'd only support the latest released version of Silverlight, as if someone really needs to support an older version of Silverlight (some internal app, for example). So I'd vote for only SL5. There are tests for SL in Hosts/Silverlight ~js On Saturday, June 30, 2012, Jeff Hardy wrote: > Throwin

Re: [Ironpython-users] WP7 & Silverlight Support in IronPython

2012-07-02 Thread Jimmy Schementi
Didn't finish a sentence, updated below: On Monday, July 2, 2012, Jimmy Schementi wrote: > I'd only support the latest released version of Silverlight, as if someone > really needs to support an older version of Silverlight (some internal app, > for example), they can us

Re: [Ironpython-users] pyc port to IKVM.Reflection

2012-07-06 Thread Jimmy Schementi
> One limitation with pyc.py is that it doesn't generate assemblies that > can be consumed from other .NET languages directly. Using __clrtype__ > IronPython can generate assemblies at runtime that can be consumed, > but not ahead of time (to be honest, I don't really understand the use > case for

Re: [Ironpython-users] WP7 & Silverlight Support in IronPython

2012-07-06 Thread Jimmy Schementi
To reiterate Jeff's last point, if you'd really like to see something continue to be supported, volunteering to help support it is the best way to ensure that. ~Jimmy On Jul 6, 2012, at 1:41 PM, Jeff Hardy wrote: > On Fri, Jul 6, 2012 at 10:27 AM, Vernon Cole wrote: >> I am really sorry to he