Unfortunately we're still not accepting patches. It looks like this is just a
new CodePlex feature but there doesn't appear to be anyway to turn it off.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sylvain
Hellegouarch
Sent: Tuesday, June 19, 2007 12
If the exception was raised in Python then you should be able to do:
print event.Exception.Data['PythonExceptionInfo']
which will contain the Python exception object, not that I'm sure you can
format that one much better.
What you probably want to do is call
PythonEngine.FormatException(event.
ython
Subject: Re: [IronPython] .NET Exception to Python Exception conversion
Dino Viehland wrote:
>
> If the exception was raised in Python then you should be able to do:
>
> print event.Exception.Data['PythonExceptionInfo']
>
> which will contain the Python exception objec
You need to pass the -X:TabCompletion command-line option and it should work.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mike arty
Sent: Thursday, June 21, 2007 6:34 AM
To: users@lists.ironpython.com
Subject: [IronPython] tab-complete?
Yet another IronPython newbie question- I
Is there only one implicit conversion? If so I think you should be able to
call the op_Implicit method directly on XDate, e.g: XDate.op_Implicit(d).
If there's more than one I'm not sure how you'd select the one you want to call
off the top of my head.
-Original Message-
From: [EMAIL P
Do you want to call the Python code from Excel or manipulate Excel from Python?
It sounds like the former but if you want to do the former it'd look like
(this is pieced together from some internal automation we have):
import clr
clr.AddReferenceByName('Microsoft.Office.Interop.Excel, Version=1
x.com/IronPython/WorkItem/View.aspx?WorkItemId=11278) to
track that we need to do a better job here, maybe we could leverage coerce.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord
Sent: Friday, June 22, 2007 7:52 AM
To: Discussion of IronPython
How exactly are you passing this? I assume the quotes aren't being included?
The 1st form below prompts me and the 2nd form doesn't prompt (ignoring the UAC
prompt on Vista of course which is a whole other ball of wax), are you doing
something different?
>>> import System
>>> System.Diagnosti
but
that still does not work.
I've read on Google about a lot of people having this similar problem
but people seem to give up before posting a solution. Any other ideas?
On Jun 22, 10:32 am, Dino Viehland <[EMAIL PROTECTED]>
wrote:
> How exactly are you passing this? I assume the q
Thanks Michael, I've opened bug #11283 and assigned it to the v1.1.1 release.
If you could take the time to vote on this bug that'd be great.
If there are other bugs that you, or anyone else, would like to see in v1.1.1
release please let us know. I'll start tagging those appropriately and thi
Alpha 2's coming sometime soon.
1.1.1's just so we can start assigning bugs against that release and have a
good way to track the important issues there.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord
Sent: Tuesday, June 26, 2007 3:48 PM
T
Hello IronPython Community,
We have just released IronPython 2.0 Alpha 2. This release is a snapshot of the
on-going progress with IronPython 2.0 and the DLR.
One of the most significant changes in this release is the removal of
Microsoft.Scripting.Vestigial. Previously this DLL was a combinatio
w release!
Can you give us an update on the status of the multiple engine debate
and does this release change anything on that front?
When Alpha 1 was released, we discussed swappable SystemStates as an
alternative to multiple engine instances. Does this release include
this functionality?
Tha
IronPython
Subject: Re: [IronPython] IronPython v2.0 Alpha 2 Released!
Hi Dino,
Congrats on the new release!
Can you give us an update on the status of the multiple engine debate and
does this release change anything on that front?
When Alpha 1 was released, we discussed swappable SystemS
This is a bug. Unfortunately it looks like one of the version numbers didn't
get updated. In Src\Microsoft.Scripting\Hosting\PlatformAdapationLayer.cs
there are currently some version numbers hard-coded until we get a better
configuration story:
PlatformAdaptationLayer.cs:
_assemb
I believe we're going to get better at this in the future. For starters there
are currently some code paths which are missing the checks for the implicit
conversions - for example if you define an implicit conversion to string we
won't respect it all (in either v1.x or v2.x right now). This is
I haven't heard of this one before... Are you calling clr.AddReference or one
of the other clr.AddReference* methods? There's some clr methods which
correspond to CLR methods which won't load partial assembly names.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] O
That’s our goal but unfortunately there isn’t really much new in there yet
(from 1.1 w/ -X:Python25). We have changed the default to having the v2.5
features enabled now and no longer have a mode which runs as 2.4.
Major things we know we still have to do include yield expressions (sorry,
ther
Does Kamaelia use the new syntax as supported via PEP-342
(http://www.python.org/dev/peps/pep-0342/). That’s the particular piece that
we don’t support and is new to 2.5 – we do support generators when you use
yield as a statement instead of as an expression (in other words, we don’t
support t
Very cool! And I guess this means we have a bug relating to not that we need
to figure out in v2.0 ☺.
From: M. David Peterson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 10, 2007 3:55 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; Dino Viehland; Discussion of IronPython
Subject: Re
I could be asking the obvious but do square brackets work for you?
I would expect:
result=win32com.client.Dispatch("COMClass")["ItemName"]
result=win32com.client.Dispatch("COMClass")[0]
to work or possibly:
result=win32com.client.Dispatch("COMClass").Item[0]
Another possibility is selecting th
You can call ClrModule.GetInstance().AddReference(). The tentative thought is
that we'll share this between languages so that you only need to do it once and
all languages pick it up.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luis Capra
Sent: Wednesday, July 11, 2007 11:32
Super works w/ new-style classes so if you change it to:
class A(object):
def Foo(self):
pass
class B(A):
def Foo(self):
super(B, self).Foo()
B().Foo()
It'll work. CPython behaves the same way:
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
If anyone is curious why I responded after this was already answered - we were
having some network problems. Please ignore :).
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland
Sent: Friday, July 13, 2007 12:22 PM
To: Discussion of IronPython
Subject: Re: [IronPython
Thanks for the report Seo. I've filed bug #11759
(http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=11759).
Could you vote on this? Given that there's no real work around I'd like to
make sure this one stays on our radar. Thanks!
-Original Message-
From: [EMAIL PROTEC
Thanks for the report Seo. I've opened bug #11760
(http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=11760).
Strangely in v2.0 on Windows this works for me but I think it's because you
choose __str__ and we end up finding it in Method instead of hitting the class.
This one is
It's a great time to bring this up because I'm currently investigating various
start-up time issues and trying to improve our startup time. I'll give you a
breakdown of what I've discovered so far:
Various reflection that we do over types:
This in
I know both Martin and I have wanted to fix this bug in the past and just
haven’t gotten the time to do it yet and haven’t seen anyone w/ a pressing need
for it.
The bug for this (3410,
http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=3410)
currently only has 1 vote so if we ge
Performance is a rather interesting area in IronPython currently. We are
effectively changing the way we dispatch to methods internally from the old
method (which was largely based around using interfaces for calling methods.
Our built-in functions would be 1st class objects which were ICallab
Awesome, this will have to be fixed soon. I don’t know that any of our PMs are
tracking the list, it’s more like “time to fix bugs, let’s look at the list!” ☺.
To make this even better we’ve been running into some of our own issues w/ this
which provide us w/ additional motivation to fix this.
Of M. David Peterson
Sent: Wednesday, July 18, 2007 8:23 PM
To: Discussion of IronPython
Cc: [EMAIL PROTECTED]; Peter Fisk; [EMAIL PROTECTED]
Subject: Re: [IronPython] [Kamaelia-list] Kamaelia and IronPython (was: Hosting
IronPython 2.X in .NET app)
On 7/18/07, Dino Viehland <[EMAIL PROTEC
2.0 Alpha 3 Released!
Is this DLR compatible with IronRuby's?
Also, below you mention different paths for code execution. Does the DLR
analyze the code to make that determination, or is there a way we can hint the
runtime to say "This code block can be interpreted."?
_
Hello IronPython Community,
We have just released IronPython 2.0 Alpha 3. This release is a snapshot of the
on-going progress with IronPython 2.0 and the DLR. The most significant changes
in this release include more work to use dynamic sites from IronPython and
improved evaluation mode support
I think this one is by design. The idea is if you import any .NET namespace
you're interested in the .NET world and so .NET methods are enabled.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord
Sent: Saturday, July 28, 2007 6:06 AM
To: Discu
This one is definite a bug - all the methods on array should always be visible.
I've created work item 11971 for the issue
(http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=11971). I've
tentatively lumped it in 1.1.1 but having not looked at the issue I don't know
how invasive
You have two options: You can catch a Python exception or a .NET exception, and
you'll get either the Python exception object or the .NET exception object. To
catch a .NET exception as a Python exception you need to catch the closest base
exception which might be Exception or SystemError (if yo
#1) After creating a module you should be able to publish the object directly
into the module's scope. The normal CreateModule APIs allow you to provide a
dictionary which could already contain this object. Unfortunately all the
objects members won't be magically available, you'll need to acces
RemoteCertificateValidationCallback ( self.ValidateServerCertificate),
None)
--
def ValidateServerCertificate( sender, certificate, chain, sslPolicyErrors):
return True
regards,
gara
On 8/1/07, Dino Viehland <[EMAIL PROTECTED]> wrote:
> You have two options: You can catch a Python exce
This works for me:
>>> import System
>>> import clr
>>> clr.AddReference('System.Windows.Forms')
>>> from System.Windows.Forms import Application
>>> dir(Application)
['AddMessageFilter', 'AllowQuit', 'ApplicationExit', 'CommonAppDataPath',
'CommonAppDataRegistry', 'CompanyName', 'CurrentCulture'
int to the
PythonConsoleHost folder name and version so are not much use.
The version and app name seem to be set in AssemblyInfo file in a VS
project. Is this achievable with IronPython?
Thanks,
Davy
On 8/2/07, Dino Viehland <[EMAIL PROTECTED]> wrote:
> This works for me:
>
> >>&
I don't think this is the right mailing list to contact for that. I'm not sure
who lynanda.com is, what their IDE is, or if they're accepting contributions.
Unless someone else on the list knows about this you might want to contact them
directly.
-Original Message-
From: [EMAIL PROTEC
This is a bug - I've got a fix for it so it'll be in the next release.
If you want to know the details: the reason why it only affects user objects is
that normal objects and user objects actually go through two wildly different
code paths. The user types are all instances of IDynamicObject who
Because Python doesn't create normal .NET classes they basically have to be
created from Python code. You could hand a delegate (just a Python function
that matches the delegates # of arguments) off to the C# code and call that
from C# and get the result back.
-Original Message-
From:
You can use the Parser class directly for this (e.g. Parser.FromFile or
Parser.FromString). You just need to give it a CompilerContext which includes
a CompilerSink object. Your CompilerSink object will get called back w/ the
errors.
-Original Message-
From: [EMAIL PROTECTED] [mailto:
eturning
a delegate that execute the overriden method - but it is important to me
that the metod will be a part of a class because the code has calls to other
class properties and methods.
Dino Viehland wrote:
>
> Because Python doesn't create normal .NET classes they basically have
I'm using version 1.1.
Should I upgrade?
Dino Viehland wrote:
>
> You can use the Parser class directly for this (e.g. Parser.FromFile or
> Parser.FromString). You just need to give it a CompilerContext which
> includes a CompilerSink object. Your CompilerSink object will get
: [IronPython] Find the compile erros
I still can't find how can I create a Parser, and I don't see the fuctions
you mentioned: FromFile and FromString.
Dino Viehland wrote:
>
> Sorry, these are a little scattered around the code base and (mostly) live
> outside the Hosting namesp
Yes, as long as the class is also public. You just need to start ipy.exe in
the directory where your exe's at and then do:
import clr
clr.AddReference('MyApplication')
from MyApplicationsNamespace import MyApplicationsClass # if it's in a
particular namespace
or
import MyApplic
of these two (using CodeDom OR using IronPython) is the better
approach if the requirement is to
1. Use loops like for, while etc -i,e call methods in a loop in the script
2. use script occasionally, that means scripting is not the feature that
is used regularly by the user of the applicat
Do you know what type of object is being indexed and what the index type is
(what's happening on line 89 in tag.py)? You could also run with the
-X:ExceptionDetail command line option and then we'd know where on the .NET
side of things this exception is coming from.
Although I doubt this will
We have a feature in v1.x which is almost exactly what you want called
CreateLambda / CreateMethod. This allows you to give the body of a function
which takes parameters and it gives you a strongly typed delegate back.
Unfortunately we removed it from v2.0 because it was getting in the way of
This is the extend part of embrace and extend everyone's expecting? :) I
wouldn't be hold my breath waiting for this feature.
(BTW, I use Shift-Tab/Tab to dedent/indent in VS).
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Clinton
Sent: Monday, A
Yes, I've just been slacking on porting it forward. Sorry about that.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thane Plummer
Sent: Saturday, August 11, 2007 3:04 PM
To: 'Discussion of IronPython'
Subject: [IronPython] array missing in IPY 2.0A3
Any plans on re-implementing
Thanks for the report Miguel, we'll get InitializeBuiltins fixed for the next
release.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miguel de Icaza
Sent: Friday, August 10, 2007 3:56 PM
To: Discussion of IronPython
Subject: [IronPython] IronPython on U
I don't know if you figured this out yet but here goes...
Our Parser class is still public (I'm not sure if this will change or not) but
you can do (IronPython.Compiler.)Parser.CreateParser. That takes a
CompilerContext class which is going to point the parser at a SourceUnit that
we are curre
We actually have the right infrastructure in place to fix this fairly easily in
v2.0. In v1.x our old-style instances were rather strange in that they were
subclasses of our DynamicType class. Now they're (mostly - other than special
cases here and there) just plain old new-style classes in v2
a
subclass of this.
Can I use the expression object to inspect its nodes without creating a
walker?
Thanks for the help. :-)
Michael
Dino Viehland wrote:
> I don't know if you figured this out yet but here goes...
>
> Our Parser class is still public (I'm not sure if this
This is hanging due to the way avalon.py works. It's primarily intended for
working at the interactive console. When Avalon.py gets started it hijacks the
console execution so that all execution occurs on another thread. This other
thread is the primary thread for the app's window and its con
I believe what we should be doing is passing you a Reference object where T
in this case is bool. The Reference object has a Value property which you
can set and when you return the ref parameter should get updated.
Let me know if that doesn't work for you.
From: [EMAIL PROTECTED] [mailto:[EMA
You might try starting IronPython with -X:ExceptionDetail to get the full stack
trace and the CLR exception info. That's likely to be more useful in this case
than the python exception display you're seeing here. Once you've got the
right exception name a search on the web might tell you what
I think you should be able to just pass a function object to PythonRegister and
it should be converted into a delegate. For example:
import clr
clr.AddReference('PyAcadDotNet')
from PyAcadDotNet import PyAcadCmd
def foo():
print 'hello world'
PyAcadCmd.PythonRegister('some command', fo
();
while (count > 0)
{
char ch = (char)buffer[offset];
if (ch == '\n')
{
ed.WriteMessage(sb.ToString() + "\n");
sb.Length = 0; // reset.
}
else if (ch != '\r')
{
sb
r(PyAcadCmd.CmdDelegate dlg)
{
cmdDelegate = dlg;
}
public void Invoke()
{
cmdDelegate();
}
}
}
code**
On 8/30/07, Dino Viehland <[EMAIL PROTECTED]> wrote:
> Well at this point we've successfully c
sed the code to what you suggested and still no luck.
Is there any way I can set the environment variable other than via the
command prompt? My application is hosted inside another application
and I can't set the variable from there.
Tim
On 8/30/07, Dino Viehland <[EMAIL PROTECTED]>
I don't believe we are aware of these issues - there are a couple of bugs open
against pickling but they seem to be around types we apparently don't support
(xrange, re) and features we don't support in cPickle (persistent load support)
and .NET interop (System.DateTime).
Is there anything othe
Hello IronPython Community,
We have just released IronPython 2.0 Alpha 4. This release is essentially
another snapshot of the ongoing work with respect to IronPython 2.0 and the
Dynamic Language Runtime. The most significant changes in this release include:
* Completion of the -X:I
close()
log.close()
IronPython:
import pickle
log = open("log_ipy.pkl", "wb")
pList = sys.stdin.read()
log.write(pList)
myList = pickle.loads(pList)
log.write("\n\n")
for item in myList:
log.write(str(item) + "\n")
pResList = pickle.dumps(myList, 1)
log.w
Me too ☺
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of M. David Peterson
Sent: Sunday, September 09, 2007 12:31 PM
To: Martin Maly
Cc: [EMAIL PROTECTED]; Discussion of IronPython
Subject: Re: [IronPython] [Kamaelia-list] Status of Nested Yield Support?
On 9/9/07, Martin Maly <[EM
Is line 28:
HighlightingManager.Manager.AddSyntaxModeFileProvider(FileSyntaxModeProvider(sys.path[0]));
?
Can you provide the text of the exception (even better w/ the
-X:ExceptionDetail command line option) ?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED
It definitely looks like a bug - maybe related to the fact that these are
interface methods & properties. Could I get you to do one more thing and
re-run w/ -X:ExceptionDetail and -X:ShowClrExceptions?
I've opened a bug
(http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=12708) t
ling to do that.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland
Sent: Tuesday, September 11, 2007 9:03 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Ironpython 2 Alpha 4
It definitely looks like a bug - maybe related to the fact that these
Ahh, so the fix for this particular issue if you want to patch your own copy of
IronPython. In Microsoft.Scripting.Actions.SetMemberBinderHelper there's a
method called MakePropertyRule. There's lines that look like:
if (setter != null) {
if (IsStaticProperty(info,
I talked to one of the VS SDK guys and they haven't tested / used this scenario
so it's likely you'll run into some issues with it. What does work is
consuming a user control that's been written in C# but unfortunately not in
IronPython.
If you're feeling adventurous you could try creating a f
What are you trying to debug in particular? Is it a file of Python code or
code you enter at the console?
Code in a file is generally debuggable (presumably by all debuggers) where code
entered at the console, via eval or exec, is not debuggable - by any debugger.
The reason for this is that
We'll fix this for the next release (I'm looking at it right now! :) ). I
still see argv existing in SystemState but I think the actual problem is
somewhere in the command line parser for ipyw.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JoeSox
Sent
This is because Builtin.compile is setting the SourceCodeKind to
SourceCodeKind.SingleStatement and we don't turn on printExpressions for
SingleStatements.
In IronPython.Compiler.Parser there is a method ParseSingleStatement. You just
need to change the last parameter when newing up the Python
Unfortunately there's no good way to do this. We have logic in PythonEngine to
filter stack frames but it's only exposed for doing this on exceptions, not on
arbitrary stack traces. And unfortunately v2.0 is in about the same shape -
all of its support revolves around exceptions too and it's f
the IronPython console. :)
Thanks,
-Lee
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland
Sent: Thursday, September 20, 2007 9:01 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Accessing call stack
Unfortunately there's no good way to do this. We hav
Strangely it doesn't seem to be in the documentation for compile() either :(
Do you know what this option does by any chance :) ?
I've opened bug #12908
(http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=12908) so we
at least have it tracked...
-Original Message-
From: [
ECTED] On Behalf Of Michael Foord
Sent: Friday, September 21, 2007 1:23 PM
To: Discussion of IronPython
Subject: Re: [IronPython] [python] Re: Missing Compiler Flag
Dino Viehland wrote:
> Strangely it doesn't seem to be in the documentation for compile() either :(
>
> Do you know what
>
> source = 'def x():\nprint x'
> print _compile(source, 'test', 'single')
> None
>
> Without the flag set returns a code object.
>
> There is similar code in the DLRConsole but it uses
> "Microsoft.Scripting.SourceCodeUnit"
Unfortunately we don't have any great sources of documentation. The way you do
any dynamic invocation is usually through a DynamicSite - which is the fastest
way to do it. There's also another way you could do this which is via
ScriptEngine.CallObject - which is the simplest way to do it. Ult
Unfortunately there isn't a great way to do this. If
EngineModule.GetGlobalScope were public you could create your own EM that's
bound to locals (Or if engine.GetModuleScope were public).
That would let you use CreateLambdaUnscoped. It returns a
ModuleBinder and the ModuleBinder returns the d
Ruby hash and Python dictionary should interop just fine because Ruby's hash
will be an IDictionary and Python's dictionary will also be an IDictionary.
Therefore we'll be able to recognize the interface methods and dispatch to them
appropriately. We don't currently support extension methods o
We'll see if we can get implicit typing in there from section B ;)
But seriously, from section B, we are likely to support the extension methods.
In fact we support a form of extension methods today which is how all the
Python methods show up on the .NET types today. And we support it in anoth
een Martin since
shortly after I was hired. I'm just 2 floors below y'all, and you never call,
you never write...
From: [EMAIL PROTECTED] on behalf of Dino Viehland
Sent: Fri 9/28/2007 4:39 PM
To: Discussion of IronPython
Subject: Re: [IronPython] [py
We haven't extended Pickle to support arbitrary (presumably serializable) .NET
objects. For that you'll need to use normal .NET serialization (if the object
is serializable) or serialize this manually.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vizcayno
Tamparantan
Sent: Su
This enables using new support for COM objects that uses COM's IDispatch
interface instead of trying to get a TypeInfo for the object and use that to
invoke it. With it enabled we'll first check for IDispatch then to see if we
can get the TypeInfo, w/o it we'll check for the TypeInfo (via
IPro
Re: [IronPython] -X:PreferComDispatch
Interesting. Which of the two is "better"? Is there a performance tradeoff
turning it on or off with COM objects which do or do not implement IDispatch?
Thanks,
-Lee
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Beh
Is there a pattern to it? For example is it people likely to be using Outlook
who's mails aren't getting wrapped? :) (It tells me it's going to wrap at 76
columns when I send the mail to the internet but my own mails don't appear to
wrap like that when I get them back).
-Original Message-
Ahh, stack overflow is fun... The special value of maxint actually means that
we stop enforcing recursion altogether.
Why did we pick that default? It's a combination of performance and our
general thinking of stack overflow. We typically think of SO as programmer
error and therefore choose
g now.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland
Sent: Friday, September 21, 2007 4:20 PM
To: Discussion of IronPython
Subject: Re: [IronPython] [python] Re: Missing Compiler Flag
Awesome, thanks for tracking this down. I'll proba
: Re: [IronPython] [python] Re: Default recursion limit
Dino Viehland wrote:
> Ahh, stack overflow is fun... The special value of maxint actually means
> that we stop enforcing recursion altogether.
>
> Why did we pick that default? It's a combination of performance and
It looks like csc doesn't require out params to be assigned if they're value
types:
class foo {
public struct baz {
}
public object []bar(object[]args, out baz x) {
return args;
}
}
But it properly enforces it if it's an int, a DateTime, or a decimal. I'll let
them kno
Of course :)
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Sanghyeon Seo [EMAIL
PROTECTED]
Sent: Thursday, October 04, 2007 6:16 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Compilation error
2007/10/5, Dino Viehland <[EM
ubject: Re: [IronPython] Compilation error
2007/10/5, Dino Viehland <[EMAIL PROTECTED]>:
> It looks like csc doesn't require out params to be assigned if they're value
> types:
I searched Mono bugzilla, and found that apparently this was mcs behaviour too.
Bug 311892 - mcs i
Well, just to be pedantic, in CPython you get:
>>> import clr
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named clr
>>> from System.Threading import ApartmentState,Thread, ThreadStart
Traceback (most recent call last):
File "", line 1, in
ImportError: No mod
See http://channel9.msdn.com/wiki/default.aspx/IronPython.ValueTypes for an
explanation of why you can't update value types.
You might be able to call archiveData.set_OpenMode(1) after creating it though.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ronny Stiftel
Sent: Thursday
+1 on the MC++, this seems like an ideal use of it.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher
Sent: Friday, October 12, 2007 11:38 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Announcement: Project to get some CPython C
extensions running under I
Are you looking for samples in v1.0 or v2.0? The code you quoted below is some
version of v2.0 (we're still working on the final tweaks to what will become
the new, final, hosting model).
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua J. Pearce
Sent: Tuesday, October 16,
1 - 100 of 2031 matches
Mail list logo