[Zope] ConflictError (ID-Counter for all Documents)

Dieter Maurer dieter@handshake.de
Sat, 26 Jan 2002 21:13:34 +0100


Thomas Guettler writes:
 > On Fri, Jan 25, 2002 at 10:05:21AM +0000, seb bacon wrote:
 > The Problem is:
 >  last_id=last_id+1
>From Python 2.1 on, you can use:

     last_id+= 1

Not sure, whether this is thread safe. It might be implemented
in a single bytecode instruction. Then it would be...


Dieter