Re: [IronPython] Regression with Beta9?

2006-07-13 Thread Martin Maly
Yep, we have entered the ToString issue, but your operator issue is a new one. I’ve filed it in CodePlex as work item 939   Martin   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Culver Sent: Thursday, July 13, 2006 8:35 PM To: Discussion of IronPython Sub

Re: [IronPython] Bug in beta9?

2006-07-13 Thread Martin Maly
Dino is absolutely right. In our new conversion rules, there is no implicit conversion between integer types (both standard Python types - int and bigint, and CLR integer types - byte, sbyte, short, ushort, long, ulong, uint, decimal) and char. Char is in Python pretty much interchangeable with

[IronPython] Away from network

2006-07-13 Thread Sanghyeon Seo
I will have no network access from July 20 to August 17. So don't be curious if I am quiet. Pity, I think I will miss the 1.0 release. Be well, Seo Sanghyeon ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users

Re: [IronPython] Regression with Beta9?

2006-07-13 Thread Lee Culver
And another one…   IronPython 1.0.60712 (Beta) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> import clr >>>  >>> clr.AddReferenceByPartialName("Microsoft.DirectX") >>> from Microsoft import DirectX >>> v = DirectX.Vector3(1, 2, 3) >>> v * 2 ...

[IronPython] Regression with Beta9?

2006-07-13 Thread Lee Culver
This seems to not work anymore:   >>> import clr >>> HasAttr Traceback (most recent call last):   File , line 0, in ##9 NameError: name 'HasAttr' not defined   Whereas under Beta8 it worked fine…  Is this intentional?  If so, this seems a bit weird that it’s still in __builtins__:

Re: [IronPython] Freshmeat

2006-07-13 Thread Sanghyeon Seo
I now added IronPython 1.0 Beta 9 release to the default branch on Freshmeat, and it is now visible on the Freshmeat front page. I plan to continue to update Freshmeat. Seo Sanghyeon 2006/6/18, Sanghyeon Seo <[EMAIL PROTECTED]>: > I updated Freshmeat entry for IronPython to point to CodePlex now.

Re: [IronPython] Bug in beta9?

2006-07-13 Thread Sanghyeon Seo
2006/7/14, Dino Viehland <[EMAIL PROTECTED]>: > As a work around you can do: > chr(ord(a.KeyChar)) Actually, you can simply, print a.KeyChar in Beta 9. Seo Sanghyeon ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.

Re: [IronPython] Bug in beta9?

2006-07-13 Thread Dino Viehland
I think this is probably due to some changes w/ method dispatch (we'll no longer convert from char to int?). I'll have to ask around to see if that's part of the design or not. As a work around you can do: chr(ord(a.KeyChar)) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[IronPython] Bug in beta9?

2006-07-13 Thread Jörgen Stenarson
Hi I have hit a change in the behaviour that results in an exception. Is this behaviour expected? My workaround for now is to change chr to str. /Jörgen file(tipy.py) used in test: import System readkey=System.Console.ReadKey print "Press a key" a=readkey(True) print chr(a.KeyChar) Test with

Re: [IronPython] Multidimensional array performance on IP Beta 9

2006-07-13 Thread Dino Viehland
Definitely not expected, I’ve opened CodePlex bug 930 to track it (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=930).  Thanks for reporting this.   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Milman, Seth Sent: Thursday, July 13, 200

[IronPython] Multidimensional array performance on IP Beta 9

2006-07-13 Thread Milman, Seth
I’ve noticed a rather large degradation in speed when accessing elements in multidimensional arrays in the new beta 9.  Is this performance expected?   I’ve pasted a script below that demonstrates the issue.   Beta 8 output from the script: 1 dimensional copy: 0.4303053 seconds 2 dime

Re: [IronPython] Getting a call stack from an exception?

2006-07-13 Thread Lee Culver
Ah yeah, my roommate asked me the same question.   There’s absolutely no reason that I shouldn’t be using the Python traceback library (and you should use it too).  I’m working on a tutorial for IronPython which I would like to run “out of the box” (that is, not have the end user install

Re: [IronPython] Getting a call stack from an exception?

2006-07-13 Thread J. Merrill
Could someone explain to this interested observer what is missing when the standard Python traceback functionality is used?  Writing IronPython-specific code that isn't specifically involved in interacting with .Net seems against the "you can run the same Python code anywhere" notion that I expec

Re: [IronPython] IronPython 1.0 Beta 9 on Mono

2006-07-13 Thread J. Merrill
FYI, some of us who are watching are ready to nominate you as an honorary member of that I IP T. Thanks for all you do on this! At 11:13 PM 7/12/2006, Sanghyeon Seo wrote (in part) >Again, many thanks to hard-working Mono team, in addition to >incredible IronPython team. > >Seo Sanghyeon J. Me

Re: [IronPython] Beta 9 __getitem__

2006-07-13 Thread Dino Viehland
I've opened CodePlex bug 922 for this one - this looks like it's related to some of the type changes or the method dispatch changes, but I'm not quite certain what broke it. From: [EMAIL PROTECTED] On Behalf Of Giles Thomas Sent: Thursday, July 13, 2006 3

Re: [IronPython] repr...huh?

2006-07-13 Thread Dino Viehland
Ahh, I bet your your ToString includes \r\n and we just split on \n (leaving the \r in there by it's self). I'll get this one fixed. From: [EMAIL PROTECTED] On Behalf Of Jonathan Jacobs Sent: Thursday, July 13, 2006 12:34 AM To: IronPython List Subject: [

Re: [IronPython] OsCon?

2006-07-13 Thread Brian Quinlan
Dino Viehland wrote: > Is anyone out there on the mailing list going to OsCon? Maybe we could > all meet up for lunch or dinner some day or night? I think that could be fun. Coordinating with everyone on a mailing list is going to hard though. So why don't you try to coordinate internally and

Re: [IronPython] Unable to cast object of type 'IronPython.Runtime.Types.OldClass' to type 'IronPython.Runtime.Types.DynamicType'

2006-07-13 Thread Martin Maly
However, that said, in Beta 9, the OldClass is no longer a DynamicType, which explains the exception itself. To find out what you need to change in your code is something that we’ll need more info for.   For example, the exception can come from anywhere in the Module body (during import,

Re: [IronPython] IronPython on Windows Mobile

2006-07-13 Thread Martin Maly
As of now, there are few features unavailable on Windows Mobile / .Net Compact Framework which prevent IronPython from running. Aside from Double.TryParse and similar cases, the most significant is absence of the Reflection.Emit, the mechanism IronPython uses for its code generation.   Ma

Re: [IronPython] Unable to cast object of type 'IronPython.Runtime.Types.OldClass' to type 'IronPython.Runtime.Types.DynamicType'

2006-07-13 Thread Martin Maly
To help you, we will need more information about your use of the Python Engine. The simple case of executing “from Module import Class” does work so we need to know more to find out what the problem may be.   Thanks Martin   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

[IronPython] Beta 9 __getitem__

2006-07-13 Thread Giles Thomas
Hi, We've found what looks like a difference between IronPython and CPython's parsing of argument lists for square brackets. This is a change from Beta 8, which behaved in the same way as CPython. CPython: Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type "he

[IronPython] Unable to cast object of type 'IronPython.Runtime.Types.OldClass' to type 'IronPython.Runtime.Types.DynamicType'

2006-07-13 Thread Mike Raath
HiHaving tried to switch over to beta 9, and changing my generic Evaluate references to EvaluateAs, I get a runtime error on an import statement which works under beta 8. The exception is as is detailed in the message above, and is from a statement like engine.Execute("from Module import Class);The

[IronPython] repr...huh?

2006-07-13 Thread Jonathan Jacobs
>>> v = Vector3(1, 2, 3) >>> v ...]>osoft.DirectX.Vector3 object at 0x002C [Z : 3 Huh? -- Jonathan ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com