We have a .NET app that can be customized by IronPython (version 2.7.5)
Here is the script code:
stringToPlay = # get it from our .NET app interface toward python here. The method returns .NET string
Log.Write("isinstance(stringToPlay, unicode): ", str(isinstance(stringToPlay, unicode)))
Log.Write("isinstance(stringToPlay, str): ", str(isinstance(stringToPlay, str)))
Both log lines will return True ??
stringToPlay value is "Ћирилица" .
How is this possible when str and unicode should be two separate classes both inheriting from basestring?
Thank you
type(stringToPlay)
? your.NET string
isSystem.String
? – Matthias Burger Sep 6 '16 at 9:56