new bitwise module --- Use operator module!!

Michael Hudson mwh21 at cam.ac.uk
Wed Aug 2 19:06:19 EDT 2000


hzhu at localhost.localdomain (Huaiyu Zhu) writes:

> Thanks for this reminder.  Yes, it has the builtin bitwise operations,
> except I can't find correspondent to ~.  It's not 'not':
> >>> operator.__not__.__doc__ 
> 'not_(a) -- Same as not a.'
> Neither are the other possible candidates:  neg, inv.

It "operator.inv" (don't ask me!).

Cheers,
M.

-- 
  please realize that the Common  Lisp community is more than 40 
  years old.  collectively, the community has already been where 
  every clueless newbie  will be going for the next three years.  
  so relax, please.                     -- Erik Naggum, comp.lang.lisp



More information about the Python-list mailing list