Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python __div__ magic method

"""
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 #magic #method
ADD COMMENT
Topic
Name
5+3 =