Understanding that the below are not true constants, attempting to follow PEP 8 I'd like to make a "constant" in my @dataclass in Python 3.7.
@dataclass
class MyClass:
data: DataFrame
SEED = 8675309 # Jenny's Constant
My code used to be:
class MyClass:
SEED = 8675309 # Jenny's Constant
def __init__(data):
self.data = data
Are these two equivalent in there handling of the seed? Is the seed now part of the init/eq/hash? Is there a preferred style for these constants?