Welcome to WebmasterWorld Guest from 23.20.215.116

Forum Moderators: bakedjake

Message Too Old, No Replies

Python, what makes you use it?

     
12:17 am on Aug 31, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:June 17, 2000
posts:2924
votes: 0


I know Bird is a python guy. Anyone else? What about one of you Google lurkers? I know the Google folks like Python.

What is it about Python that makes you use it instead of other scripting languages? It seems to be neck and neck with perl as far as execution time, though I've read some articles that claim that perl is slightly faster. Python seems to be a very procedural language, is that it's appeal?

From looking at the code it looks considerably different than C or perl code, would you say the syntax is easy to pick up?

Note: I put this in the *nix section instead of the scripting section because Python does not seem to be used much in cgi applications, though I may just be ignorant of this.

8:36 am on Sept 1, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Aug 3, 2002
posts:482
votes: 0


It has a very nice syntax, it also forces people into using coding standards like indentation.

I don't like Perl because you simply can't understand anything that has been written by somebody else.

8:48 am on Sept 1, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 27, 2001
posts:784
votes: 0


Python seems to me to be "cleaner" than Perl. Python was more "designed" while Perl kind of "grew"...
8:49 am on Sept 1, 2002 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:4843
votes: 2


It has a very nice syntax

Most definetely. I've been trying to pick up python,PHP,perl slowly, knowing they do similar things and although I've picked up a tad more of PHP - python seems very easy to learn and their documentation is excellent.

Hopefully this will "make me" use it :)

10:14 am on Sept 1, 2002 (gmt 0)

Full Member

10+ Year Member

joined:Mar 14, 2002
posts:325
votes: 0


It's very easy to extend an existing C app using Python, just create a struct defining the new functions, make up the C function that will correspond to the Python call, include a call to Py_Initialize() at main and you're done.

I has lots of libraries available, you can even create a gtk app without touching C code using the python-gtk module.

6:53 am on Sept 2, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:June 17, 2000
posts:2924
votes: 0


Thanks for the input guys. From what Iíve been reading it seems to come down to code quality and the ability of one python programmer to comprehend what the other is doing.

I thought this was an interesting link.
[python.org...]
Iím not ready to give up on perl, it took me long enough to lean it ;), but I might try to do a little python coding to see how I like it.

Duckula, Iíve been using ftpcube, which is a python/Gtk ftp client much like leechftp. Itís a nice high quality app, so I know the potential is there.

Perl also has access to the Gtk, but it looks a lot less developed than perl/TK. Or Python/Gtk.

9:28 am on Sept 2, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Aug 3, 2002
posts:482
votes: 0


>python seems very easy to learn and their documentation is excellent.

Nah, I think PHP's docs are a lot better. It's a lot easier to find something there.

8:22 am on Sept 6, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 4, 2000
posts:446
votes: 0


Has anyone tried Jython...? Its Python mixed with Java and boss whats me to use it. Personally I prefer Perl...