Closed Bug 524647 Opened 15 years ago Closed 7 years ago

Cannot call nsIWebBrowserPrint.print or any other function whose name is reserved in Python

Categories

(Other Applications Graveyard :: PyXPCOM, defect)

1.9.1 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: davidf, Unassigned)

Details

Attachments

(1 file)

_MakeMethodCode in xpcom/client/__init__.py doesn't account for methods whose names are reserved words in Python, so trying to call them generates a syntax error when trying to compile the code
Attached a minimal patch that at least makes this possible by calling getattr(interface, "print") - basically all function definitions get a _ appended to them, but the name returned is still the same.
Component is obsolete so resolving bugs as INCOMPLETE[B
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: