Quantcast
Channel: Python Notes
Viewing all articles
Browse latest Browse all 25

A curious remark about code structure in Python

$
0
0
Python never ceases to surprise me. Today I noticed something really simple; it's one of those things that can go on unnoticed for ages, but make the code read better. When coding in several other languages -- C, C or Delphi -- there's the need to declare things before using them. As a consequence, class declarations tend to be organized to satisfy this restriction (of course, there are

Viewing all articles
Browse latest Browse all 25

Trending Articles