Re: [IronPython] Static methods that look similar to instance methods?

2006-05-07 Thread J. Merrill
In C# you could use Vector3.Unprojectbut that might not work in IP. Have you tried it? At 11:58 AM 5/7/2006, Jonathan Jacobs wrote >Hi, > >I recently ran into a bit of a puzzling situation where I was getting None >instead of a Vector3, and I think that IronPython thinks it should calling

Re: [IronPython] Attempt to update field 'Z' on value type 'Vector3'; value type fields cannot be directly modified

2006-05-07 Thread Jonathan Jacobs
Sanghyeon Seo wrote: > Have you read this? > http://channel9.msdn.com/wiki/default.aspx/IronPython.ValueTypes As far as I understand the Vector3 type: it is a struct with public fields, are these subject to these quirks too? One wouldn't expect structs to need getters and setters that somewhat d

Re: [IronPython] Attempt to update field 'Z' on value type 'Vector3'; value type fields cannot be directly modified

2006-05-07 Thread Sanghyeon Seo
2006/5/8, Jonathan Jacobs <[EMAIL PROTECTED]>: > I realise the error seems logical enough, but it isn't right. The > documentation for Vector3 specifies that the fields X, Y and Z are all > read/write and indeed C# code has no boggle doing just that. > Vector3.GetType().IsValueType is true; I guess

[IronPython] Attempt to update field 'Z' on value type 'Vector3'; value type fields cannot be directly modified

2006-05-07 Thread Jonathan Jacobs
Hi, me again! I realise the error seems logical enough, but it isn't right. The documentation for Vector3 specifies that the fields X, Y and Z are all read/write and indeed C# code has no boggle doing just that. Vector3.GetType().IsValueType is true; I guess relying on IsValueType isn't enough

[IronPython] Static methods that look similar to instance methods?

2006-05-07 Thread Jonathan Jacobs
Hi, I recently ran into a bit of a puzzling situation where I was getting None instead of a Vector3, and I think that IronPython thinks it should calling the instance method. Here are the two function signatures: >>> print Vector3.Unproject.__doc__ Void Unproject(object viewport, Matrix projec

[IronPython] serialization

2006-05-07 Thread J. de Hooge
Hi all,   Upto beta 4, I’ve been using a home-patched version of Cpython 2.4 ‘s pickle.py to serialize objects. It stopped working for beta 5 (and using a patched version isn’t what I want in the end)   Can anyone tell me what’s currently the best option for pickling (or generally seri