Right now I am just using dictionaries to store bonds and atoms in a compound. It is working alright so far, but I'd like to have methods as well. I want to adjust to a system like
where Element and Bond are objects that have all the necessary data and methods.
I'd also like to avoid creating copies of all the periodic table information in each Element instance. I propose using __getattr__ here or using properties that fetch from some global variable
Right now I am just using dictionaries to store bonds and atoms in a compound. It is working alright so far, but I'd like to have methods as well. I want to adjust to a system like
where
Element
andBond
are objects that have all the necessary data and methods.I'd also like to avoid creating copies of all the periodic table information in each
Element
instance. I propose using__getattr__
here or using properties that fetch from some global variable