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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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
[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

Reply via email to