It iterates through every line from your output of the subsequent command: netstat -aon There's nothing pythonic about subclassing your individual lists Because you a necessity a good get method. Readability counts. And readability suffers with every single more unnecessary course. Just use the check out / except technique without https://helpmehigh.com/