On Wednesday, September 23, 2015 at 11:02:38 PM UTC-7, Steven D'Aprano wrote: > I was looking at an in-house code base today, and the author seems to have a > rather idiosyncratic approach to Python. For example: > > > for k, v in mydict.items(): > del(k) > ... > > > instead of the more obvious > > for v in mydict.values(): > ... > > > > What are your favorite not-wrong-just-weird Python moments? > > > > -- > Steve
I used to work with a guy that would put the verb at the END of a function name, rather than the beginning. For example, rather then "GetSupportedVersion", he'd use "SupportedVersionGet". Of course, I know plenty of people here will say it should be "get_supported_version", but that's another discussion entirely. Another guy would frequently use "Grab" instead of "Get". The fact that he used a different verb than the common convention though wasn't NEARLY as infuriating as the fact that he was inconsistent about it. -- https://mail.python.org/mailman/listinfo/python-list