Sept. 20, 2019
10:36 p.m.
On 9/20/19 2:47 PM, Tim Stumbaugh wrote:
You get the same pylint warning, but better yet, you get a `NameError` raised at the point of the `del`. Your suggestion of moving the loop to the function would alleviate the problem, since there would be no need for the explicit `del`. If that's unavoidable, you could add an explicit `device =
Indeed. I duplicated your code and found that it works exactly how you described. The situation where the original list would be empty isn't supposed to happen...famous last words. I moved the loop into its own function. Problem solved. Thank you for your comments and insight. I learned something today.