Behold the beauty of Python

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Behold the beauty of Python

Post by patrikG »

I've been following Python on and off - every script I've seen is simply beautiful in its code-layout, simplicity, and above all, it's understandability. (Not surprising as indentation is part of Python's syntax. So one wrong indentation and you will get an error).

One example (which uses a tiny Python scriptlet):

http://lnx1.blue-fox.com/~dpopowich/mpstutorial/index

Click on View Source to see what parameters this HTML-renderer gets.

Ah, beauty in simplicity. :)
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

no ->

Post by phpScott »

you mean that you can reference objects and the like with dot notation like everybody else and not have to -> wow that is amazing.
Having indetation as part of the synatx would drive me bonkers as I have a hard enough time remebering my own indetation rules without having to worry about it being syntax.

That would almost seem like a syn. ha, ha get it a syn like as in sin, you know like doing bad stuff,

sorry being dealing with annoying php issues all day and a little distraction was too much for the brain.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Re: no ->

Post by patrikG »

phpScott wrote:sorry being dealing with annoying php issues all day and a little distraction was too much for the brain.
I know the feeling :)
Post Reply