On Oct 17, 2009, at 11:54 AM, Andreas Roehler wrote:
(defcustom py-adressed-python-version ""
"*With different Python versions, changes have been made, which
affect python execution as editing likewise.
If a version is specified here, python-mode will adapt its
proceeding to it.
Otherwise python-mode will try some guess from the installed system.
You may switch the addressed python-version with M-x py-switch-
addressed-version during your emacs-session. "
:type 'string
:group 'python)
Any hints, objections, ideas?
I'd definitely love to see some enhancements to python-mode to deal
with Python 3, but of course I have no time for that myself. ;)
I'd suggest two variables:
(defvar py-python-major-version ...)
This would be a buffer-local variable, defaulting to "2", specifying
the Python major version of the code in the current buffer.
(defcustom py-guess-python-version ...)
This would be a global customizable variable specifying whether to
apply heuristics to guess the py-python-major-version when a buffer is
visited. It should probably default to t.
+1 for working on this!
-Barry
_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode