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

2011-03-24 Thread Michael Foord
ject. I'm happy for it to be used in that way, but I think ironpython.net is a better "official" project site. All the best, Michael Foord However, it appears that building the "v2..." targets doesn't work right now, which I was kinda afraid of. I think there's a discre

Re: [IronPython] IronPython 2.7.1 & 3.x Development

2011-03-15 Thread Michael Foord
sent to stderr when a script dies? There has been a long discussion recently on Python-dev [1] suggesting the creation of exactly such a launcher program for Python on Windows. Mark Hammond (copied) said he would implement it. Including IronPython support is a fine idea. All the best, Mi

Re: [IronPython] IronPython @ PyCon 2011

2011-03-07 Thread Michael Foord
On 7 March 2011 18:27, Jeff Hardy wrote: > On Mon, Mar 7, 2011 at 11:24 AM, Michael Foord wrote: > > Just don't clash with the testing BoF! (And sign up for it, last year it > was > > epic.) > > I'm specifically trying to avoid that one ... it better live up to

Re: [IronPython] IronPython @ PyCon 2011

2011-03-07 Thread Michael Foord
ig) during the sprints. All the best, Michael > - Jeff > > On Mon, Mar 7, 2011 at 9:42 AM, Jeff Hardy wrote: > > I'll be there, and so will Dino (with something very cool to show > > off). Anybody else? > > > > - Jeff > > > ___

Re: [IronPython] IronPython @ PyCon 2011

2011-03-07 Thread Michael Foord
I'll be there. :-) Michael On 7 March 2011 16:52, Giles Thomas wrote: > Jonathan Hartley and I will be flying the Resolver Systems flag... > > > On 07/03/2011 16:42, Jeff Hardy wrote: > >> I'll be there, and so will Dino (with something very cool to show >

Re: [IronPython] Proposed Release Schedule for 2.7

2011-01-31 Thread Michael Foord
On 28/01/2011 23:39, Jeff Hardy wrote: I'd like to propose the following release schedule for IronPython 2.7: Beta 2 - February 6 RC1 - February 20 RC2 - February 27 RTM - March 6 Looks great - thanks for driving this forward Jeff. Michael The need for a Beta 3 release could push

Re: [IronPython] Ref to "." to be omitted from sys.path. Objections?

2011-01-23 Thread Michael Foord
th from the interactive interpreter (I thought it would be '.') yet: >>> import os >>> os.listdir('') Traceback (most recent call last): File "", line 1, in OSError: [Errno 2] No such file or directory: '' All the best, Michael Foord - Je

Re: [IronPython] Issue Triage

2011-01-16 Thread Michael Foord
sue). Hmmm... it is still probably worth filing an issue with CPython: http://bugs.python.org/ All the best, Michael * Code has recently been added to fix this issue: types in assemblies loaded with .AddReferenceToFileAndPath() are not importable if they reference other assem

[IronPython] PyCon 2011 - Full talk and tutorial list now available!

2011-01-10 Thread Michael Foord
I'm very pleased to announce, on behalf of the PyCon 2011 Program committee, and entire PyCon 2011 volunteer staff, that the full list of PyCon 2011 talks is now public, and available! This was an especially hard year for the PyCon program committee: we had over 200 proposals for only 95 total s

Re: [IronPython] Tim Wyatt is out of the office

2010-12-29 Thread Michael Foord
Can we bounce this guys emails? Michael On 28 December 2010 23:41, Tim P. Wyatt wrote: > > I will be out of the office starting 24/12/2010 and will not return until > 30/12/2010. > > I will be reviewing my email less frequently than usual. > > For urgent matters please

Re: [IronPython] Re turning data to a form

2010-11-28 Thread Michael Foord
d form and let the first form look at the values after control has returned to it. (Presumably the first form is responsible for showing the second form, so it already has a reference to it.) All the best, Michael > Michael Foord-3 wrote: > > > > On 28/11/2010 18:47, robinsiebler w

Re: [IronPython] Re turning data to a form

2010-11-28 Thread Michael Foord
second form re-show the first form. All the best, Michael -- http://www.voidspace.org.uk/ READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses

Re: [IronPython] bytes and str in 2.7 io module

2010-11-09 Thread Michael Foord
t. I think the answer is yes, we are still prohibited from looking at the code, just because we're generally not supposed to look at open source code at all. Ha. :-) Does that mean you're no longer permitted to read the IronPython so

Re: [IronPython] Congratulations to Michael Foord on Receiving the Community Service Award

2010-11-05 Thread Michael Foord
On 04/11/2010 12:51, Pablo Dalmazzo wrote: Congratulations! Write another book! :) Thanks all. :-) I'll add writing another book to my list of things to do... Michael From: jcao...@gmail.com Date: Wed, 3 Nov 20

Re: [IronPython] All classes that subclass a given type

2010-10-29 Thread Michael Foord
e done (this is how IronPython on Silverlight does imports from the xap file). All the best, Michael Foord Thanks, slide -- http://www.voidspace.org.uk/ ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/lis

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

2010-10-29 Thread Michael Foord
On 28/10/2010 20:15, Noah Gift wrote: On Thu, Oct 28, 2010 at 6:34 AM, Michael Foord mailto:fuzzy...@voidspace.org.uk>> wrote: On 28/10/2010 03:53, Steve Dower wrote: I'll add in a vote for Mercurial (voting always seems to be how to decide on VCS), tho

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

2010-10-29 Thread Michael Foord
On 29/10/2010 01:32, Jeff Hardy wrote: On Thu, Oct 28, 2010 at 12:16 PM, Vernon Cole wrote: On Thu, Oct 28, 2010 at 7:34 AM, Michael Foord wrote: On 28/10/2010 03:53, Steve Dower wrote: Is the plan after 2.7 to start doing 3? That seems like a good opportunity to "start fresh"

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

2010-10-29 Thread Michael Foord
IronRuby projects. Switching to a single repository would be convenient because of this. Having to use git, even indirectly, is a high price to pay though. :-) All the best, Michael I'd rather have the standard library as a 'default' part of the IronPython checkout than the DLR, prim

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

2010-10-28 Thread Michael Foord
ue tracker? The issue tracker has been pretty well maintained. All the best, Michael Foord On Thu, Oct 28, 2010 at 18:27, Jeff Hardy wrote: Currently, IronPython is hosted in a TFS repository on CodePlex (http://ironpython.codeplex.com/), which was a copy of MS's internal TFS reposit

Re: [IronPython] The Future of IronPython

2010-10-22 Thread Michael Foord
On 22/10/2010 18:01, Jeff Hardy wrote: On Fri, Oct 22, 2010 at 10:37 AM, Michael Foord wrote: If the licenses *are* compatible, so we can ship a fully working zlib module, then fine (and great). It looks like the normal 3-clause BSD licence: http://componentace.com/data/ZLIB_.NET

Re: [IronPython] The Future of IronPython

2010-10-22 Thread Michael Foord
x27;s Zlib.Net - http://componentace.com/zlib_.NET.htm) with a different licence, and I don't know what the legal implications are of that. The second issue is that we (me and Michael) want to get a stable 2.7 out as soon as possible, and were not planning on adding community modules until the 2.7

Re: [IronPython] Announcing IronPython 2.7 Beta 1

2010-10-22 Thread Michael Foord
* for IronPython. IronPython doesn't use .pyc files (and not really .pyw either I think) so it isn't surprising it doesn't change those. I would really prefer that IronPython doesn't seize the association with .py files without explicit instruction from the user . Michael Foord

Re: [IronPython] Bug in copy module (really need help with this!) :)

2010-10-12 Thread Michael Foord
is most perplexing. Is it possible that you are using a custom version of the copy module? All the best, Michael the other problem is in production server, where this error uses to happen sporadically, most times we dont get this message but an error message of the most outer module which

Re: [IronPython] change in standard library behavior for compiled .exe/.dll???

2010-10-06 Thread Michael Foord
brary source when we sent out .exe's to customers before Hmmm... I'm pretty sure I always had to explicitly compile and bundle the standard library with previous versions of Python. Odd. Anyway, the simple solution is to ensure that you add any standard library modules you use to

Re: [IronPython] difference in compiling ipy in 3.5 vs. .NET 4.0?

2010-10-05 Thread Michael Foord
bly for "os", "os" is not an assembly but a Python module from the standard library. You need to ensure that the Python standard library (or the parts that you use and their dependencies) is on the path. All the best, Michael Foord and how do I ensure it gets found from my

Re: [IronPython] expat module for IronPython 2.6 for .NET?

2010-09-13 Thread Michael Foord
All the best, Michael Regards, William Johnston *From:* Michael Foord [mailto:mich...@voidspace.org.uk] *Sent:* Friday, September 10, 2010 12:54 PM *To:* Discussion of IronPython *Cc:* William Johnston *Subject:* Re: [IronPython] expat module for IronPython 2.6 for .NET? On 10/09/2010 14:56, W

Re: [IronPython] expat module for IronPython 2.6 for .NET?

2010-09-10 Thread Michael Foord
All the best, Michael Foord I need to use expat or SimpleXMLTreeBuilder for xml parsing from the following error: ImportError: No module named expat; use SimpleXMLTreeBuilder instead. Thanks, William Johnston ___ Users mailing list Users

Re: [IronPython] Implementing an IronPython extension mechanism with abstract classes

2010-09-06 Thread Michael Foord
ass C and makes sure that all of the interfaces it derives from and any abstract functions in its base class have Python implementations. Thanks Curt. I suspected it was something like that. All the best, Michael On Mon, Sep 6, 2010 at 10:27 AM, Michael Foord mailto:fuzzy...@voidspace

[IronPython] Implementing an IronPython extension mechanism with abstract classes

2010-09-06 Thread Michael Foord
on't exist however.) Can this be made to work or is there a better way to do "interface checking" of Python classes subclassing .NET types? All the best, Michael Foord -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading

Re: [IronPython] Prevention of SystemExit Dialog While Debugging

2010-08-30 Thread Michael Foord
isual Studio calling it for you? In the version of unittest that comes with Python 2.7 you can call unittest.main(exit=False). Alternatively you can just catch and ignore this exception yourself. All the best, Michael Although I suspect I can configure Visual Studio to ignore this exception

Re: [IronPython] Unittest Module Unavailable in V2.7a1

2010-08-30 Thread Michael Foord
On 30/08/2010 18:32, Jones, Larry wrote: Thanks, Michael, for the information. I copied the file unittest.py from my IronPython 2.6 installation to my IronPython 2.7 installation. It did seem to work, although discovering that in 2.7 unittest is a directory containing a number of other

Re: [IronPython] Unittest Module Unavailable in V2.7a1

2010-08-30 Thread Michael Foord
(that will probably work) is to copy the unittest package from a CPython 2.7 installation into your IronPython Lib directory. In IronPython 2.7 the unittest package is missing some files. All the best, Michael Foord Thanks. Have a great day! **

Re: [IronPython] If not IronPython, what?

2010-08-23 Thread Michael Foord
r than that the "technical arguments" that have been presented against .NET in this thread are poor. All the best, Michael Foord Fortunately I can use Ironpython because it has the dot net magic. Unfortunately I cant use cpython because it's just not magic. I agree with Vernon, a V

Re: [IronPython] ironpython.net down

2010-08-13 Thread Michael Foord
On 14/08/2010 00:20, Dino Viehland wrote: I pinged someone about it - Jimmy used to take care of these things :) Cool. Michael -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Michael Foord Sent: Friday

[IronPython] ironpython.net down

2010-08-13 Thread Michael Foord
Hello guys, Looks like someone forgot to pay the hosting bill for ironpython.net (?). Michael Foord -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all

Re: [IronPython] IronPython Silverlight 4 debugging... [No errors just not working]

2010-08-11 Thread Michael Foord
html div) to see if your event handlers are being fired. That would my first step. Michael Any ideas from System.Windows.Input import * velocity = 10 class Gui(): def __init__(self): self.grid = Grid() self.canvas = Canvas(Background = SolidColorBrush(Colors.

Re: [IronPython] Exception Performance

2010-08-03 Thread Michael Foord
.TryParse (http://msdn.microsoft.com/en-us/library/994c0zb1.aspx), but I don't know how to use out parameters from IronPython off the top of my head. out parameters are returned as extra values when you make the call. (So you don't pass in the "out" parameter - but you

Re: [IronPython] Building IronPython from sources

2010-07-28 Thread Michael Foord
erlight 3 and 4 are documented at http://www.silverlight.net/getstarted/overview.aspx. I've used Silverlight 4 features from IronPython 2.6. Michael *From:* users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] *On Behalf Of *Lukas Cenovsky *Sent:* Tuesday, Ju

Re: [IronPython] unittest broken in IPy 2.7A1

2010-07-27 Thread Michael Foord
On 25/07/2010 01:56, Vernon Cole wrote: Dear development team: This one may be important... This error is because although the unittest package directory is present in the Lib directory, big chunks of the actual unittest package are missing... Michael >"c:\program files\IronPy

Re: [IronPython] Problems with simple silverlight/gestalt example

2010-07-26 Thread Michael Foord
e out what I'm doing wrong. Are you trying to view the html file direct off the filesystem? You still need to serve it for it to work, even if it is only locally. You can use chiron to do this. Sorry if this has already been suggested. All the best, Michael Thanks, Tony On Thu, Jul 2

Re: [IronPython] Time out

2010-07-26 Thread Michael Foord
ems with use of Thread.Abort. You could do it another process altogether of course... Not aware of any easy alternatives. Michael On Fri, Jul 23, 2010 at 8:57 AM, Michael Foord mailto:fuzzy...@voidspace.org.uk>> wrote: On 23/07/2010 14:49, Saeli Mathieu wrote: Hello, I'm send

Re: [IronPython] Time out

2010-07-23 Thread Michael Foord
an infinite loop. Does anybody know something about that ? The only way I can think of doing it is to execute the code on a different thread and then abort the thread if it exceeds the timeout. Michael Sincerely -- Saeli Mathieu. +33 6 45 32 78 47 {Epit

Re: [IronPython] IronPython and Silverlight -- newbie question

2010-07-20 Thread Michael Foord
o core-clr API changes (grrr). If you replace the IronPython binaries in the examples with the IronPython 2.6.1 "IronPython for Silverlight" binaries then all the code should "just work". I need to update the examples and get Manning to use the later version - my apologies. A

Re: [IronPython] Announcing IronPython 2.7 Alpha 1

2010-07-17 Thread Michael Foord
On 16/07/2010 21:38, Dave Fugate wrote: Hello Python Community, Congratulations guys. Michael We're pleased to announce the Alpha release of IronPython 2.7 which can be downloaded at http://ironpython.codeplex.com/releases/view/42434. This is a major new version of IronPython w

Re: [IronPython] compiling an executable with the standard library

2010-07-12 Thread Michael Foord
hreading import Thread" etc. Michael On Mon, Jul 12, 2010 at 3:54 PM, Andrew Evans mailto:evans.d.and...@gmail.com>> wrote: Hell ty for your fast reply. I compiled the dll using your script. I then did a clr.AddReference in my py code. I also switched to Python 2.6.0.

Re: [IronPython] IPy Dependencies?

2010-07-12 Thread Michael Foord
On 12/07/2010 19:31, Funke, Matt wrote: Is there any chance that IronPython has dependencies on PyQt or anything like that? Absolutely no chance at all. :-) Michael My copy of PyScripter (1.9.9.7) stopped working after I tried to use it to edit some scripts I was building for IronPython

Re: [IronPython] Adding more than one entry to a TextBox WPF

2010-07-11 Thread Michael Foord
utput.Text += (self.entry_input.Text + "\n") No need for the call to str - the Text property of a textbox is already a string. All the best, Michael Here is my app code #PYTHON# import clr clr.AddReference("PresentationFramework") clr.AddReference("PresentationCore

Re: [IronPython] using XAML in IronPython

2010-07-09 Thread Michael Foord
, FileMode.Open)) app.Run(root) HTH, Michael XAML http://schemas.microsoft.com/winfx/2006/xaml/presentation"; xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"; Title="Hello World" Height="300" Width="300"> Click Me Python

Re: [IronPython] Compiling so that IronPython libraries are recognized?

2010-07-09 Thread Michael Foord
I still wouldn't expect normal module installation to work. All the best, Michael I can verify that subprocess.py is in C:\Users\me\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Microsoft\IronPython Tools for Visual Studio\0.2\Lib. Do I need to add this directory to an environmen

Re: [IronPython] Foolproof IP Embedding

2010-07-08 Thread Michael Foord
user code on a background thread. Provide a means for actions to be invoked on the gui thread (wrapped in exception handling) if necessary. Provide a button to abort the thread if it goes on too long. Michael This questions are more about .NET and patterns than IronPython, but I figured some of

Re: [IronPython] png images in xaml

2010-07-08 Thread Michael Foord
statically as embedded resources (or something like that). If I recall correctly, in IronPython in Action I do it by preprocessing the xaml to insert the absolute path in the correct syntax before loading the xaml. Doing it from code is the other alternative. All the best, Michael -- http

Re: [IronPython] Write permissions

2010-07-08 Thread Michael Foord
On 08/07/2010 19:46, Rob Brown-Bayliss wrote: On Thu, Jul 8, 2010 at 11:38 PM, Michael Foord wrote: Writing to C: in Vista and Windows 7 requires elevated permissions so your application will require admin privileges. Can you not choose another location to write to (one of the user

Re: [IronPython] Dynamic-ish programming, or MissingMemberException

2010-07-08 Thread Michael Foord
s saves me newbie pains - but can I make this work with VS 2010 Express? Yes - just compile assemblies from the VS 2010 C# Express winforms designer. Add references to those assemblies and import from them in IronPython as you would for any .NET assembly. Michael -- http://www.ironpythonin

Re: [IronPython] Dynamic-ish programming, or MissingMemberException

2010-07-08 Thread Michael Foord
cause it isn't really possible without horrible hacks. I recommend using the Visual Studio C# designer and then subclass the classes it generates from IronPython. Michael -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this

Re: [IronPython] Packaging IronPython GUI app

2010-07-08 Thread Michael Foord
m your IronPython application, or write a minimal C# .exe that embeds the IronPython engine and starts the app. Both ways are pretty easy. All you need to do is include the IronPython assemblies along with your app. All the best, Michael Foord -- http://www.ironpythoninaction.com/ http://w

Re: [IronPython] GUI programming / IronPython

2010-07-08 Thread Michael Foord
in Action has great material on both winforms and WPF, naturally. :-) All the best, Michael Foord -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and

Re: [IronPython] Write permissions

2010-07-08 Thread Michael Foord
iting to C: in Vista and Windows 7 requires elevated permissions so your application will require admin privileges. Can you not choose another location to write to (one of the user folders)? Michael I expect this will bite me a lot on vista, but it works on xp. Can some one point me in

Re: [IronPython] IronPython/Silverlight -- callback problem

2010-07-08 Thread Michael Foord
On 08/07/2010 12:28, Jan-Philip Gehrcke wrote: Thanks for your comment, Michael. I found the explanation in the docs: http://msdn.microsoft.com/en-us/library/ms619201(v=VS.95).aspx The default setting is `BitmapCreateOptions.DelayCreation` -> "Causes a BitmapSource object

Re: [IronPython] IronPython Tools for existing project

2010-07-07 Thread Michael Foord
On 07/07/2010 22:18, Dino Viehland wrote: Michael wrote: A further problem I forgot to mention is that when I add / create items through the ui it puts absolute paths in the project file rather than relative ones. This makes it problematic to keep the project files under version control

Re: [IronPython] IronPython/Silverlight -- callback problem

2010-07-07 Thread Michael Foord
rce on an image. Does the code behave differently if you write it in C#? If you set the bitmapimage as the image source does the event then fire correctly? If so perhaps create the image control but only add it to the visual tree once the bitmap has loaded. Michael If I re-activate (or un-outcom

Re: [IronPython] IronPython Tools for existing project

2010-07-06 Thread Michael Foord
is a real problem for us and negates some of the advantage of using Visual Studio. When there is any news on it please let us know. Also please let me know when there is news on informing the Silverlight xaml designer about referenced assemblies. All the best, Michael Foord On 06/07/2010 23

Re: [IronPython] Better NumPy/SciPy Support for IronPython

2010-07-06 Thread Michael Foord
On 02/07/2010 21:52, Dave Fugate wrote: *From:* users-boun...@lists.ironpython.com [users-boun...@lists.ironpython.com] on behalf of Michael Foord [fuzzy...@voidspace.org.uk] *Sent:* Thursday, July 01, 2010 2:44 PM *To

Re: [IronPython] Developing Silverlight apps using IronPython -- best strategies

2010-07-05 Thread Michael Foord
ble to deliver compiled IronPython binaries with Silverlight applications - mainly for startup performance (but also code obfuscation which is always a controversial topic). We also use background thread importing but it is still not as fast as we *would like*... :-) I think the limitation here is in

Re: [IronPython] IronPython Tools for existing project

2010-07-05 Thread Michael Foord
On 05/07/2010 21:27, Jimmy Schementi wrote: On Mon, Jul 5, 2010 at 1:22 PM, Michael Foord mailto:fuzzy...@voidspace.org.uk>> wrote: On 05/07/2010 21:20, Dino Viehland wrote: We should definitely be adding relative paths so this is just a bug and I'll tak

Re: [IronPython] IronPython Tools for existing project

2010-07-05 Thread Michael Foord
e external assemblies it needs to serve.) All the best, Michael -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Michael Foord Sent: Monday, July 05, 2010 8:12 AM To: Discussion of IronPython Cc: Sven Passig Subject: Re: [

Re: [IronPython] IronPython Tools for existing project

2010-07-05 Thread Michael Foord
. When I edit these paths to make them relative to the solution file / project file everything seems to work - so I can create a tool to "fix" the project files I guess. All the best, Michael Foord On 05/07/2010 15:38, Michael Foord wrote: Hello all, I'm working with a team o

[IronPython] IronPython Tools for existing project

2010-07-05 Thread Michael Foord
allow me to add any references... The only active button on it is "Cancel". Is it possible to add references to Silverlight assemblies used by our project? (And preferably have them picked up by both the xaml designer and by chiron.) All the best, Michael -- http://www.ironpythonina

Re: [IronPython] Announcing IronPython Tools for Visual Studio CTP3

2010-07-02 Thread Michael Foord
versions will be at http://ironpython.net/tools/download/versions.html. That's helpful. Thanks Michael Foord ~Jimmy *From:* users-boun...@lists.ironpython.com [users-boun...@lists.ironpython.com] on behalf

Re: [IronPython] Announcing IronPython Tools for Visual Studio CTP3

2010-07-01 Thread Michael Foord
/ Can the download page please have a download link on it instead of (or as well as) serving the download through a refresh: http://ironpython.net/tools/download/ Additionally, if possible, can the downloaded file have a version number in the filename please. :-) Thanks Michael Foord

Re: [IronPython] Better NumPy/SciPy Support for IronPython

2010-07-01 Thread Michael Foord
.NET bridge is "very slow"? I can believe there are places where it is slower but but I've never seen enthought (or any one else) show metrics of this. Michael   Not only will this porting effort drastically improve the performance of Python’s top scientific packages under I

Re: [IronPython] bug when overriding __delattr__

2010-06-23 Thread Michael Foord
del a.x Traceback (most recent call last): File "", line 1, in File "", line 3, in __delattr__ AttributeError: 'A' object has no attribute 'x' You are correct, but this has already been reported and is fixed on trunk. The fix will be in

Re: [IronPython] Problem Closing Application

2010-06-14 Thread Michael Foord
On 14/06/2010 08:53, Anthony wrote: Hi Michael Sorry for the late reply - only got back to my email this morning :-) I tried to close the form - but when doing that - the whole application closed - I think this was mainly due to the fact that that form was seen as the "main form&qu

[IronPython] Problem with ScriptSource.GetCodeProperties()

2010-06-13 Thread Michael Foord
call last): File "", line 1, in TypeError: Value cannot be null. Parameter name: parameters If instead of 'stdin' I use '' like I used to it throws for that as well. All the best, Michael Foord -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/b

Re: [IronPython] Problem Closing Application

2010-06-12 Thread Michael Foord
form and close the login form then. You can also call Application.Exit() (I believe - this is off the top of my head so you should check) to exit the GUI event loop. All the best, Michael Regards Anthony ___ Users mailing list Users@l

Re: [IronPython] NLTK in C# application?

2010-06-11 Thread Michael Foord
process module (yet) for IronPython. Two alternatives are: http://www.ironpython.info/index.php/Launching_Sub-Processes http://www.ironpython.info/index.php/The_subprocess_module All the best, Michael Foord As an aside, this works for Python 2.6. Thanks. *From:* Michael Foord [mailto:f

Re: [IronPython] NLTK in C# application?

2010-06-11 Thread Michael Foord
y add a directory to this path ("sys.path.append(r'c:\SomePath')") at the start of your code to add extra locations to your import path. All the best, Michael Thanks. *From:* Michael Foord [mailto:fuzzy...@voidspace.org.uk] *Sent:* Thursday, June 10, 2010 11:29 AM *To:

Re: [IronPython] NLTK in C# application?

2010-06-10 Thread Michael Foord
win32 mailing list could probably tell you. An easier route would be to install Python, then install PyYaml, then either copy the files to somewhere on sys.path for IronPython (or add your Python site-packages folder to sys.path in your IronPython code). All the best, Michael Foord T

Re: [IronPython] NLTK in C# application?

2010-06-10 Thread Michael Foord
K examples from IronPython but with Ironclad and see if that works. http://www.resolversystems.com/products/ironclad/ If it still doesn't work it may be worth reporting back here with the problems to see if they are resolvable. All the best, Mi

Re: [IronPython] How should I install packages?

2010-06-09 Thread Michael Foord
utils.setup, it goes into "ironpython mode" and then just manually copies stuff. So where should I install stuff? Just copy it somewhere in sys.path? I think that's about the current practise... :-) Michael Is there a convention other people are following? Matt PS and OT

Re: [IronPython] Using Epydoc with IronPython 2.6.1

2010-06-09 Thread Michael Foord
On 09/06/2010 23:43, Danny Fernandez wrote: Hi Michael, Are there any documentation tools that would work with IronPython that you would recommend? Hmmm... in terms of automatically generating api documentation from docstrings there are embarrassingly few for Python - let alone IronPython

Re: [IronPython] Using Epydoc with IronPython 2.6.1

2010-06-09 Thread Michael Foord
st recent call last): File "", line 1, in AttributeError: 'instancemethod' object has no attribute '__cmp__' CPython 2.6.5: >>> class X(object): ... def f(s): pass ... >>> a = X() >>> a.f.__cmp__ Michael Thanks Danny

Re: [IronPython] WPF/IronPython event handlers question - multiple event handlers

2010-06-07 Thread Michael Foord
installed multiple times then don't add it multiple times... Michael Foord Is this really what I'm seeing? I can see a case for assigning multiple *different* EH's: my_button.Click += event_handler_1 my_button.Click += event_handler_2 but then this begs the question, is there a

Re: [IronPython] No Module named Zlib import error after installing DLL

2010-06-03 Thread Michael Foord
efore you can import from it. Try: import clr clr.AddReference('IronPython.Zlib') (Substitute the correct name of the dll into the AddReference call.) HTH, Michael Foord It probably has something to do with my environment variables, what do I need to do get them to impor

Re: [IronPython] Performance str.replace in Silverlight

2010-06-01 Thread Michael Foord
On 01/06/2010 21:11, Dino Viehland wrote: Michael wrote: I just tracked down a really nasty performance bug in our Silverlight application. It turned out that doing a simple string replace in a 400 character string was taking 700ms. As we actually do two replaces and the text is usually

Re: [IronPython] Performance str.replace in Silverlight

2010-05-28 Thread Michael Foord
an time. I thought it was quiet. :-) Thanks Michael -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Michael Foord Sent: Thursday, May 27, 2010 9:41 AM To: Discussion of IronPython Subject: [IronPyth

Re: [IronPython] how to make zlib available?

2010-05-28 Thread Michael Foord
t on my "sys.path" With that dll on sys.path, try: import clr clr.AddReference('IronPython.Zlib') Once you have successfully added a reference to the assembly you should then be able to import from it. HTH, Michael - but maybe that's because I'm using the

[IronPython] Performance str.replace in Silverlight

2010-05-27 Thread Michael Foord
', '\n') text = String.Replace(text, '\r', '\n') All the best, Michael Foord -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from al

Re: [IronPython] App stops responding, form won't refresh

2010-05-26 Thread Michael Foord
http://www.ironpython.info/index.php/Progress_Bar All the best, Michael Michael Foord-5 wrote: On 26/05/2010 22:40, robinsiebler wrote: This is my 1st IronPython/.NET app. It is really simple, all it does is zip all the files in a folder into an archive, 1 file per zip. The problem is that

Re: [IronPython] App stops responding, form won't refresh

2010-05-26 Thread Michael Foord
thon/threading.shtml All the best, Michael Foord The project is here - http://cid-0c375b07f1f323b6.skydrive.live.com/self.aspx/.Public/ZipfilesGUI.zip I think I need to add a thread to update the form, but all of my attempts have failed. Any help in this regard would be greatly appreci

Re: [IronPython] Difference in pickle between IronPython 2.6 and CPython 2.6

2010-05-21 Thread Michael Foord
es. pickle.dumps returns a string and in IronPython strings are unicode. Michael Thanks Rohit Aggarwal ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- http://www.ironpythoninacti

Re: [IronPython] Some More Newbie Questions

2010-05-19 Thread Michael Foord
(etc). It *doesn't* automatically add these path entries to sys.path when you run under debugging though. Michael ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com -- http://

Re: [IronPython] Can't install IronPython Tools for Visual Studio

2010-05-02 Thread Michael Foord
hout a Visual Studio install. http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=dfba7ac4-5366-456e-abd6-0e3e6ba83b7c Michael I installed it and downloaded the Iron Python extension. However, as soon as I "doble-click" on the IronPythonTools.vsix I get this message:

Re: [IronPython] Calling explicitly-implemented interface methods

2010-04-30 Thread Michael Foord
On 30/04/2010 23:58, Dino Viehland wrote: Michael wrote: On 30/04/2010 23:32, Dino Viehland wrote: Michael wrote: Hey all, I'm porting the dotnet-integration document that comes with IronPython to Try Python. The following example doesn't work, because Registr

Re: [IronPython] Calling explicitly-implemented interface methods

2010-04-30 Thread Michael Foord
On 30/04/2010 23:58, Dino Viehland wrote: Michael wrote: On 30/04/2010 23:32, Dino Viehland wrote: Michael wrote: Hey all, I'm porting the dotnet-integration document that comes with IronPython to Try Python. The following example doesn't work, because Registr

Re: [IronPython] Calling explicitly-implemented interface methods

2010-04-30 Thread Michael Foord
On 30/04/2010 23:32, Dino Viehland wrote: Michael wrote: Hey all, I'm porting the dotnet-integration document that comes with IronPython to Try Python. The following example doesn't work, because RegistryKey isn't available on Silverlight. Can anyone suggest a good al

[IronPython] Calling explicitly-implemented interface methods

2010-04-30 Thread Michael Foord
>> rkey.Dispose() However, it is possible that the type has another method with the same name. In that case, the explicitly implemented method is not accessible as an attribute. However, it can still be called by using the unbound class instance method syntax:: >>> rkey

Re: [IronPython] How to install 3rd part packages into IronPython ?

2010-04-29 Thread Michael Foord
One way to use Python C extensions with IronPython is through Ironclad: http://www.resolversystems.com/products/ironclad/ All the best, Michael Foord distutils used to break *after* installing a pure-Python package for IronPython when it attempted to do byte-code compilation. This

Re: [IronPython] How to install 3rd part packages into IronPython ?

2010-04-27 Thread Michael Foord
the error was alarming but wouldn't stop the install. All the best, Michael Foord On 27/04/2010 07:19, David Shieh wrote: Hi guys, I don't whether somebody else asked this question, but I am really confused about this. I have already installled IronPython2.6 and add it into my system

Re: [IronPython] Accessing assembly names from Silverlight

2010-04-26 Thread Michael Foord
On 26/04/2010 21:40, Dino Viehland wrote: Michael wrote: Hello all, The following code dies in Silverlight: import clr clr.AddReference("System.Xml") "System.Xml" in [assembly.GetName().Name for assembly in clr.References] SystemError: Securit

Re: [IronPython] Quickstart guide for Ironpython Studio

2010-04-26 Thread Michael Foord
On 26/04/2010 13:03, Ben Rousch wrote: On Mon, Apr 26, 2010 at 7:22 AM, Michael Foord wrote: On 26/04/2010 12:20, jon vs. python wrote: Hi, Is there any guide to get started with Ironpython Studio? Simple: 1) Uninstall 2) Delete all trace of it 3) Pick a working Python / IronPython IDE

  1   2   3   4   5   6   7   8   9   10   >