[IronPython] SymbolTable.Empty

Dino Viehland dinov at exchange.microsoft.com
Fri Dec 1 22:23:38 CET 2006


Thanks for reporting this.  I'm not too concerned about someone doing this on SymbolTable, but for reflected types in general I think it makes sense that we should transform null into a string.  I've opened CodePlex bug #6141 (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=6141).

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Friday, December 01, 2006 3:10 AM
To: Discussion of IronPython
Subject: [IronPython] SymbolTable.Empty

Warning: obscure.

from IronPython.Runtime import SymbolTable
print str(SymbolTable.Empty)

str() should not return any non-strings. Actually, IronPython seems to
enforce this for user types, just like CPython. But it doesn't enforce
this for reflected types, where .NET ToString() can return null.

--
Seo Sanghyeon
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list