Message159220
| 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). |
|