Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

objc.pyobjc_unicode Exceptions

#213

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.

Reported by Randy Becker · December 16th, 2010 @ 08:45 PM

State: fixed
Milestone: none
Assigned to: nobody

Activity

  1. Virgil Dupras
    Virgil Dupras
    • 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.

    December 17th, 2010 @ 08:45 AM

  2. Virgil Dupras
    Virgil Dupras

    Oh yeah, I found it: r2592 on september 8

    December 17th, 2010 @ 09:04 AM

  3. Randy Becker
    Randy Becker

    Ah. I used the PyObjC's tagged 2.3 version, and hit this instance of the issue in 633d142fca30.

    December 17th, 2010 @ 04:02 PM

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.