What's the proper style for a library string function?

Ian Kelly ian.g.kelly at gmail.com
Sat Jul 19 15:00:23 EDT 2014


On Sat, Jul 19, 2014 at 12:52 PM, C.D. Reimer <chris at cdreimer.com> wrote:
> I've seen code samples for simple functions with the definition and return
> statements written on one line.

Personally, I use this style sometimes for easily understood one-line
if statements or loops. Named functions consist of an interface
declaration and an implementation, and those should be visually
separated by a newline.



More information about the Python-list mailing list