a &= b

Joel Goldstick joel.goldstick at gmail.com
Fri Oct 4 05:18:25 EDT 2019


On Fri, Oct 4, 2019 at 5:01 AM Hongyi Zhao <hongyi.zhao at gmail.com> wrote:
>
> Hi,
>
> Could you please give me some more hints on:
>
> a &= b
>
> It's very difficult for me to understand.
> --
> https://mail.python.org/mailman/listinfo/python-list

& is bitwise And.  a &= b is equivalent to a = a & b


-- 
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays



More information about the Python-list mailing list