Re: Setting the source to Python3
Eric Promislow <[email protected]> Fri, 08 Jul 2011 10:03:56 -0700
| Newsgroups | gmane.comp.ide.komodo.general |
|---|---|
| Message-ID | <[email protected]> |
Komodo should keep track of whether a particular file is Python 2 or 3. When it first loads a file, it does a quick scan over the contents looking for a few markers that indicate only Python 2 or 3. Failing that, it defaults to Python 2 (and there's a bug stating that if there's no setting for Python 2, default to 3). If it guesses wrong, you can use the Language tab in the status bar, or [View|View As Language] to specify the correct language. Looking at the code, I see there's a problem that Komodo isn't looking for those -*- mode lines for Python 2/3 and JavaScript/Node.js files. Bug filed at http://bugs.activestate.com/show_bug.cgi?id=90610 - Eric On 7/8/2011 5:33 AM, Robert wrote: > Since Komodo has preferences for both Python2 and Python3, how do I > tell it that the source is Python3? I tried an emacs style local > variable at the top of the file but I may not have gotten it correct. > _______________________________________________ Komodo-discuss mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss