dto

Python: Quick and dirty datatypes (DTO)

Python: Quick and dirty datatypes (DTO) Question: Very often, I find myself coding trivial datatypes like class Pruefer: def __init__(self, ident, maxNum=float(‘inf’), name=””): self.ident = ident self.maxNum = maxNum self.name = name While this is very useful (Clearly I don’t want to replace the above with anonymous 3-tuples), it’s also very boilerplate. Now for example, …

Total answers: 6