Message234752
| Author |
vstinner |
| Recipients |
BreamoreBoy, christian.heimes, ezio.melotti, ideasman42, pitrou, python-dev, vstinner |
| Date |
2015年01月26日.15:48:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1422287304.78.0.304613288648.issue15859@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I applied fix_unicode_v2.diff to Python 3.5.
For older Python versions, it's easy to workaround this issue: ensure explicitly that your object is a Unicode object using PyUnicode_Check().
You may write your function to call PyUnicode_EncodeFSDefault() with a PyUnicode_Check() check.
I prefer to not touch the stable 3.4 branch. |
|