Monday, 16 July 2018

Python __Coerce__ Method

Cited from the book "Python How to Program"

Special method __coerce__ should contain code that converts the object and the other
type to the same type and should return a tuple that contains the two converted values.

No comments:

Post a Comment