Python Tip: Global, auto-incrementing IDs for class instances WITHOUT module-scope variables

This will be a short one, but it’s something you can easily apply to your own code when managing objects that must be indexable by an ID or be referenced in some downstream code. Recently, one of our developers wrote an entity system in a Python game server that they purpose-built for a toy game, […]

Python Tip: Global, auto-incrementing IDs for class instances WITHOUT module-scope variables Read More »