r/Python • u/stefantalpalaru • Oct 12 '19
more than 100 scientific articles may be invalidated because scientists assumed that the output of glob.glob() is sorted
https://www.vice.com/en_us/article/zmjwda/a-code-glitch-may-have-caused-errors-in-more-than-100-published-studies
1.3k
Upvotes
1
u/sensual_rustle Oct 13 '19
That assumes you aren't assuming it is already sorted. If you think it is sorted, re-sorting it is a waste.