Re.Mark

My Life As A Blog

Archive for May 2010

IronPython Console App

leave a comment »

Having installed the CTP of IronPython tooling for Visual Studio, I thought I’d better try it out and write a simple app.  A Console Application seemed like a good choice – and I haven’t done much with getting data over the internet in Python, so I combined the two.  Here’s the resulting simple (and, in its current form, not especially useful) application:


import urllib2
from System import Console

print "Starting..."
data = urllib2.urlopen("http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml").read()
print data

Console.WriteLine()
Console.ReadKey()
Advertisements

Written by remark

May 28, 2010 at 4:33 pm

Posted in .NET, Python, Tools

IronPython meet Visual Studio

leave a comment »

On IronPython URLs, I just spotted that a CTP of IronPython tooling for Visual Studio 2010 is available.  Now you can create IronPython projects in Visual Studio like this:

image

It’s an early preview, but you still get intellisense, a REPL, debugging and a lot more besides – there’s more detail here.

Written by remark

May 1, 2010 at 6:20 pm

Posted in .NET, Python