Re: [IronPython] When does data binding occur?

2006-07-26 Thread J. Merrill
Oops, my bad.  DataBind is apparently only available in ASP.Net apps.  There, it makes the data binding happen when you want it to (in the page processing model); in Windows Forms apps, I knew it happens by itself -- but I thought you could get it to happen earlier, as you seemed to need, by call

Re: [IronPython] NET Attributes.

2006-07-26 Thread Michael Foord
Martin Maly wrote: > > Unfortunately, no. Adding .NET attributes on Python classes in > IronPython is not possible. > > Somewhat similar Pythonic thing is function and method decorators: > > @command(“MyCommand”, CommandFlags.Modal) > > def RunMyCommand(): > > …. > > However, this will not interop

Re: [IronPython] Bug in urllib?

2006-07-26 Thread Mike Raath
Thanks Bruce - it's not a huge prob for me right now - I was just trying to come up with a benchmark script for you guys to use to test BeautifulSoup performance. Will look at doing it with text files rather than urls tomorrow. On 7/26/06, Bruce Christensen <[EMAIL PROTECTED]> wrote: T

Re: [IronPython] __future__ is a little too magic for its own good

2006-07-26 Thread Milind Chabbi
Hi Jonathan, You may be getting this error because you do not have __future__.py in the path. See the following examples: 1. When you do not have __future__.py C:\ip2\IronPython\Public\Src\Test>ip IronPython 1.0.2396 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved

Re: [IronPython] When does data binding occur?

2006-07-26 Thread jeff sacksteder
Do you call DataBind ?No, Call it on what? The Datagridview? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] NET Attributes.

2006-07-26 Thread Martin Maly
Unfortunately, no. Adding .NET attributes on Python classes in IronPython is not possible.   Somewhat similar Pythonic thing is function and method decorators:   @command(“MyCommand”, CommandFlags.Modal) def RunMyCommand():     ….   However, this will not interoperate well with .NET

Re: [IronPython] Bug in urllib?

2006-07-26 Thread Bruce Christensen
This is a bug. It has never worked—although it would be great if it did. As noted in socket.__doc__, socket.makefile() (which urllib.urlopen() depends on) is not implemented. We’re aware of the problem, and I’ve filed a bug at http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPytho

[IronPython] NET Attributes.

2006-07-26 Thread Tim Riley
Is it possible to use .NET attributes in IronPython? For example I have C# code that looks like:[CommandMethod("MyCommand", CommandFlags.Modal)]public static void RunMyCommand(){    'code here }Can I do something similiar in IP? I'll take anything. ___ us

Re: [IronPython] When does data binding occur?

2006-07-26 Thread J. Merrill
Do you call DataBind ? At 01:25 PM 7/25/2006, jeff sacksteder wrote >In my __init__ method, I create a DataGridview and set it's datasource to a >BindingSource previously created. If the very last line of my __init__ gets >the 'Rows' property of the DGV, it is an empty collection. I can get othe

[IronPython] PythonEngine.EvaluateAs and future division

2006-07-26 Thread Kristof Wagemans
The following code gives different results. Is this expected or a bug?   IronPython.Compiler.Options.Division = IronPython.Compiler.DivisionOption.New; PythonEngine _pe = new PythonEngine(); _pe.Execute("result1 = 1/2"); double result1 = Convert.ToDouble(_pe.Globals["result1"]); doubl

[IronPython] Hosting question

2006-07-26 Thread Slide
I have been playing around with embedding IronPython into an application to provide scripting support for my .NET application. One thing that I have noticed is that to get the output from the interpreter you have to use EvalToConsole. So to capture the input, I have to use SetStandardOut to some me

Re: [IronPython] profiling ipy apps

2006-07-26 Thread J. Merrill
You could use a third-party product like Red-Gate software's "ANTS Profiler" -- http://red-gate.com/products/ants_profiler/index.htm There's a 14-day trial, and it's a lot cheaper than Team Suite (one copy is $295, 10 copies are <$160 per user). Buying hint: at the end of each month, the sal

Re: [IronPython] ActiveX Winfowms and IronPython

2006-07-26 Thread Max Bolingbroke
Михаил Подгурский wrote: > Is there any way to add any ActiveX controls to WinForm in IronPython > code? Hi, The procedure should be similar to that used in C#. There are details about that here: http://www.codeproject.com/csharp/importactivex.asp. Basically, all you need to do is generate a m

Re: [IronPython] __future__ is a little too magic for its own good

2006-07-26 Thread Jonathan Jacobs
Jonathan Jacobs wrote: > This appears to happen with every other __future__ import I tried. Actually, I suppose this is because I don't have the Python stdlib in my path. So ignore that. :) > P.S. Icons! Whee!!! This still applies. -- Jonathan _

[IronPython] __future__ is a little too magic for its own good

2006-07-26 Thread Jonathan Jacobs
IronPython 1.0.60725 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> with Traceback (most recent call last): File , line 0, in ##3 NameError: name 'with' not defined >>> from __future__ import with_statement Traceback (most recent call last): File , line 0

[IronPython] Bug in urllib?

2006-07-26 Thread Mike Raath
I'm getting an error trying to use urllib - AttributeError: 'socket' object has no attribute 'makefile' Using 1.0 RC1. Not sure if this has ever worked - get NotImplementedError: getaddrinfo() is not currently implemented in the Beta 9. >>> import sys>>> sys.path.append("C:\\Python24\\Lib")>>> impo

Re: [IronPython] 'DataGridView' object has no attribute 'BeginInit'

2006-07-26 Thread Martin Maly
BeginInit is an explicitly implemented interface (ISupportInitialize) method on the DataGridView class. To call it, you need to use the explicit syntax: grid = DataGridView( ... ) ISupportInitialize.BeginInit(grid) In this case we wanted to preserve the nature of explicitly implemented interfa

[IronPython] 'DataGridView' object has no attribute 'BeginInit'

2006-07-26 Thread Cheemeng
hi IP team, the DataGridView object has no attribute BeginInit this is previously fix in 1.0 beta4 I think. cheemeng ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] ImportError: No module named parser

2006-07-26 Thread HEMMI, Shigeru
Thanks for the response, Dino. FYI, what I wanted to use is miniconf 1.0.1 written by Sylvain Fourmanoit: http://cheeseshop.python.org/pypi/miniconf/1.0.1 Regards, 2006/7/26, Dino Viehland <[EMAIL PROTECTED]>: > Well, it's only a problem if you need the parser module :) I've opened > CodePlex

Re: [IronPython] md5.py throws exception

2006-07-26 Thread Mark Rees
Thanks. Ignore my other post reporting the same thing, mailing list seems a little slow at distributing things at the moment. On 7/26/06, Martin Maly <[EMAIL PROTECTED]> wrote: > This appears to be a bug in IronPython. I tried with Beta 8 and 9 and they > both worked, RC fails. I've filed the bug

[IronPython] TypeError: multiple overloads of Create could match()

2006-07-26 Thread Mark Rees
On 7/26/06 in another thread, Kevin Chu <[EMAIL PROTECTED]> wrote: > I try this md5.py,but throw an exception! > > >>> import md5 > >>> m=md5.new() > Traceback (most recent call last): > File , line 0, in ##12 > File D:\TECH\IronPython\Lib\md5.py, line 31, in new > File D:\TECH\IronPython\Lib

Re: [IronPython] md5.py throws exception

2006-07-26 Thread Martin Maly
This appears to be a bug in IronPython. I tried with Beta 8 and 9 and they both worked, RC fails. I've filed the bug on CodePlex. It is a good one to look at for the final release. Thanks for the report! Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Beh

Re: [IronPython] IronPython 1.0 RC1 is Released

2006-07-26 Thread Kevin Chu
I try this md5.py,but throw an exception! >>> import md5 >>> m=md5.new() Traceback (most recent call last): File , line 0, in ##12 File D:\TECH\IronPython\Lib\md5.py, line 31, in new File D:\TECH\IronPython\Lib\md5.py, line 15, in __init__ TypeError: multiple overloads of Create could match

[IronPython] md5.py throws exception

2006-07-26 Thread Mark Rees
On 7/26/06, Kevin Chu <[EMAIL PROTECTED]> wrote: > I try this md5.py,but throw an exception! > > >>> import md5 > >>> m=md5.new() > Traceback (most recent call last): > File , line 0, in ##12 > File D:\TECH\IronPython\Lib\md5.py, line 31, in new > File D:\TECH\IronPython\Lib\md5.py, line 15,

Re: [IronPython] IronPython and Swig

2006-07-26 Thread Lee Culver
Actually if this is a Python-based swig DLL then it won't work at all. IronPython does not support loading of CPython based modules as of yet. You'd have to ask the team if this is eventually planned. Trying to do so will result in: >>> from pyogre import ogre Traceback (most recent call last):

Re: [IronPython] speed

2006-07-26 Thread Mark Rees
Yes the speed improvement in RC1 is much appreciated. I am doing an IronPython presentation at the Sydney Python User Group tomorrow evening, and was expecting negative comments about IronPython Console launch time. RC1 has given a 2.5 speedup. Thanks. Mark On 7/26/06, Luis M. Gonzalez <[EMAIL PR

Re: [IronPython] IronPython 1.0 RC1 is Released

2006-07-26 Thread Mark Rees
As an interim solution our friend Seo has an implementation of md5 for IronPython. http://sparcs.kaist.ac.kr/~tinuviel/fepy/lib/ On 7/26/06, Kevin Chu <[EMAIL PROTECTED]> wrote: > I am glade to hear about this greate news! > Especially, it implemented a large number of the standard CPython > buil

Re: [IronPython] IronPython 1.0 RC1 is Released

2006-07-26 Thread M. David Peterson
This is FANTASTIC!I've made a quick announcments/thanks to the O'Reilly Windows DevCenter > http://www.oreillynet.com/windows/blog/2006/07/msironpython_ironpython_10_rc1_1.html < and furthermore plan to get a hold of Preston Gralla (the editor of the Windows DevCenter) to discuss the potential of

Re: [IronPython] IronPython 1.0 RC1 is Released

2006-07-26 Thread Kevin Chu
I am glade to hear about this greate news! Especially, it implemented a large number of the standard CPython built-in modules. But I found md5 module is not implemented yet! 2006/7/26, Dino Viehland <[EMAIL PROTECTED]>: > Hello IronPython Community, > > We have just released IronPython 1.0 RC1. W

Re: [IronPython] speed

2006-07-26 Thread Luis M. Gonzalez
>> The only additional thing that I would have liked to see here would be a more complete description of the machine and version of .NET and IronPython that you were running against.   Hi Jim,   This is how I run this script: IronPython 1.0.60712 (Beta) on .NET 2.0.50727.42 (this is Beta 9) I

[IronPython] IronPython 1.0 RC1 is Released

2006-07-26 Thread Dino Viehland
Hello IronPython Community, We have just released IronPython 1.0 RC1. We're anticipating that this build will be the same as 1.0 final unless we hear otherwise. We're looking for any feedback, but in particular we'd like to know of any blocking issues discovered against this build or fundamen

Re: [IronPython] IronPython and Swig

2006-07-26 Thread Dino Viehland
You'll need to tell us about the DLL first: import clr clr.AddReference('_myDll') import someNamespaceOrTypeFrom_myDll then we'll be able to load types & namespaces from it. From: [EMAIL PROTECTED] On Behalf Of Lyle Thompson Sent: Tuesday, July 25, 2006 5

[IronPython] IronPython and Swig

2006-07-26 Thread Lyle Thompson
Hi All, I have a C++ DLL that I wrapped with Swig. Inside the python wrapper it imports the DLL, i.e. "import _myDll". In IronPython, I get the error: ImportError: No Module named _myDll. I have made sure that the directory with my DLL is in both my PATH and PYTHONPATH. Does IronPython not

Re: [IronPython] IronPython (PythonCodePovider) for ASP.NET?

2006-07-26 Thread Mark Rees
On 7/26/06, Mark Rees <[EMAIL PROTECTED]> wrote: > It does give you access to "true" ASP.NET page generation, needs some > docs and a lillte more work. Opps, a small typo, I meant: It does not give you access to "true" ASP.NET page generation, Sorry if the typo got people excited. :-) Mark ___

Re: [IronPython] IronPython (PythonCodePovider) for ASP.NET?

2006-07-26 Thread Mark Rees
Dino wrote: The main concern is that we are shoe-horning a dynmamic language into a static world and that's not really the right thing to do. With enough effort we might be able to pull it off, but there might be a better way to go which enables ASP.NET w/o the feeling of it not being Python. T

[IronPython] profiling ipy apps

2006-07-26 Thread Arman Bostani
Hello all, Is there a recommended process for profiling ipy applications? Understandably, the cpython profile module doesn't work (no sys.setprofile). Also, CLR Profiler isn't geared towards performance analysis. So, do I need to somehow run my ipy applications under VS 2005 Team Suite? Tha

Re: [IronPython] speed

2006-07-26 Thread Jim Hugunin
You're correct that most of our work in getting to IronPython 1.0 has been focused on completeness and correctness rather than performance. IronPython 1.0 is roughly as fast as IronPython 0.1 was - which is reasonably fast (see more at the end of this message). As anyone who's built a large syst

Re: [IronPython] IronPython & Windows Forms VII, Dock & Anchor

2006-07-26 Thread Dino Viehland
Thanks for pointing that out - I've updated it (removed the part #s, added the description names and all 7 articles). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Tuesday, July 25, 2006 3:17 PM To: users@lists.ironpython.com Subject

Re: [IronPython] IronPython & Windows Forms VII, Dock & Anchor

2006-07-26 Thread Michael Foord
Dino Viehland wrote: > I've added this to the list of articles at > http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython&title=More%20Information > (the other 4 were already up there). That's great, thanks. I'm getting quite a few hits from those links, so it looks like the subject is