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)
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
Reporter | ||
Comment 1•15 years ago
|
||
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.
Comment 2•7 years ago
|
||
Component is obsolete so resolving bugs as INCOMPLETE[B
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Updated•7 years ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•