'does Python support private class constants? [duplicate]

like in PHP you can do

class C {
    private const FOO=123;
}

for constants that are only relevant inside the class/not part of the public API, does Python support something similar?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source