1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

fixed return value of len() in doc

This commit is contained in:
Jan Decaluwe 2009-01-08 15:54:08 +01:00
parent 48d3aeb80f
commit 63b8f09a70

View File

@ -350,10 +350,11 @@ object, we get::
>>> print a.max >>> print a.max
None None
>>> print len(a) >>> print len(a)
None 0
As the instantiation was unconstrained, the *min* and *max* attributes As the instantiation was unconstrained, the *min* and *max* attributes
are undefined, as is the bit width. are undefined. Likewise, the bit width is undefined, which is indicated
by a return value ``0``.
A constrained :class:`intbv` object is created as follows: A constrained :class:`intbv` object is created as follows: