2021-06-29 | Paul Boddie | file changeset files shortlog | Renamed the string class to str, replacing the str function with the new_str function, this being invoked specially by the string instantiation function. As with the Unicode type renaming, a more general instantiation mechanism might permit the new_str function to be part of the functionality of the str or basestring classes. |
paul@279 | 1 | print 1 == 1 # True |
paul@279 | 2 | print 1 != 1 # False |
paul@279 | 3 | print 1 == "one" # False |
paul@279 | 4 | print 1 != "one" # True |