2008/5/15 Ben Aurel <[EMAIL PROTECTED]>:
> 2. I've read about, that it is possible to compile Python Code to msil with
> IronPython. Unfortunately I'm not yet at the point where this run on my
> machine (macosx). So I do have to ask you: Is such a dll/exe the same as I
> would compile it from c#? D
Note while this is the current behavior we actually want to introduce a
breaking change in 2.0 that alters this. What we really want to do is not
expose all protected members but instead only expose protected members after
you've subclassed the type. So Derived().WeakName = 'abc' would still f
Michael Foord wrote:
Michael Foord wrote:
On May 12, 9:17 am, Jimmy Schementi <[EMAIL PROTECTED]>
wrote:
The actual type returned by HttpWebRequest.Create() is a
BrowserHttpWebRequest, but it's internal (not sure why). Anyway, it
has a ProgressFailed event you can hook.
Hello Jimmy,
Michael Foord wrote:
On May 12, 9:17 am, Jimmy Schementi <[EMAIL PROTECTED]>
wrote:
The actual type returned by HttpWebRequest.Create() is a BrowserHttpWebRequest,
but it's internal (not sure why). Anyway, it has a ProgressFailed event you can
hook.
Hello Jimmy,
As far as I can tell
Matthew Barnard wrote:
public abstract class Object
{
protected string weakName = string.Empty;
public string WeakName
{
get { return this.weakName; }
protected set { this.weakName = value; }
}
}
public class Derived
{
public Derived()
{
this.Weak
public abstract class Object
{
protected string weakName = string.Empty;
public string WeakName
{
get { return this.weakName; }
protected set { this.weakName = value; }
}
}
public class Derived
{
public Derived()
{
this.WeakName = "Hello";
}
}
On May 12, 9:17 am, Jimmy Schementi <[EMAIL PROTECTED]>
wrote:
> The actual type returned by HttpWebRequest.Create() is a
> BrowserHttpWebRequest, but it's internal (not sure why). Anyway, it has a
> ProgressFailed event you can hook.
Hello Jimmy,
As far as I can tell it *doesn't* have the 'P
I think the reason for the size increase (like Dino mentioned) is to handle
the dynamicity of the language.
"for i in lst" is not exactly foreach( int i in lst )
The equivelent code is something more along the lines of:
iterator = lst.__iter__()
while (i = iterator.next()) doesn't raise exceptio
Yep, the additional code is all there to deal with the dynamic typing. There's
another significant difference though and that's when you declare classes. C#
will generate a class exactly like how you specifiy it but IronPython will
generate a subclass of whatever your base type is, it will ove
Good question - this seems to be a reasonable work around, have a C# class like:
using System;
using System.Windows.Forms;
public class DelegateTest {
public static MethodInvoker MakeDelegate(Delegate dlg) {
return new MethodInvoker(((MethodInvoker)dlg).Invoke);
}
}
And then you
Great, thanks Dino!
Very glad to see that I was having a legitimate problem, and not just doing
something stupid.
So I take from your reproduction that this is an issue of ALL asynchronous
delegate invocation;
is there a method to do this without manually writing my own threaded
invoker?
On Wed,
First, I would like to ask anyone with more experience than myself (which is
not much) to comment on the validity of this test.
I'm sure there are multitudes of differences I am not aware of that would
make these results misleading.
2) IronPython Studio does indeed compile ipy code to MSIL, though
VBx was an implementation of Visual Basic on the DLR. It was first meant to be
in Silverlight, but the VB team decided they'd rather put VB.NET in Silverlight
rather than build a new implementation up from scratch. So, VBx is on hold.
~js
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Beh
Can you give us more info about what version and where you're running? This
works for me on both 1.1.1 and 2.0B2:
IronPython 1.1.1 (1.1.1) on .NET 2.0.50727.1434
Copyright (c) Microsoft Corporation. All rights reserved.
>>> raw_input("Foo: ")
Foo: abc
'abc'
>>>
>>> ^Z
9:17:50.94
C:\Product\4\M
Ok I took a look at this and I believe this is a CLR bug - windbg was really
just useful for showing the exception which VS wasn't doing for me. I've
included the simple repro below which doesn't require IronPython. The issue is
that when we have a dynamic method closed over the 1st parameter
I'll try to do my best to answer this.
1) Because a large is dynamically typed, doesn't mean you can't do any
verification on the code. Michael Foord told me about PyFlakes
(http://divmod.org/projects/pyflakes) and PyLint
(http://pypi.python.org/pypi/pylint) which can do static analysis on
the cod
hi
I have two questions on two different subject but anyhow connected. Also
I have to admit that I could probably find the answers myself. But I'm
quite new to all that things and I have a lot to catch up to...
If I understand correctly the are 2 main advantages when it comes to
dynamic langu
Hi List,
Sorry if this is OT slightly but Jim showing off a VBX console (CLR VB I
guess) in a screen cast got me interested.
Is there a public release of this or is it coming soon?
Thanks,
Davy
--
Davy Mitchell
Blog - http://www.latedecember.co.uk/sites/personal/davy/
Twitter - http://twitter
hi
Using the following statement in CPython:
fname = raw_input('Enter filename: ')
I can see what I'm typing.
>>> Enter filename: MyTextFi...
This is not the case with the same code on IronPython. It doesn't show
me my input while typing.
Thanks
Ben
Hi,
os is within the Python Standard Libraries, as such you will need to
install Python 2.5 and add the path to your sys.path variable. You
can download python from
http://www.python.org/download/releases/2.5.2/
I mentioned this at the end of my blog post last night
http://blog.benhall.me.uk/200
We're not distributing the standard Python library with IronPython right
now, so to load os.py, you'd need a copy from the standard distribution or
download Seo's IronPython Community Edition from
http://fepy.sourceforge.net/.
"nt" is a different matter because it's built into the IronPython.dll,
hi
I've a simple script that involves the creation of a file. The script
doesn't run because it can't import the 'os' module. It's the same
message when I try to import it at the interactive shell:
---
IronPython 1.1.1 (1.1.1) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All right
I spent a good amount of time prodding like an awkward schoolboy at the
framework with windbg.
Everything is fine from the point of the BeginInvoke thread is created to
the point where the function is being looked up.
The framework spends a good deal of time rooting around in a MethodTable and
look
23 matches
Mail list logo