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 jdwhitley
Recipients jdwhitley, skip.montanaro
Date 2009-03-09.03:09:32
SpamBayes Score 4.784346e-05
Marked as misclassified No
Message-id <1236568175.29.0.593179483459.issue5455@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Skip,

Currently, once we are sure the lineobj is a unicode obj we then
get it's internal buffer using:

line = PyUnicode_AsUnicode(lineobj); 

for the purpose of iterating through the line.

is there an opportunity to use:

line = PyBytes_AsString(lineobj); 

(or similar approach if I have quoted an incorrect function) for the
case that we have a bytes object (not Unicode)?
History
Date User Action Args
2009-03-09 03:09:35jdwhitleysetrecipients: + jdwhitley, skip.montanaro
2009-03-09 03:09:35jdwhitleysetmessageid: <1236568175.29.0.593179483459.issue5455@psf.upfronthosting.co.za>
2009-03-09 03:09:33jdwhitleylinkissue5455 messages
2009-03-09 03:09:33jdwhitleycreate