Message171669
Ok, since we're bikeshedding, I like Richard's proposal best:
> Personally, I would prefer to make the shared and exclusive locks
> attributes of the same object, so one could do
>
> with selock.shared:
> ...
>
> with selock.exclusive:
> ...
Please note, the "same object" could simply be a namedtuple instance.
Also I think "shared/exclusive" indeed conveys the semantics better than "read/write". |
|
Date |
User |
Action |
Args |
2012-09-30 20:10:50 | pitrou | set | recipients:
+ pitrou, kristjan.jonsson, jyasskin, asvetlov, sbt, mklauber, Sebastian.Noack |
2012-09-30 20:10:50 | pitrou | set | messageid: <1349035850.1.0.773756049578.issue8800@psf.upfronthosting.co.za> |
2012-09-30 20:10:50 | pitrou | link | issue8800 messages |
2012-09-30 20:10:49 | pitrou | create | |
|