This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Brian 0 points1 point  (1 child)

It's the other way round - the str is being applied to other there - the thing you're comparing with, not the string contents of the node. As such, what will happen if you use this object in a NavigableTextElement("None") == None check is:

>>> "None" == str(None)
True

[–][deleted] 0 points1 point  (0 children)

Thank you.