4

Python..... please cast my integers and such to string for me. I don't want to have to keep typing str().... pretty please?

Comments
  • 0
    Please Python, don't do this.

    myStr = "5"
    myInt = myStr

    now, put those statements 100 lines apart and tell me that makes anyone's life easier.
  • 1
    @ingenioushax I'm referring specifically to within print statements - much like how JAVA does it
  • 1
    @AngryDev: Ah, that makes sense. Would be nice huh?
  • 1
    Inside certain scenarios that would be nice. When I do str concat with join and mixed types, it would be nice if it just knew that I wanted that integer to cast to a string.

    However, it has taught me to mind my data types more in weak typed languages.
Add Comment