python-quantities/python-quantities — pull request #32 by phippo (2011-12-16 13:21:55+00:00)
Title: subclassing Quantity

Dear ddale,

I use Quantity to develop a toolkit for neuroscientists. For my work it is important to be able to subclass Quantity. Methods of these subclasses should return again instances of this subclass. Therefore I change in ``quantity.py``:
return Quantity ---> return self.__class__
To test return types I added also ``test_inheritance.py``

Cheers,
Philipp