|
|
|
|
|
by mdaniel
1132 days ago
|
|
matches my experience with LLMs: forcing the onus of accuracy upon the code reviewer >>> alpha = ["a", "b", "c"]
>>> def load_files_in_parallel(filenames):
... for _ in range(len(filenames)):
... _ = filenames.pop()
...
>>> load_files_in_parallel(alpha)
>>> alpha
[]
And I mean, just damn, because it was already iterating over the list of filenames using such a convoluted mechanism, what a great opportunity to put the filename into a local var without mutating the caller's list |
|