[Python-Dev] Retrieve an arbitrary element from asetwithoutremoving it (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Tue Nov 10 14:55:48 CET 2009
- Previous message: [Python-Dev] Retrieve an arbitrary element from asetwithoutremoving it
- Next message: [Python-Dev] Retrieve an arbitrary element from asetwithoutremoving it
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nick Coghlan <ncoghlan gmail.com> writes:
It's also one of the major reasons for not sharing mutable containers between threads if you can avoid it (and serialising access to them if you can't)
Not necessarily, for example it is common to rely on the fact that list.append() is atomic.
Regards
Antoine.
- Previous message: [Python-Dev] Retrieve an arbitrary element from asetwithoutremoving it
- Next message: [Python-Dev] Retrieve an arbitrary element from asetwithoutremoving it
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]