Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71162
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: trailing underscores naming convention_ |
| Date | 2014-05-09 11:10 +0200 |
| Organization | None |
| References | <57d21b4f-10db-4fbf-82f4-d33250b14456@googlegroups.com> <57b0d9ec-b8a4-4021-b25f-422a9fe11529@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9818.1399627734.18130.python-list@python.org> (permalink) |
Metallicow wrote:
> I guess to be more clear here is a small code snippet that shows what is
> happening more readably. Hence the underscores question.
Working with multiple names with small differences is error-prone.
You should give a method a name that describes what it does rather than when
it's invoked:
> class MainAuiManager(aui.AuiManager):
> def __init__(self, managed_window=None, agwFlags=0)
> aui.AuiManager.__init__(self, managed_window, agwFlags)
self.Bind(wx.EVT_LEFT_DCLICK, self.EatMagicMushroom)
self.Bind(wx.EVT_LEFT_DCLICK, self.KillBlueMonster)
self.Bind(wx.EVT_LEFT_DCLICK, self.SingDitty)
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
trailing underscores naming convention_ Metallicow <metaliobovinus@gmail.com> - 2014-05-08 20:28 -0700
Re: trailing underscores naming convention_ Ian Kelly <ian.g.kelly@gmail.com> - 2014-05-08 22:24 -0600
Re: trailing underscores naming convention_ Metallicow <metaliobovinus@gmail.com> - 2014-05-08 22:03 -0700
Re: trailing underscores naming convention_ Metallicow <metaliobovinus@gmail.com> - 2014-05-08 22:49 -0700
Re: trailing underscores naming convention_ Peter Otten <__peter__@web.de> - 2014-05-09 11:10 +0200
Re: trailing underscores naming convention_ Metallicow <metaliobovinus@gmail.com> - 2014-05-09 03:22 -0700
Re: trailing underscores naming convention_ Peter Otten <__peter__@web.de> - 2014-05-09 13:49 +0200
Re: trailing underscores naming convention_ "Albert Visser" <albert.visser@gmail.com> - 2014-05-09 16:24 +0200
Re: trailing underscores naming convention_ Michael Torrie <torriem@gmail.com> - 2014-05-09 10:35 -0600
Re: trailing underscores naming convention_ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-05-10 00:00 +0000
csiph-web