mg = magnitude.mg
new_mag = magnitude.new_mag
s = mg(500, 'mm')
new_mag('px', mg(500.0 / 300.0, 'mm'))
p = mg(1, 'px')
print('500mm + 1px = {u}'.format(u=(s + p).ounit('px')))
print('500mm + 1px = {u}'.format(u=(s + p).ounit('mm')))
Integer object whose value can be changed after definition?