![]() ![]() Would have to be performed in set_params, The reason for postponing the validation is that the same validation param1 = param1 # WRONG: the object's attributes should have exactly the name of # the argument in the constructor self. Def _init_ ( self, param1 = 1, param2 = 2, param3 = 3 ): # WRONG: parameters should not be modified if param1 > 1 : param2 += 1 self.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |