Timeline for Printing a list as "a, b, c." using Python
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 29, 2019 at 14:58 | comment | added | Andy | @user14492 are you... are you one of my coworkers? | |
Aug 29, 2019 at 14:57 | comment | added | Andy | @AJNeufeld makes sense -- the extra speed in f-strings comes from opcodes for the final string format, so the bottleneck is the join. | |
Aug 29, 2019 at 14:48 | comment | added | AJNeufeld | I've added your answer to my time-plots. Performance seems effectively identical. | |
Aug 29, 2019 at 13:32 | comment | added | user14492 | Yeah @Andy you should make graphs like AJNeufeld. Be more like him. | |
Aug 28, 2019 at 19:58 | comment | added | Peilonrayz♦ | I do not trust a single timeit call, please look at AJNeufeld's edits to see why (those peaks that mean nothing). You should make a graph like AJNeufeld. | |
Aug 28, 2019 at 18:48 | comment | added | Andy | That's why I said a tiny bit. :) | |
Aug 28, 2019 at 18:47 | comment | added | G. Sliepen | With those error margins it's hard to say. | |
Aug 28, 2019 at 18:45 | comment | added | Andy | A tiny bit, yeah. imgur.com/JwNJjtp | |
Aug 28, 2019 at 18:09 | comment | added | G. Sliepen |
Is this really faster than writing print(", ".join(flavors) + ".") as others have already suggested?
|
|
Aug 28, 2019 at 17:35 | review | First posts | |||
Aug 28, 2019 at 18:09 | |||||
Aug 28, 2019 at 17:31 | history | answered | Andy | CC BY-SA 4.0 |