Python's IDLE



  • Heh, I was forced to do some coding on Windows, and was happy* using Notepad++ to write some Python files. Then I see at the context menu the option "Edit with IDLE". Well, that's worth a try, some language oriented IDE may help me.

     

    So I edit the file with IDLE, and as a first test I write "clas" and click on tab for completion. In an instant, I see my word completed: "classmethod"! Yeah, IDLE, I really meant it.  There is no way I was thinking on any other word.

     

    Just for curiosity, I checked the list of autocompleted words. Of course "class" isn't there. Back to Notepad++.

     

    * After some issues with emacs using spaces for identations, and notepad++ using tabs. Of course semanticaly important whitespace would create troubles somewhen, but it took longer than I expected.



  • 'Class' is so short word that there is no need to autocomplete it.



  • "cla"+Tab is probably as fast as typing class. And "cl"+Tab becomes ambigous (you might have wanted to write "cloche").



  • @Mcoder said:

    Heh, I was forced to do some coding on Windows

    IDLE is available on other platforms as well. Nice try with the unrelated dig against Windows though.

    @Mcoder said:

    After some issues with emacs using spaces for identations, and notepad++ using tabs. Of course semanticaly important whitespace would create troubles somewhen, but it took longer than I expected

    Which is why you follow PEP8 and just "always use 4 spaces". Or pick and editor that lets you configure it and have it auto-detect the indentation format of the document. e-texteditor, or better yet, Sublime Text, do a good job of this.



  • @geocities said:

    "cla"+Tab is probably as fast as typing class.

    Exactly. Come to think of it, nearly every keyword in Python is extremely short. class, def, str, len, etc.



  • @Mcoder said:

    Heh, I was forced to do some coding on Windows, and was happy* using Notepad++ to write some Python files. Then I see at the context menu the option "Edit with IDLE".

    Edit with Idle



  • On other plataforms I use other editors, and wouldn't ever think about using somethng that is good only for Python.

    But on Windows there is no good editor available, and installing an entire environment so that my editor of choice works without surprizing me is too much work. Then, I got to try IDLE while on Windows.

    The people claiming that class is too short are just partialy right. I wouldn't care about it not autocompleting class, but how can I trust it will help me instead of making my work harder? The minimum autocomplete should get right are the reserved words.

    Anyway, thanks for the hint of editors.



  • @DaveK said:

    @Mcoder said:

    Heh, I was forced to do some coding on Windows, and was happy* using Notepad++ to write some Python files. Then I see at the context menu the option "Edit with IDLE".

    Edit with Idle

    Yes, you get the joke. We're all very proud of you.



  • @blakeyrat said:

    @DaveK said:

    @Mcoder said:

    Heh, I was forced to do some coding on Windows, and was happy* using Notepad++ to write some Python files. Then I see at the context menu the option "Edit with IDLE".

    Edit with Idle

    Yes, you get the joke. We're all very proud of you.

    I posted a funny pic in order to make people laugh.  It's a well-known internet tradition.

    You posted a content-free whinge because....  ?



  • @Mcoder said:

    But on Windows there is no good editor available, and installing an entire environment so that my editor of choice works without surprizing me is too much work. Then, I got to try IDLE while on Windows.

    This is utter bull, just about every editor is available for Windows. I already mentioned several that are good, but I doubt you're pragmatic enough to have tried them. If it's because you're a diehard VI fanboy, you can always turn on Vintage mode in Sublime Text.

    @Mcoder said:

    I wouldn't care about it not autocompleting class, but how can I trust it will help me instead of making my work harder? The minimum autocomplete should get right are the reserved words.

    IDLE doesn't autocomplete any of the keywords, it completes callables from all bundled libraries. So it won't complete import, from, for, in, if, class, def, etc. I don't know about you, but I'm not using visual studio's intellisense to autocomplete "if" and "function" keywords, for example.


  • Discourse touched me in a no-no place

    @DaveK said:

    I posted a funny pic in order to make people laugh.  It's a well-known internet tradition.

    You posted a content-free whinge because....  ?

    ... that too is a well-known internet tradition?



  • @Soviut said:

    . I don't know about you, but I'm not using visual studio's intellisense to autocomplete "if" and "function" keywords, for example.

    Perhaps not the word but the snippet is sometimes useful, when I have an if else construct is faster just to use that feature, same with mbox ;)


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.