Welcome to WebmasterWorld Guest from 54.161.201.189

Forum Moderators: bakedjake

Python, what makes you use it?

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

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



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 Sep 1, 2002 (gmt 0)

10+ Year Member



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 Sep 1, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

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



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 Sep 1, 2002 (gmt 0)

10+ Year Member



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 Sep 2, 2002 (gmt 0)

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



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 Sep 2, 2002 (gmt 0)

10+ Year Member



>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 Sep 6, 2002 (gmt 0)

10+ Year Member



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

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month