correct way to catch exception with Python 'with' statement

Marko Rauhamaa marko at
Fri Dec 2 13:44:32 EST 2016

Grant Edwards <grant.b.edwards at>:
> In general CISC processors like x86, AMD64, 68K have read-modify-write
> instructions that allow you to increment a memory location or
> set/clear a bit in memory with a single instruction:
>     INC.W  [R0]    # increment memory word whose addr is in register R0

The x86 instruction set has a special lock prefix for the purpose:



More information about the Python-list mailing list