2
votes
0answers
146 views

how to design a good Python class

I am using python moudle urllib3. It occurs to me that is there better way to design a good class when I rebuild my last site crawler. Then, below code comes up : class Global: host = ...
1
vote
0answers
47 views

Changing states of a game character and constructor signature

I have an Actor class who represents the player and the NPCs of an game. The Actor have an StateMachine object who manages the push and the pop of the states of the Actor object. The Actor have only ...
1
vote
0answers
98 views

Guidance on SoC and passing data between GUI instances (MVC pattern)

I'm fairly new to Python and currently building a small application to record loans of access cards to people in a company. I'm using wxPython for the GUI and SQLAlchemy for the CRUD. I'm loosely ...