Python 3 Instance vs. Class Variables
Go to solution
Solved by fizzlesticks,
To answer the actual question...
self.variable refers to an instance variable inside that instance
ClassName.variable refers to a class variable
So changing
self.unsorted_list
to
__Sorting.unsorted_list
Will make it a class variable.
edit: You should probably also change your class name using '_ _' at the start of a class has special meaning that you probably didn't intend to use.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now