Python: Don't program Python like Java

At there's an article that talks about an experience he had with a large program that was written by Java developers. He notes that the program suffered from not being very Pythonic. Some interesting points:
  • Don't write getters and setters. When you need it use the property() function.
  • If you needs a switch statement use a dictionary, not if,elif.


Popular posts from this blog

Shortest Sudoku solver in Python

Seven Segment Display in Inkscape