It iterates via every single line with the output of the next command: netstat -aon There is nothing pythonic about subclassing your own private lists Simply because you a need a pleasant get technique. Readability counts. And readability suffers with every single added unnecessary course. Just utilize the try / https://helpmehigh.com/