C:\>python
ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class C(object):
... def foo(self):
... print self
...
>>> inst = C()
>>> inst.foo()
<__main__.C object at 0x00944FF0>
>>> C.foo(inst)
<__main__.C object at 0x00944FF0>
>>>
/Simon
Btw, why do you need both a static and a non-static method with the same name?
On 5/8/06, Jonathan Jacobs <[EMAIL PROTECTED]> wrote:
J. Merrill wrote:
> In C# you could use Vector3.Unproject but that might not work in IP. Have you tried it?
I guess I neglected to mention the part where I explained what I was doing. :)
Calling Vector3.Unproject (in an attempt to call the static method) results in
a "None" return value, while the first parameter is modified, essentially
behaving like the instance method version rather than the static method
version. Either IP thinks this is something like obj.method(objInstance,
*args) or it will only try and match the static signature later, which it
never gets around to.
--
Jonathan
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
