Re: [IronPython] Seattle IronPython Meetup

2011-06-10 Thread Steve Dower
Since I'm in the country for the next couple of months, I'll come along. On Fri, Jun 10, 2011 at 11:36, Brian Curtin wrote: > On Fri, Jun 10, 2011 at 12:42, Jeff Hardy wrote: >> >> Hi all, >> Is anyone in the Seattle area interested in an IronPython meetup, or >> even a sprint? Anybody fancy a h

Re: [IronPython] Creating Symbolic Links via IronPython

2011-03-31 Thread Steve Dower
You should be able to use ctypes for this. For example, the following works fine from CPython (I don't have IronPython handy on this computer): from ctypes import windll windll.kernel32.CreateSymbolicLinkA("c:\\py.exe", "c:\\python27\\python.exe", 0) The only difference may be calling CreateSymbo

Re: [IronPython] IronPython tools - minor suggestion

2011-03-24 Thread Steve Dower
The Productivity Power Tools extension (http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef/) may be the better place for this sort of feature (it already includes line highlighting), though I don't know whether it supports the shell versions (IIRC, it's >=Professiona

Re: [IronPython] What version of mono is required for IronPython 2.7?

2011-03-19 Thread Steve Dower
Whichever version added support for .NET/C# 4.0 (the dmcs compiler was in 2.6 but I think 2.8 was the first it'll work with). I've used IronPython with no problems under 2.10 (both on OpenSUSE and Ubuntu (built from source)). Good luck. It'd be handy for Ubuntu to catch up here. On Sun, Mar 20, 2

Re: [IronPython] Python Tools for Visual Studio

2011-03-10 Thread Steve Dower
mmands for the > individual assemblies > if you don't want to disable strong name verification for everything w/ that > key.  That's the > same key that all of the Visual Studio assemblies are signed with. > > If you'd like you can open bugs on pytools.codeplex.com

Re: [IronPython] Authenticode Signing of Releases

2011-02-23 Thread Steve Dower
It's easiest if someone "donates" a personal certificate, which then puts their name on the releases (as is done with TortoiseSVN and TortoiseHG, for example). However, without a sponsor organisation it's very hard to get hold of a "trustworthy" certificate (which a personal one is generally not).

Re: [IronPython] Road to IronPython 2.7 (update)

2011-02-21 Thread Steve Dower
The tools problem seems to be to do with the installer. IPyTools (PythonRuntimeHost.cs:89-100) tries to load the installed path from HKLM\SOFTWARE\IronPython\2.7\(default). On my machine (Win7 x64, IPy 2.7 RC1 installed without IPyTools, which were built from source) this is actually in HKLM\SOFTWA

Re: [IronPython] Arright dangit! Where is the OFFICIAL IronPython source code?

2011-02-21 Thread Steve Dower
Ubuntu doesn't have the latest version of Mono, which is required for the .NET 4.0 equivalent compiler (dmcs). You would have to build Mono from sources to get it. Alternatively, most other distributions seem to use the latest version (in particular, OpenSUSE and RHEL are actively supported by Mono

[IronPython] ScriptScope.SetVariable tip

2011-02-14 Thread Steve Dower
Just sharing something I discovered today that surprised me a little. I use ScriptScopes extensively throughout my hosted code to try and prevent interaction between separate scripts. In most cases, since I'm dealing with user-provided keys, I don't cast them to dynamic but access their contents t

Re: [IronPython] Pass Module Functions as Parameters to Functions

2011-02-10 Thread Steve Dower
There are two options here. You can either pass the function directly: def do_something(self, myFunction): myVar = someFunction(myFunction) obj.do_something(obj.function) Or you can pass the name as a string and use getattr: def do_something(self, myFunction): myVar

[IronPython] esecui - hosting a Python application with IronPython

2011-02-08 Thread Steve Dower
Hi everyone I finally decided that it's time to share my work (towards a PhD in intelligent systems) with the public, and since IronPython features heavily I figured it was worth posting a short note to the list. My main project is a Python framework called esec (http://code.google.com/p/esec/) f

Re: [IronPython] Issue Triage

2011-01-16 Thread Steve Dower
Going by the Windows documentation, I would expect REG_EXPAND_SZ to _optionally_ expand when retrieving the value, but never expand when setting it. The main set of Windows functions don't expand the value - the type is only an indicator that it may contain environment variables. That said, the on

Re: [IronPython] IP 2.7b1 - Accessing C# variables from Python

2011-01-05 Thread Steve Dower
If you're using C# 4.0 (comes with VS 2010/.NET 4) you can use the dynamic type to simplify this further: dynamic scope = engine.CreateScope(); scope.hash = new Dictionary(); scope.hash["key"] = "value"; On Thu, Jan 6, 2011 at 07:11, Ron Lindsey wrote: > Pascal, > > Well, I feel silly now. I was

Re: [IronPython] The elephant in the room: source control for IronPython

2010-10-29 Thread Steve Dower
Are IronPython and the DLR so closely coupled that you *need* the source for both to work on it? Or can you simply develop/test IronPython using the DLR in the GAC? I'd rather have the standard library as a 'default' part of the IronPython checkout than the DLR, primarily because a binary distro o

Re: [IronPython] The elephant in the room: source control for IronPython

2010-10-28 Thread Steve Dower
I'll add in a vote for Mercurial (voting always seems to be how to decide on VCS), though I still believe that SVN works better for a contribution/review/patch workflow. Is the plan after 2.7 to start doing 3? That seems like a good opportunity to "start fresh" in a new repository and leave the ol

Re: [IronPython] Unpacking

2010-09-08 Thread Steve Dower
Since we're all contributing here: d = { key: (v1, v2) for key, v1, v2 in zip(seq[::3], seq[1::3], seq[2::3]) } Or d = dict((key, (v1, v2)) for key, v1, v2 in zip(seq[::3], seq[1::3], seq[2::3]) using Python 2.6. The first uses a dictionary comprehension, which is new in 2.7/3 (but not IronPyth

Re: [IronPython] Status of Accepting External Contributions

2010-07-19 Thread Steve Dower
contributions to the tools (and other parts of the project), but as you'd suspect, there's lots of process for us to get to that point :-)." I guess that basically covers it for now. On Tue, Jul 20, 2010 at 07:24, Steve Dower wrote: > I'll throw in a quick second. I&

Re: [IronPython] Status of Accepting External Contributions

2010-07-19 Thread Steve Dower
I'll throw in a quick second. I'm also interested in contributing if/when possible. Steve On Tue, Jul 20, 2010 at 03:14, Jeff Hardy wrote: > Hi all, > This horse doesn't seem to have been beaten recently, so I thought I'd > bring it up again :). What's the status, if any, on allowing people > ou

Re: [IronPython] IronPy Tools CTP3 - Bugs

2010-07-17 Thread Steve Dower
gt; -Original Message- > From: users-boun...@lists.ironpython.com > [mailto:users-boun...@lists.ironpython.com] On Behalf Of Steve Dower > Sent: Thursday, July 15, 2010 3:09 PM > To: Discussion of IronPython > Subject: [IronPython] IronPy Tools CTP3 - Bugs > > Hey >

[IronPython] IronPy Tools CTP3 - Bugs

2010-07-15 Thread Steve Dower
Hey Thanks for the new version, it's much more stable and pleasant to use. I've thrown together another list of bug/annoyance/enhancement ideas - feel free to take or leave as appropriate. - Closing parentheses doesn't hide parameter information when using a generator For example, "sum(i for i in

Re: [IronPython] Missing folders in SVN

2010-06-27 Thread Steve Dower
I noticed this as well when one of the recent commits came through, figured it was going to be dealt with in good time. While the plan is to remove support for .NET 2.0 (which required some extra classes) and make .NET 4.0 will be the official target, the project files in IronPython_Main still hav

Re: [IronPython] IronPy Tools - updates?

2010-06-04 Thread Steve Dower
Sounds great. My next couple of weeks are put aside for documentation purposes anyway, so there's not much coding on the cards anyway. Cheers, Steve On Sat, Jun 5, 2010 at 04:46, Dino Viehland wrote: > Steve wrote: >> Just wondering what the outlook is for an update to IronPy Tools for >> VS? N

[IronPython] IronPy Tools - updates?

2010-06-03 Thread Steve Dower
Hi, Just wondering what the outlook is for an update to IronPy Tools for VS? Normally I don't bug developers about this, but my motivation for asking this time is that I've actually stopped using it. I've been working on a Word document that's in my project root folder (-1 for putting binary file

Re: [IronPython] IronPy Tools for VS - Projects

2010-05-17 Thread Steve Dower
Is it possible to have the directory based projects 'implied' when a single file is opened (TextMate http://macromates.com/ style)? Because I agree with Jeff here that loading existing projects is dead simple when you can just add a pyproj. Though the '...from existing code' option would be plenty

[IronPython] IronPy Tools for VS - Projects

2010-05-15 Thread Steve Dower
Just thought I'd put out some more thoughts on the automatic project hierarchy that IronPy Tools has (for now?) in the Solution Explorer. (I'll put out there right away that I would rather see it removed and have the traditional project management instead. Everything else I write should be read in

[IronPython] IronPy Tools for VS - QuickInfo exception

2010-05-13 Thread Steve Dower
I don't believe I did anything to cause these exceptions (taken from the /log file), but apparently it happened from a mouse-over event. I couldn't figure out what I moused over, but I have included the two exception messages. The second appears in the log 0.062 seconds after the first one (only on

[IronPython] IronPy Tools for VS - Bugs #2

2010-05-09 Thread Steve Dower
Another set, this time with some slightly more helpful repro steps (I hope). An exception is added to the devenv log file when triggering a completion on an 3rd-level import (ie. import moduleA.moduleB. or from moduleA.moduleB import ): System.NullReferenceException: Object reference not set to a

Re: [IronPython] IronPy Tools for VS - Bugs

2010-05-05 Thread Steve Dower
On Thu, May 6, 2010 at 08:56, Dino Viehland wrote: > > > > Completions should not start within strings (single-line strings > > aren't recognised as strings until the closing quote is added). > > Can you give an example of exactly what you type to make this happen?  I > can't currently repro it. >

[IronPython] IronPy Tools for VS - Bugs

2010-05-04 Thread Steve Dower
I've been collating some little things into a single email rather than spamming the list. These are roughly organised in order of annoyance, and none are show-stoppers by any measure. When completion auto-commits (Ctrl+Space --> word is completed, no dropdown) Enter cannot be pressed until anothe

Re: [IronPython] IronPy Tools for VS - Projects

2010-05-03 Thread Steve Dower
for funcb only includes the def and the pass (as expected). Interestingly, two unbound functions (remove class, unindent) have the correct regions class A: def funca(self): if True: pass def funcb(self): pass On Tue, May 4, 2010 at 05:58, Dino Viehland wrote

Re: [IronPython] IronPy Tools for VS - Projects

2010-05-02 Thread Steve Dower
> We have a plan to add the ability to hide individual files. Maybe we > need to have a set of wildcards which get excluded? We could even > have them both as project-level options as well as a VS-level option. Automatically including all (relevant) files seems redundant unless the files are bei

[IronPython] IronPy Tools for VS - Projects

2010-05-01 Thread Steve Dower
So, love having IronPy Tools (download from www.ironpython.net/tools/ for those who missed it) and very keen to help make it the best Python IDE out there (and frankly, it's almost there already IMHO). My first issue is with the project setup. While I really like it automatically pulling in all my