This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Frostburn, georg.brandl, pitrou
Date 2008-09-01.16:17:11
SpamBayes Score 0.0028700065
Marked as misclassified No
Message-id <1220285832.85.0.859286282281.issue3753@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-09-01 16:17:12pitrousetrecipients: + pitrou, georg.brandl, Frostburn
2008-09-01 16:17:12pitrousetmessageid: <1220285832.85.0.859286282281.issue3753@psf.upfronthosting.co.za>
2008-09-01 16:17:12pitroulinkissue3753 messages
2008-09-01 16:17:11pitroucreate