+= append class operator

schwehr at gmail.com schwehr at gmail.com
Wed Apr 19 13:15:31 EDT 2006


Hi All,

This is probably a FAQ, but is there an operator mapping for += for
classes?  Or does a += b get converted to a = a + b?  I would like to
make this operator faster for the BitVector class, but I don't see +=
in http://docs.python.org/lib/operator-map.html

I could always create an append method, but += is nice and concise.

Thanks,
-kurt




More information about the Python-list mailing list