Is there a Python equivalent to Ruby symbols?

Viewed 18352

Is there a Python equivalent to Ruby symbols?

  • If so then what is it?

  • If not then are we stuck with using strings as our keys in dictionaries only?

5 Answers
Related