Archr

joined 2 years ago
[โ€“] Archr@lemmy.world 1 points 2 weeks ago

I haven't read the article. But I'd assume this is for the same reason that not not string is faster than bool(string). Which is to say that it has to do with having to look up a global function rather than a known keyword.

[โ€“] Archr@lemmy.world 7 points 3 weeks ago* (last edited 3 weeks ago) (6 children)
print('string\n', end='')