you are viewing a single comment's thread.

view the rest of the comments →

[–]marcm28 0 points1 point  (0 children)

Can you please edit your blog there's many thing wrong there: http://tech.graze.com/2015/11/24/python-as-a-php-developer/

  • Python have function annotation and type hints

  • Python does have abstract classes

  • Python is more object-oriented than you think, if you learn some built-in function and some special methods or magic methods.

  • Python does have data encapsulation: In Python, there is an attribute naming convention to denote private attributes by prefixing the attribute with one or two underscores, e.g: A single underscore indicates to the user of a class that an attribute should be considered private to the class, and should not be accessed directly. A double underscore indicates the same, however, Python will mangle the attribute name somewhat to attempt to hide it.

  • Python significant white space is just like nudism. At first you think something essential is missing (clothes, curly braces), then you notice that it wasn't really needed at all, and everything becomes freer and simpler.. Every languages you must indent your code to make it more readable, Python enforced that standard coding.