Author ebfe
Recipients ebfe, georg.brandl
Date 2008-12-25.11:54:14
SpamBayes Score 4.24939e-05
Marked as misclassified No
Message-id <1230206058.61.0.0555271028703.issue4746@psf.upfronthosting.co.za>
In-reply-to
Content
Quote from http://docs.python.org/3.0/c-api/arg.html, regarding the "s"
argument:

"""
s (string or Unicode object) [const char *]

    Convert a Python string or Unicode object to a C pointer to a
character string. You must not provide storage for the string itself; a
pointer to an existing string is stored into the character pointer
variable whose address you pass. 
"""

I guess the phrase "you must not provide storage" is a failed
translation and not meant like that. It should say "you are not required
to provide storage". It's confusing to have such strong wording without
reason.
History
Date User Action Args
2008-12-25 11:54:19ebfesetrecipients: + ebfe, georg.brandl
2008-12-25 11:54:18ebfesetmessageid: <1230206058.61.0.0555271028703.issue4746@psf.upfronthosting.co.za>
2008-12-25 11:54:17ebfelinkissue4746 messages
2008-12-25 11:54:15ebfecreate