I get a list of warnings when i compile the python-mode.el on GNU Emacs 22.2.1.
I have made a few changes that fix these warnings. All of them are clearly harmless, and at least one of them (the devconst thing) looks like a proper bug fix to me. Patch and patched file are attached to this ticket. Please let me know if there is anything else I can do to get this into the next release.
patch
patched file
File Added: python-mode.el.patched
The patch wasn't a unified (or even context) diff so it couldn't be applied, however it did provide a decent start for me to reproduce it. Thanks.