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
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
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
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
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
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
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
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
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
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
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
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
Михаил Подгурский 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
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 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
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
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
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
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
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
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
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
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
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,
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):
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
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
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
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
>> 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
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
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
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
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
___
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
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
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
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
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
39 matches
Mail list logo