[issue232493] UserString can not be used as string in calls to C routines

2022-04-10 Thread admin
Change by admin : -- github: None -> 33931 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue232493] UserString can not be used as string in calls to C routines

2012-06-14 Thread Sam Whitehead
Sam Whitehead added the comment: This still seems to be the case in 3.2. Python 3.2.3 (default, Apr 23 2012, 23:35:30) [GCC 4.7.0 20120414 (prerelease)] on linux2 >>> from collections import UserString >>> a = UserString("foop") >>> import os.path >>> os.path.exists(a) Traceback (most rec