Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by Sohcahtoa82

6 days ago

And as much as I love Python, being able to multiple a string by an integer doesn't make sense when adding an integer to a string is a TypeError.

Being able to repeat a string is fine, but it should be a str.repeat() function, not an operator overload like that.

0 comments

Sohcahtoa82

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities