Skip to content

Commit 4603388

Browse files
committed
add a comment about plural variants of unit names to the tutorial
1 parent 490e395 commit 4603388

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

quantities/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747
>>> print q
4848
3.280839895013123 ft
4949
50+
Note that, with strings, units can be designated using plural
51+
variants. Plural variants of the module variables are not available at
52+
this time, in the interest of keeping the units namespace somewhat
53+
manageable. `q.units = 'feet'` will work, `q.units = pq.feet` will
54+
not.
55+
5056
The units themselves are special objects that can not be modified in
5157
place::
5258

0 commit comments

Comments
 (0)