News for hackers. Stuff that matters.
Re:Python Standard Library changes in recent years by ehsankia on Saturday May 21, 2022 @12:55AM (#31455334)
What do you mean? That one's a verb and the other isn't? I think it's fine here. The latter returns a modified version of the string, whereas the former is more like a property of the int, like it's "length", although Python also doesn't have .length so I guess that's a bad example. Think of it like datetime.year vs datetime.replace
Re:Python Standard Library changes in recent years by zodiac on Saturday May 21, 2022 @01:08AM (#31455406)
I think the problem is that the first separates words by underscore and the second doesn’t
Re:Python Standard Library changes in recent years by sp332 on Saturday May 21, 2022 @01:07AM (#31455401)
Well count could be a verb here. And one has an underscore while the other smashes two words together.