Notice!
PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities.
Create your free Platform account
to download ActivePython or customize Python with the packages you require and get automatic updates.
Download
ActivePython
INSTALL>
pypm install atomic
How to install atomic
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install atomic
| Python 2.7 | Python 3.2 | Python 3.3 |
---|
Windows (32-bit) | | | |
---|
Windows (64-bit) | | | |
---|
Mac OS X (10.5+) |
0.5.1
| | |
---|
Linux (32-bit) | | | |
---|
Linux (64-bit) | | | |
---|
Lastest release
version 0.6 on Jul 29th, 2013
An atomic class that guarantees atomic updates to its contained value.
from atomic import Atomic
atomic = Atomic(0)
atomic.update(lambda v: v + 1)
Installation
To install atomic, use pip :
pip install atomic
Acknowledgement
This is heavily inspired by ruby-atomic.