#609: intbitset should be evaluable as bool
--------------------------+--------------------
Reporter: jblayloc | Owner:
Type: enhancement | Status: closed
Priority: minor | Milestone:
Component: *general* | Version:
Resolution: worksforme | Keywords:
--------------------------+--------------------
Changes (by skaplun):
* status: in_merge => closed
* resolution: => worksforme
Comment:
{{{
if intbitset([1,2,3]):
print "ciao"
else:
print "bau"
}}}
would return "ciao"
{{{
if intbitset([]):
print "ciao"
else:
print "bau"
}}}
would return "bau"
{{{
if intbitset([], trailing_bits=True):
print "ciao"
else:
print "bau"
}}}
would return "ciao"
--
Ticket URL: <http://invenio-software.org/ticket/609#comment:2>
Invenio <http://invenio-software.org>