[Ironpython-users] type for unicode and str

Daniel Fernandez fernandez_dan2 at hotmail.com
Wed Feb 1 05:54:32 CET 2012

Hi All, I was just playing with unicode strings and I notice a difference with CPython and IronPython. On CPython 2.7.2 I get the following >>> type(u"A")
<type 'unicode'>
>>> type("A")
<type 'str'> On Ironpython the latest 2.7.2 Alpha 1 I get the following >>> type(u"A")
<type 'str'>
>>> type("A")
<type 'str'>  I decided to crack open the source and see where this type function is defined. I followed to the builtin.cs with the PythonModule but I got kind lost there. If anyone can provide some helpful hints that would be great. Thanks Danny 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120131/0937d313/attachment.html>

More information about the Ironpython-users mailing list