Aug-17-2017, 12:38 AM
As @nilamo pointed out, you've defined "packet" as a function and as such has no attribute ".extend", lists, however do. Have no idea what you are trying to do with "packet" within your for loop. Your function has no "return", that may turn out to be helpful.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition