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 vstinner
Recipients eric.smith, ezio.melotti, loewis, mark.dickinson, pitrou, python-dev, serhiy.storchaka, skrah, vstinner
Date 2012-04-24.22:06:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335305187.61.0.0327030149603.issue14339@psf.upfronthosting.co.za>
In-reply-to
Content
2.100 -    v = PyUnicode_DecodeASCII(p, &buffer[sz] - p, NULL);
...
   2.104 +    assert(p == PyUnicode_1BYTE_DATA(v));
   2.105      return v;
   2.106  }

You may call assert(_PyUnicode_CheckConsistency(v, 1)) to ensure that the newly created string is "consistent" (see the function for the details).
History
Date User Action Args
2012-04-24 22:06:27vstinnersetrecipients: + vstinner, loewis, mark.dickinson, pitrou, eric.smith, ezio.melotti, skrah, python-dev, serhiy.storchaka
2012-04-24 22:06:27vstinnersetmessageid: <1335305187.61.0.0327030149603.issue14339@psf.upfronthosting.co.za>
2012-04-24 22:06:27vstinnerlinkissue14339 messages
2012-04-24 22:06:26vstinnercreate