Changes between Initial Version and Version 1 of Ticket #28414, comment 98


Ignore:
Timestamp:
09/24/19 11:43:14 (23 months ago)
Author:
SimonKing
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28414, comment 98

    initial v1  
    2222}}}
    2323Aha! For some silly reason, we have `str == unicode`!!
     24
     25EDIT: The above was printed like this:
     26{{{
     27#!python
     28        if (2, 8) > sys.version_info and isinstance(root, unicode):
     29            print("Critical bug in python.")
     30            print("kwds.get('root', COHO.workspace) is %r"%type(kwds.get('root', COHO.workspace)))
     31            print("COHO.workspace is %r"%type(COHO.workspace))
     32            print("str=%r, unicode=%r"%(str,unicode))
     33            raise RuntimeError("An explicit cast to <str> resulted in a unicode object")
     34}}}