Python for system administrators (developerWorks)
Python for system administrators (developerWorks)
Posted Sep 6, 2007 1:07 UTC (Thu) by yodermk (subscriber, #3803)In reply to: Python for system administrators (developerWorks) by sholdowa
Parent article: Python for system administrators (developerWorks)
Python code is a *lot* prettier and more readable than PHP, and generally more fun to work with.
You can also do websites in Python via mod_python. (I haven't used it for anything serious yet but I already know I would rather use it than PHP for a new site.)
Posted Sep 6, 2007 2:32 UTC (Thu)
by albeady (guest, #47183)
[Link] (1 responses)
Posted Sep 6, 2007 9:58 UTC (Thu)
by flewellyn (subscriber, #5047)
[Link]
Visibility is not properly a function of the object system. Python solves this problem the way
other languages have solved it, properly: with a package system. The fact that Python objects
don't limit access the way they do in Java and PHP just means that they aren't broken.
p>
The fact that packages handle visibility in Python, instead of objects, also means that you
can control visibility for non-OO constructs, like functions and variables, without having to resort
to nonsense like container packages and "static methods".
Python for system administrators (developerWorks)
Python code is a *lot* prettier and more readable than PHP, and generally more fun to work with.
Could you elaborate on that further please?
I've dabbled with both and I see Python's OOP semantics as fairly broken in comparison to PHP 5's (no real visibility modifiers, etc.)
Python for system administrators (developerWorks)