It's simple. There is no connection.
When you create a class, a local variable is created with the name that you used, pointing to the class so you can use it.
The class also receives the __name__ attribute, which contains the name of this variable, because it is convenient in some cases, for example, etching.
You can set the local variable to something else or change the __name__ variable, but then things like etching will not work, so don't do this.
source share