Files
2012-02-21 01:15:00 -05:00

1 line
4.3 KiB
JSON

[{"user_id": 4937, "stars": [], "topic_id": 7734, "date_created": 1298249625.7493989, "message": "I see Templates in python-mode but it's an empty menu", "group_id": 83, "id": 155383}, {"user_id": 1760, "stars": [], "topic_id": 7734, "date_created": 1298249981.722609, "message": "@markhellewell Have a look at http://code.google.com/p/yasnippet/", "group_id": 83, "id": 155418}, {"user_id": 4937, "stars": [], "topic_id": 7734, "date_created": 1298249427.8983221, "message": "maybe that's a bit lazy of me", "group_id": 83, "id": 155365}, {"user_id": 4937, "stars": [], "topic_id": 7734, "date_created": 1298249299.276716, "message": "I haven't done much of my own research on this yet, but I was wondering if anyone had a nifty way to hook up their emacs with the ability to insert blank python functions and what-have-you?", "group_id": 83, "id": 155357}, {"user_id": 4937, "stars": [], "topic_id": 7734, "date_created": 1298249420.604985, "message": "I'd like to type C-M-shift-quack-moo and have a class ready to go", "group_id": 83, "id": 155364}, {"user_id": 4937, "stars": [], "topic_id": 7734, "date_created": 1298250550.6582961, "message": "@doughellmann perfect! thanks", "group_id": 83, "id": 155454}, {"user_id": 12404, "stars": [], "topic_id": 7734, "date_created": 1298294377.68891, "message": "@doughellmann seconded on the yasnipppet. the screencast pretty much tells you everything you need to know", "group_id": 83, "id": 158582}, {"user_id": 8364, "stars": [], "topic_id": 7734, "date_created": 1298294615.5602131, "message": "With other languages, I understand the desire for this, but with Python I just don't get it. The boilerplate takes only marginally more time to type than the shortcut, and it gets you into the habit of tolerating larger amounts of boilerplate, when with Python there is rarely a need to do so.", "group_id": 83, "id": 158587}, {"user_id": 214, "stars": [], "topic_id": 7734, "date_created": 1298302716.5726941, "message": "@spookylukey I agree completely. I used to use yasnippet and ditched it, I felt it was more hassle than its worth.", "group_id": 83, "id": 159436}, {"user_id": 1760, "stars": [], "topic_id": 7734, "date_created": 1298333745.639698, "message": "@spookylukey I use it for file headers so they all have a consistent copyright. I also tend to use it more for test files, where there is a bit more \"boilerplate\" than for regular modules.", "group_id": 83, "id": 175770}, {"user_id": 1760, "stars": [], "topic_id": 7734, "date_created": 1298333665.0126481, "message": "@tbatterii I'm probably not using it nearly as much as I could be, but for where I do use it I like it.", "group_id": 83, "id": 175764}, {"user_id": 158, "stars": [], "topic_id": 7734, "date_created": 1298336764.957299, "message": "@spookylukey I almost never remember the metaclass syntax, so I just type in metaclass<tab> and I get a nice little metaclass with examples on how to use it without having to context switch.", "group_id": 83, "id": 176092}, {"user_id": 5694, "stars": [], "topic_id": 7734, "date_created": 1298347661.504425, "message": "@spookylukey I don't use the structural boilerplate either, but I do use inline shortcuts quite regularly, especially pdb.set_trace() insertion and in Sphinx docstrings, e.g. :c<tab> to produce :class:`classref` and tab again to bounce out after filling in the reference.", "group_id": 83, "id": 176996}, {"user_id": 9514, "stars": [{"date_created": 1301440884.0584171, "user_id": 4748}], "topic_id": 7734, "date_created": 1298353750.513474, "message": "There's a new python mode (trying to unify python.el and python-mode) that's seeing heavy development right now, and includes skeleton support: https://github.com/fgallina/python.el", "group_id": 83, "id": 177331}, {"user_id": 218, "stars": [], "topic_id": 7734, "date_created": 1298431584.406569, "message": "I found yasnippet helpful for defining functions like: def __init__(self, *args, *kwargs): super(MyCass, self).__init__(*args, **kwargs); my_thing()", "group_id": 83, "id": 185634}, {"user_id": 218, "stars": [], "topic_id": 7734, "date_created": 1298431596.722285, "message": "so I have a simple snippet to do that, but that's basically the only thing.", "group_id": 83, "id": 185635}, {"user_id": 218, "stars": [], "topic_id": 7734, "date_created": 1298431545.137136, "message": "@jek for pdb, I just used abbrev, which doesn't require extra packages.", "group_id": 83, "id": 185633}]