Opened 20 years ago
Closed 19 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 20 years ago by mww@…
Owner: | changed from darwinports-bugs@… to pguyot@… |
---|
comment:2 Changed 20 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 19 years ago by olegb@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
py-orbit is at 2.0.1 which fixes the problem - resolving
py-orbit currently still builds against python 2.3..