nakagami / pyfirebirdsql

Python DBAPI module for FirebirdSQL
BSD 2-Clause "Simplified" License
71 stars 29 forks source link

Fix pattern def func(arg=[]) #72

Closed kai3341 closed 6 years ago

kai3341 commented 6 years ago

Just never use mutable data types in default args: instances of it are creates before the function calls Test code is here: https://pastebin.com/embed_iframe/Pw6PL4uE

nakagami commented 6 years ago

thanks