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 philipdumont
Recipients philipdumont
Date 2008-01-18.18:46:07
SpamBayes Score 0.021217449
Marked as misclassified No
Message-id <1200681970.2.0.912718232693.issue1866@psf.upfronthosting.co.za>
In-reply-to
Content
In PyInt_FromString(), please change the type of the first
arg from char * to const char *.  That is, of course, if
the function indeed does not write to the string.  (I took
a quick look at the code; it doesn't appear to.)

If the function does modify the string, it should be
documented.

I'm getting a compiler error in some C++ code when I
use a std::string::c_str() as the arg.  Of course, I could
cast away the const, but paranoid as I am, I'd like
reassurance that I can do so with impunity.  :-)
History
Date User Action Args
2008-01-18 18:46:10philipdumontsetspambayes_score: 0.0212174 -> 0.021217449
recipients: + philipdumont
2008-01-18 18:46:10philipdumontsetspambayes_score: 0.0212174 -> 0.0212174
messageid: <1200681970.2.0.912718232693.issue1866@psf.upfronthosting.co.za>
2008-01-18 18:46:08philipdumontlinkissue1866 messages
2008-01-18 18:46:07philipdumontcreate