It iterates by each line in the output of the subsequent command: netstat -aon There is nothing pythonic about subclassing your own personal lists Because you a necessity a nice get method. Readability counts. And readability suffers with each individual supplemental unwanted class. Just utilize the try out / apart https://helpmehigh.com/