Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python how to use __div__

"""
Python magic method __div__ (supposed to be for object / object) is old
and only usable for Python 2.x. If you want to define a division for two
objects, use ___truediv__ or __floordiv__ instead.
"""
 
PREVIOUS NEXT
Tagged: #Python
ADD COMMENT
Topic
Name
5+2 =