I am trying to convert this feedparser.py (on github) to python3. I am having trouble understanding what this line is doing, right now it throws a syntax error:
[line 640] if tag.find(':') <> -1:
what operator is <>. Is there a Python3 equivalent?
It’s a synonym for the inequality operator,
!=, as seen in BASIC.By the way, the line you are asking about would be far more idiomatically written as: