You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KeyValues.fromelem() currently creates a new instance of the same type but with additional instance state (as defined in kwargs) passed on and assigned to the new object.
The question is whether this can be changed to a classmethod which seems much more fitting. The question of the state passing is what needs to be addressed and I have a feeling that progress with #2 may aid with this.
The text was updated successfully, but these errors were encountered:
Issue by tgoodlet
Friday Sep 23, 2016 at 21:04 GMT
Originally opened as sangoma/sandswitches#4
KeyValues.fromelem()
currently creates a new instance of the same type but with additional instance state (as defined inkwargs
) passed on and assigned to the new object.The question is whether this can be changed to a
classmethod
which seems much more fitting. The question of the state passing is what needs to be addressed and I have a feeling that progress with #2 may aid with this.The text was updated successfully, but these errors were encountered: