LJMUAstroecology / flirpy

Python library to interact with FLIR camera cores
Other
191 stars 54 forks source link

Fix default argument #15

Closed Alyetama closed 4 years ago

Alyetama commented 4 years ago

A mutable like list or dictionary should not be used as a default value to an argument. Python’s default arguments are evaluated once when the function is defined. Using a mutable default argument and mutating it will mutate that object for all future calls to the function as well.

jveitchmichaelis commented 4 years ago

Nice catch, thanks!