Opened 19 years ago

Closed 18 years ago

#2583 closed defect (fixed)

BUG: py-orbit : pyorbit-utils.c uses "keyword.kwdict" in the python standard library, but it is no longer present in current python CVS (2.4a0)

Reported by: c.turner@… Owned by: pguyot (Paul Guyot)
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

Locally upgraded py-orbit Portfile to 2.0.1 to fix the problem.

copy of gnome bugzilla : ---8<--- When building pyorbit with a 2.4-CVS version of python, "import ORBit" will cause an assert in _pyorbit_escap_name to fail, because it assumes "keyword.kwdict" will always be in the standard python library. After checking python CVS logs, it seems that "kwdict" was removed from the "keyword" module in the python 2.4 branch, an "iskeyword" attribute which is just an alias for "keyword.kwlist.contains" was added instead.

I suggest changing _pyorbit_escape_name in pyorbit-utils.c to use "keyword.kwlist.contains" directly so to be future proof and avoid need of any conditional compilation. --->8---

Change History (3)

comment:1 Changed 19 years ago by mww@…

Owner: changed from darwinports-bugs@… to pguyot@…

py-orbit currently still builds against python 2.3..

comment:2 Changed 19 years ago by snu@…

Summary: python/py-orbit : pyorbit-utils.c uses "keyword.kwdict" in the python standard library, but it is no longer present in current python CVS (2.4a0)BUG: py-orbit : pyorbit-utils.c uses "keyword.kwdict" in the python standard library, but it is no longer present in current python CVS (2.4a0)

Please use summary prefix.

comment:3 Changed 18 years ago by olegb@…

Resolution: fixed
Status: newclosed

py-orbit is at 2.0.1 which fixes the problem - resolving

Note: See TracTickets for help on using tickets.