← Back to team overview

python-quantities-developers team mailing list archive

new units branch available for testing

 

Hi John,

I pushed a new branch to
https://code.edge.launchpad.net/~dsdale24/python-quantities/quantities-units.
Units now have a full name and optionally a symbol, list of aliases, and a
note. The name, aliases, and symbol are registered in the units registry.
The note is printed as part of the units repr, but not for quantities.

A few of the symbols include unicode characters, including the middle dot
for multiplication in the units string repr, and also unicode superscripts
(eventually for integer powers only, since there is no superscript period,
but I havent written the regular expression yet to filter this). I'm
planning on adding a function that will let you decide whether or not to use
unicode, in case the feature causes problems or people dont like it. I
prefer the unicode myself, the units are more natural that way.

If you get a chance, please grab a copy of the branch and try it out. All
the unit tests are passing, but there might be some lingering bugs. If so,
please report them!

Thanks,
Darren