I'm trying to write a wrap function around print() by adding filename, function name and line number.
If I pass the whole items parameter to print() there will be additional brackets and quotation marks. It looks different from print() . Is there a way to pass individual item one by one to print() without call print() repeatedly?
for loops are faster, at least with optimizations turned off. When I wrote the code above I was aiming to be succinct to read, not fast to execute. The standard library has the opposite goal.