Message107755
"w#" is not only useless but also not used in py3k source code. "w" is also not used. Only "w*" is used by fnctl and socket modules.
The problem with w# is that the caller cannot "release" the buffer and so we cannot lock the buffer. I don't know exactly what happens if you get a pointer to a bytearray, release the GIL and then use it, whereas another thread modifies and/or destroys the bytearray object. (I suppose that something bad will happen, like a segfault) |
|
Date |
User |
Action |
Args |
2010-06-13 21:36:22 | vstinner | set | recipients:
+ vstinner, loewis, pitrou |
2010-06-13 21:36:22 | vstinner | set | messageid: <1276464982.06.0.0448986383391.issue8850@psf.upfronthosting.co.za> |
2010-06-13 21:36:19 | vstinner | link | issue8850 messages |
2010-06-13 21:36:19 | vstinner | create | |
|