Daniel wrote:
> Thx on the IRONPYTHONPATH hint.
> 
> Regarding what blows up:
> 
> copy'n'paste Lib folder from cPython 2.7.1 into /Debug/.., followed by  "bdc"
> ========================================================
> 
>     6 Warning(s)
>     0 Error(s)
> 
> Time Elapsed 00:00:37.34
> 
> C:\work>ipy
> IronPython 2.7 Beta 1 DEBUG (2.7.0.10) on .NET 4.0.30319.1 Type "help",
> "copyright", "credits" or "license" for more information.
> >>> import os
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "C:\work\ironlang\Bin\Debug\Lib\os.py", line 398, in <module>
>   File "C:\work\ironlang\Bin\Debug\Lib\UserDict.py", line 84, in <module>
>   File "C:\work\ironlang\Bin\Debug\Lib\abc.py", line 109, in register
>   File "C:\work\ironlang\Bin\Debug\Lib\abc.py", line 151, in __subclasscheck__
>   File "C:\work\ironlang\Bin\Debug\Lib\_weakrefset.py", line 69, in
> __contains__
> 
> TypeError: cannot create weak reference to 'classobj' object
> 

This is a bug in IronPython, here's the simple repro:

class C: pass

import weakref
weakref.ref(C)

OldClass just needs to have an IWeakReferencable implementation added to it.

Looks like this is new in 2.7.0 and I'm guessing something in 2.7.1 now depends 
upon it. 

Maybe there just wasn't a test case for it or we have it disabled in the 
IronPython
dir.
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to