Comments on writing Python on a MacBook

# A hash denotes a single line comment in Python.
# The hash key is very hard to find on a MacBook.
# Because there isn't one.
# Try Alt + 3
Explore posts in the same categories: Mac, Python

6 Comments on “Comments on writing Python on a MacBook”


  1. Get yourself a copy of TextMate. It’s the same keystroke to comment/uncomment in any language with that – command-/. And there’s *loads* of other good stuff in there too. The smart snippets rock.

    It’s not free, but it’s worth every penny.

  2. Andy Todd Says:

    Alternatively, get a Mac Book with a US keyboard. On mine the # is just shift-3. The expense of moving countries is more than made up for with the convenience of being able to put comments in your code.

    And tell Simon to stick his TextMate – you want to get yourself a copy of Mac Vim – http://code.google.com/p/macvim/

  3. neveratoss Says:

    Hey Andy, How are you? Still annoying the Aussies I hope. Thanks for the tip, I’ll give both a try and see how I get on. I probably won’t tell Simon to stick his TextMate though – he buys me beer so I’ll be nice to him.

    As for the hash key, I reckin I might get used to the Alt + 3 thingo eventually.

  4. Alan Green Says:

    Yes, Andy is annoying the Aussies. We’d like to send him back, but we’d need to send a stack of US-keyboarded Macs along with him to make sure he stays.


  5. No hash key, but for ยง you don’t even need to hit shift. Barking.


Comment: