Re: Setting the source to Python3
Robert <[email protected]> Fri, 8 Jul 2011 14:41:12 -0400
| Newsgroups | gmane.comp.ide.komodo.general |
|---|---|
| Message-ID | <[email protected]> |
On 2011-07-08 13:03:56 -0400, Eric Promislow said: > 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. I knew I could change it manually. I was thinking it should auto-detect and it wasn't. Even when the source has print() as a function it was still defaulting to "python" and not "python3". > > 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 Thanks! I am glad I help to find a bug. :) > > - 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 -- Robert _______________________________________________ Komodo-discuss mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss