[IronPython] How can IronPython access a public static value defined in C#?

2011-06-15 Thread Doug Blank
Consider this C# code: public static class Graphics { public static Color white = new Color(255, 255, 255); } I can compile and import this from IronPython: import clr clr.AddReference(Graphics) import Graphics Graphics.white Color 255,255,255 But I can't: import clr

Re: [IronPython] matplotlib anyone?

2011-05-16 Thread Doug Blank
On Mon, May 16, 2011 at 4:20 PM, Chad Brockman cha...@slb.com wrote: Yes, unfortunately IronClad appears to be all but dead. I’ve looked at Sho – but the charts are just the 2d MSCharts for .Net (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c)

[IronPython] Extending Gtk.TextView

2011-05-06 Thread Doug Blank
Does anyone have an idea what this would mean, or how to fix it? import Gtk class MyTextView(Gtk.TextView): ... pass mtv = MyTextView() (pyjama:611): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.28.6/./gobject/gsignal.c:1549: signal set_scroll_adjustments already exists in the

Re: [IronPython] AttributeError : System.Drawing.Graphics is read-only

2011-04-18 Thread Doug Blank
On Mon, Apr 18, 2011 at 7:56 AM, NikoVFR vfr.n...@hotmail.fr wrote: Hello everybody... first i apologize for my bad english... i did not practice for a very long time... A strange problem in a ironpython app, done with Sharpdevelop... I created a form, without borders, captions, icon,

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-04-07 Thread Doug Blank
On Fri, Mar 25, 2011 at 3:02 PM, Jeff Hardy jdha...@gmail.com wrote: On Fri, Mar 25, 2011 at 12:46 PM, Doug Blank doug.bl...@gmail.com wrote: Excellent! IronPython 3.0 (trunk) with .NET framework 2.0 *builds* and *runs* great under Mono 2.10. And it seems to *run* great under Mono 2.6.7

Re: [IronPython] IronPython and XML Parsing

2011-04-06 Thread Doug Blank
As the the original issue, I couldn't get the FePy XML parser to work (nor any variation), so gave up, and went with a stand-alone XMPP dll that does it all. It would be most excellent to get a expat module working. To Vernon's point: On Wed, Apr 6, 2011 at 1:58 PM, Vernon Cole

Re: [IronPython] Writing cross-language libraries that appear native

2011-04-05 Thread Doug Blank
- Von: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] Im Auftrag von Doug Blank Gesendet: Montag, 4. April 2011 17:25 An: Discussion of IronPython Betreff: [IronPython] Writing cross-language libraries that appear native I'm working on writing C# libraries

[IronPython] Writing cross-language libraries that appear native

2011-04-04 Thread Doug Blank
I'm working on writing C# libraries which can be imported by a variety of .NET languages, DLR and otherwise, which appear native to the language importing them. For example, writing a C# function that can be used naturally in IronPython as if it were written in Python, IronRuby as if it were

Re: [IronPython] Writing cross-language libraries that appear native

2011-04-04 Thread Doug Blank
-Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Doug Blank Sent: Monday, April 04, 2011 8:25 AM To: Discussion of IronPython Subject: [IronPython] Writing cross-language libraries that appear native I'm working on writing C

Re: [IronPython] Writing cross-language libraries that appear native

2011-04-04 Thread Doug Blank
languages? (I wish the DLR group could help the F# group... they don't even have an eval, except for running the entire fsi.exe in a subprocess... wouldn't that be nice if they used a DLR environment...) -Doug ~Jimmy On Apr 4, 2011, at 12:21 PM, Doug Blank doug.bl...@gmail.com wrote: On Mon

Re: [IronPython] [Code Review] Custom PAL fixes

2011-04-01 Thread Doug Blank
On Thu, Mar 31, 2011 at 9:05 PM, Jimmy Schementi ji...@schementi.com wrote: By the way, is it about time to split this list into a development and users list, or you all don't mind seeing these type of mails? Many of the people subscribed want to get any insight into the DLR languages as they

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-25 Thread Doug Blank
On Thu, Mar 24, 2011 at 1:30 PM, Tomas Matousek tomas.matou...@microsoft.com wrote: It seems that we just need to disable XML warning in Microsoft.System.Core project. Ok. If you can provide a bit more information about this, I'll take a stab, or report an issue in the tracker. It sounds like

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-25 Thread Doug Blank
On Fri, Mar 25, 2011 at 12:16 PM, Tomas Matousek tomas.matou...@microsoft.com wrote: It's fixed - a trivial change: https://github.com/IronLanguages/main/commit/a8d9bc96aefcdb30bfd93a091b60ffb8fa4a8e4a Excellent! IronPython 3.0 (trunk) with .NET framework 2.0 *builds* and *runs* great under

Re: [IronPython] Building IronPython on Mono, and web updates

2011-03-24 Thread Doug Blank
On Wed, Mar 23, 2011 at 11:05 AM, Jeff Hardy jdha...@gmail.com wrote: On Wed, Mar 23, 2011 at 7:13 AM, Doug Blank doug.bl...@gmail.com wrote: Questions: 1) How to build a Release version rather than Debug? 2) How to set the framework to use 2.0 rather than 4.0? 1) msbuild Solutions/Dlr.sln

[IronPython] State of Moonlight with IronPython?

2011-03-24 Thread Doug Blank
Anyone know what the state of being able to view Moonlight apps in the browser with DLR languages? Or actually, what the state of Moonlight is generally? None of the examples off of the IronPython page: http://ironpython.net/browser/examples.html work under my Ubuntu 64-bit 10.10 with Firefox

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-24 Thread Doug Blank
On Thu, Mar 24, 2011 at 12:30 PM, Tomas Matousek tomas.matou...@microsoft.com wrote: Done. Thanks! Having some issues under Mono 2.10 with Microsoft.Scripting.Ast.Expression, and System.Runtime.CompilerServices. Here is my output, with a fresh IronPython git main. Any ideas? Also, if anyone

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-23 Thread Doug Blank
On Tue, Mar 22, 2011 at 1:30 PM, Jeff Hardy jdha...@gmail.com wrote: On Tue, Mar 22, 2011 at 11:03 AM, Doug Blank doug.bl...@gmail.com wrote: I'm not too concerned about ipy.exe itself, but about being about to use the dlls. I'm trying to verify that the IronPython 2.7 dlls absolutely need

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-23 Thread Doug Blank
.-- FAILED Build FAILED. -Doug Tomas -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Wednesday, March 23, 2011 8:05 AM To: Doug Blank Cc: Discussion of IronPython Subject: Re: [IronPython] Building

Re: [IronPython] Building IronPython/IronRuby for Mono? Yes!

2011-03-23 Thread Doug Blank
On Wed, Mar 23, 2011 at 6:26 PM, Tomas Matousek tomas.matou...@microsoft.com wrote: I see, I guess I forgot to add these configs to IronPython.Mono.sln. But they shoud certainly be there. Ok. I tried but couldn't guess my way to a working system. Can you add them, or should an issue be filed?

[IronPython] Building IronPython/IronRuby for Mono?

2011-03-22 Thread Doug Blank
I went to Codeplex to see about updating Pyjama [1] to use the latest IronPython and IronRuby, but had some issues: 1) There are only two downloads for 2.7: msi and a zip of binaries. Shouldn't there be a zip of sources? Or a note how how to get them? 2) I tried the zipped binaries on Mono 2.6.7

Re: [IronPython] Building IronPython/IronRuby for Mono?

2011-03-22 Thread Doug Blank
On Tue, Mar 22, 2011 at 9:29 AM, Markus Schaber m.scha...@3s-software.com wrote: Hi, Doug, Doug Blank wrote: 2) I tried the zipped binaries on Mono 2.6.7 under Ubuntu 10.10, but that doesn't look like it is supported: IronPython 2.7 and newer seem to need at least .NET 4.0, which needs

Re: [IronPython] Building IronPython/IronRuby for Mono?

2011-03-22 Thread Doug Blank
On Tue, Mar 22, 2011 at 11:03 AM, Jeff Hardy jdha...@gmail.com wrote: On Tue, Mar 22, 2011 at 7:33 AM, Doug Blank doug.bl...@gmail.com wrote: Is that you need Mono 2.8 to build IronPython, or to run it? IronPython2.6 beta 2 is running fine under Mono 2.6.7. IronPython 2.7 requires .NET 4

Re: [IronPython] Building IronPython/IronRuby for Mono?

2011-03-22 Thread Doug Blank
On Tue, Mar 22, 2011 at 11:55 AM, Vernon Cole vernondc...@gmail.com wrote: On Tue, Mar 22, 2011 at 8:14 AM, Markus Schaber m.scha...@3s-software.com wrote: Doug Blank wrote: IronPython 2.7 and newer seem to need at least .NET 4.0, which needs at least Mono 2.8. Is that you need Mono 2.8

Re: [IronPython] Building IronPython/IronRuby for Mono?

2011-03-22 Thread Doug Blank
On Tue, Mar 22, 2011 at 1:41 PM, Vernon Cole vernondc...@gmail.com wrote: On Tue, Mar 22, 2011 at 11:03 AM, Doug Blank doug.bl...@gmail.com wrote: I need a solution for general installs. Perhaps a stand-alone Mono 2.10 install will work, if I can't build IronPython 2.7 on Mono 2.10

[IronPython] C# replacement wrapper for ipy.exe

2011-03-22 Thread Doug Blank
I'm using the following C# code as a replacement for ipy.exe myscript.py. One reason for doing this is that this can be run in the background on Unix/Mac OSX under Mono, whereas ipy.exe can not. I don't know if there are other reasons, or if there are speed differences. However, my FullFrames

Re: [IronPython] numpy / IronClad?

2011-03-14 Thread Doug Blank
On Mon, Mar 14, 2011 at 1:25 PM, Jason McCampbell jmccampb...@enthought.com wrote: Hi Chad, Sorry for the delayed response, we were busy getting the beta release of NumPy and SciPy together.  Microsoft announced the availability of NumPy and SciPy for IronPython / .NET  at PyCon the end of

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-11 Thread Doug Blank
On Wed, Feb 9, 2011 at 3:41 PM, Andrew Jorgensen and...@jorgensenfamily.us wrote: Hello Folks, First let me thank you for making IronPython easy to compile on Mono. I'm the release manager for the Mono Project at Novell and I'm currently working on packaging IronPython and IronRuby for

[IronPython] Stopping, Closing, and Unloading of running IronPython code?

2011-02-09 Thread Doug Blank
If you have embedded IronPython engines (and perhaps a few other DLR languages) running in a thread, what is the recommended method of stopping the running programs, and calling the objects' delete methods? For example, say you have a serial port open in an IronPython program running in a thread,

Re: [IronPython] fepy's expat.py with xmpp?

2011-01-31 Thread Doug Blank
FYI, I ended up avoiding the whole issue by replacing both python-xmpp and pyexpat with a stand-alone open source XMPP library, agsXMPP. It works quite nicely, especially with the xmppd.py server, on all platforms. -Doug On Sat, Jan 29, 2011 at 5:48 PM, Douglas Blank dbl...@brynmawr.edu wrote:

[IronPython] ANN: Pyjama, DLR-based IDE and shell

2011-01-25 Thread Doug Blank
Dear IronPython list, Announcing the Pyjama Project, version 0.2.5. Pyjama is an IDE and shell similar to IDLE, except that it is designed for multiple languages. It can support any DLR-based language (given a small Python wrapper), and other languages as well. It comes with IronPython,

Re: [IronPython] Referenced Assemblies with DLR languages

2011-01-13 Thread Doug Blank
On Tue, Jan 11, 2011 at 8:13 AM, Doug Blank doug.bl...@gmail.com wrote: Two questions about referenced assemblies (which are really perhaps DLR questions): 1) I'd like to be able to use different names than are used in a DLL. For example, say I have a Library.dll, and it has a class

[IronPython] Referenced Assemblies with DLR languages

2011-01-11 Thread Doug Blank
Two questions about referenced assemblies (which are really perhaps DLR questions): 1) I'd like to be able to use different names than are used in a DLL. For example, say I have a Library.dll, and it has a class ReallyBadName. Is there an easy way that I can rename or alias ReallyBadName after I

Re: [IronPython] What is a good way to determine OS platform with IronPython?

2011-01-10 Thread Doug Blank
On Mon, Jan 10, 2011 at 3:37 PM, Douglas Blank dbl...@brynmawr.edu wrote: Now that IronPython runs on other operating systems, what is the recommended way to determine the os when running IP? `os.name` is probably what you want. There was some discussion on python-dev about a module (or

[IronPython] IronPython-2.0.1-Bin.zip contains 2.0.0?

2009-02-21 Thread Doug Blank
Unless my system is not unzipping the right files, it looks like IronPython-2.0.1-Bin.zip on page: http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=12481 actually has the 2.0.0 binaries: $ cd IronPython-2.0.1 $ ipy.exe -X:ColorfulConsole IronPython 2.0 (2.0.0.0) on

Re: [IronPython] IronPython 2.0 RC 2 on Mono

2009-02-20 Thread Doug Blank
Now that IronPython2 is out, wondering about IronPython on Mono... Seo Sanghyeon-3 wrote: Currently you need Mono SVN (both to run and to compile). Using SVN r120972 below. Any idea what version of Mono that is? Does IP2 build with Mono 2.2? It would be great to put out a IPCE r8 for