title: Python Custom Numeric Types: Wrap around number
body: <p>Quick one hopefully; brain has gone blank. </p>
  
  <p>Is it possible / practical to have a class that is just a generic numeric value (eg float, int, etc) that when a value becomes &lt;=0 it loops around to os.maxint-value, similar to a unsigned value in C?</p>
  
  <p>'This is completely insane' is also an acceptable answer!</p>
  
  <p>'Reasonable' use cause; a particular 'effort' cost evaluation where a negative 'cost' is, while theoretically fine, practically invalid and is usually checked for each value and flipped to maxint if &lt;=0. </p>
  
  <p>Instead of all those lovely additional comparisons, just give the cost-value this inate behaviour. </p>