Message72270
Yes, you must use y* instead: see
http://docs.python.org/dev/3.0/c-api/arg.html
y# would not be safe to use with bytearray since another thread could
mutate the bytearray in-between, possibly reallocating the internal
buffer (to shrink or grow it), and lead to a segfault when your thread
uses the obsolete pointer.
IMO, the documentation should mention that the '*' codes (y*, s*, etc.)
must be used in preference to the '#' codes, which are there for
backwards compatibility. |
|
Date |
User |
Action |
Args |
2008-09-01 16:17:12 | pitrou | set | recipients:
+ pitrou, georg.brandl, Frostburn |
2008-09-01 16:17:12 | pitrou | set | messageid: <1220285832.85.0.859286282281.issue3753@psf.upfronthosting.co.za> |
2008-09-01 16:17:12 | pitrou | link | issue3753 messages |
2008-09-01 16:17:11 | pitrou | create | |
|