objc.pyobjc_unicode Exceptions
Reported by Randy Becker | December 16th, 2010 @ 08:45 PM
When Python functions expect a str
object, and
PyObjC instead provides an objc.pyobjc_unicode
object,
exceptions are raised.
e.g.
Traceback (most recent call last):
File "hscommon/cocoa/inter.pyc", line 139, in setValue_forColumn_row_
File "hscommon/gui/table.pyc", line 335, in set_cell_value
File "core/gui/table.pyc", line 219, in date
File "core/app.pyc", line 120, in parse_date
File "core/model/date.pyc", line 321, in parse_date
File "_strptime.pyc", line 335, in _strptime
ValueError: unconverted data remains: 祰
wrapping the objc.pyobjc_unicode object in a call to
str()
fixes this issue, but it's strange it only
occurred in my build, not 2.3.3; maybe something strage about my
build environment.
Comments and changes to this ticket
-
Virgil Dupras December 17th, 2010 @ 08:45 AM
- State changed from new to fixed
It was a bug in PyObjC which has been fixed a few weeks (months?) ago. I use PyObjC's trunk to build moneyGuru.
-
Randy Becker December 17th, 2010 @ 04:02 PM
Ah. I used the PyObjC's tagged 2.3 version, and hit this instance of the issue in 633d142fca30.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป