Skip to main content

All Questions

Tagged with
1 vote
2 answers
228 views

Actions that can have individual cooldowns or a "group" cooldown

I'm creating a game (well, a plugin) where each player has a list of skills, each of which has an unique type object, each of which has a list of actions that need to be ran when a player executes his ...
Mahi's user avatar
  • 406
1 vote
0 answers
87 views

Should I pull the language data files of a project from a GitHub repository?

I am currently in a dilemma. I am thinking about downloading a JSON file from a GitHub repo to replace local files. The local files are stored in a folder named lang, which is stored in the project ...
bb216b3acfd8f72cbc8f899d4d6963's user avatar
3 votes
2 answers
15k views

How to achieve inheritance when using just modules and vanilla functions in Python?

Python doesn't enforce any paradigm. It gives you freedom. Python provides encapsulation at module level. If I have a module A and have a module B with same interface. How do I sort of inherit B ...
Amogh Talpallikar's user avatar
0 votes
2 answers
292 views

Ensuring program output is always the same [closed]

I am working on a +10k LOC program, and I need to ensure its output is always the same for given input. The program consists of dozens of modules and classes, inherited by a MainClass. (The examples ...
user's user avatar
  • 479
4 votes
3 answers
254 views

Parent class using methods defined in child

I am working on a large program (more than 10k lines of code). Below is a (hopefully not over-simplified) example of a problem I sometimes face: class MyClass1(object): def func_1(self): ...
user's user avatar
  • 479