#213 ✓fixed
Randy Becker

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages