Python! Thoughts?

Thread Solved

Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Python! Thoughts?

 
0
  #1
Mar 28th, 2004
Thanks to Dani for adding Python to the scripting languages category!

...I haven't heard many people mention Python around here... Am I the only Python fan here? I know its usage isn't as widespread as Perl, but it is, IMHO, as powerful and useful as Perl, for general scripting, web scripting, and for administration.

I'm not up on the intracacies (sp?) of Python, but I'd like to hear some opinions from those of you who have used it, work with it, or heard some guy talking about it once. So far, I've found it to be a really fun, flexible scripting language, and I've been able to do some pretty nifty little tasks with Python that would have taken a little more time to do in say, a shell script.

Opinions, anyone?
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 219
Reputation: BountyX is an unknown quantity at this point 
Solved Threads: 8
BountyX's Avatar
BountyX BountyX is offline Offline
Code Guru

Re: Python! Thoughts?

 
0
  #2
Mar 28th, 2004
hmm i dont really know much about phython care to educate me?
A Hacker's Mind:
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes..." - J.D.Salinger
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Python! Thoughts?

 
0
  #3
Mar 28th, 2004
www.python.org

...That's all you need to know. It's object-oriented, it's extensible, it has a really clean syntax, and it's a really fun language to program in. It can pretty much do everything Perl does, and it has some neat features. It's interpreted/compiled like Java (ala bytecode), and it has C integration. Because of the way it's compiled at runtime, you can make binary executables and distribute them, so people who don't have a Python installation to run a program written in it.

If you check out the website, you'll see even more. It's a great language for prototyping small programs, or just quickly developing a program.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 59
Reputation: twilli227 is an unknown quantity at this point 
Solved Threads: 1
twilli227 twilli227 is offline Offline
Junior Poster in Training

Re: Python! Thoughts?

 
0
  #4
Apr 17th, 2004
alc6379, I was starting to learn python. I am working my way towards LPI 1, and was looking through 1 & 2. I found in topic 213, you have to be able to write simple perl scripts and install Perl modules from CPAN. So now I will have to start learning perl and come back later to python.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 11
Reputation: Jon Pierce is an unknown quantity at this point 
Solved Threads: 1
Jon Pierce Jon Pierce is offline Offline
Newbie Poster

Re: Python! Thoughts?

 
0
  #5
Jul 25th, 2004
Python is my absolute favorite language - the holy grail language I've been looking for all these years.

I'm a 'language collector' who's tried dozens of languages from Basic to assembly to C to C++ to Perl to PHP to Java to Scheme, and whenever I need to get something done, I end up doing it in Python because it's just so damn easy and fast to do it there.

It particularly excels at the tasks where you would use Perl for - not as succint but far far more readable and maintainable as well as offering at least as much power as Perl if not moreso.

Vis-a-vis PHP, there are Python HTML-embedded solutions (I found Spyce - http://spyce.sf.net the best and most PHP-like) which by dint of the languages's superior syntax would be much preferable over PHP except for the fact that few third-party hosting solutions offer it.

Python's DB-API has excellent support for RDBMS backends and definitely on par with PHP and Perl in this aspect.

One Python weakness is that it's not that good yet for doing GUI and graphics apps. I'm still not satisfied with the wxPython, PyGtk, Tkinter GUI frameworks. Pygame (www.pygame.org) absolutely rocks for 2d game development but OpenGL support is still at 1.2 - perfect for learning OpenGL but not for taking advantage of the latest features.

Python just makes everything so easy that once you try out a very high level language like it, you will just find it ridiculous to go back to C or C++.

The following page talks about what Python has to offer:

http://www.netasia.net/users/troll/Scripting1.htm
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Python! Thoughts?

 
0
  #6
Aug 9th, 2004
Great links, thanks, Jon!
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 35
Reputation: serfurj is an unknown quantity at this point 
Solved Threads: 2
serfurj's Avatar
serfurj serfurj is offline Offline
Light Poster

Re: Python! Thoughts?

 
0
  #7
Dec 22nd, 2004
Originally Posted by alc6379
Because of the way it's compiled at runtime, you can make binary executables and distribute them, so people who don't have a Python installation to run a program written in it.
i didn't know that. are you sure??
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Python! Thoughts?

 
0
  #8
Jan 4th, 2005
Originally Posted by serfurj
i didn't know that. are you sure??
I'm pretty sure. I've done it before in fact. I can't remember the exact steps off-hand, but you have a few stages that you can work with Python scripts. Once of those ways involved making an executable that contained all the code from the Python interpreter that the bytecode needed to run. If I remember to, I'll pull out one of my Python books and figure out again how it was done.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 3,941
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 911
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Python! Thoughts?

 
0
  #9
Mar 14th, 2005
Originally Posted by serfurj
i didn't know that. are you sure??
It's called Py2Exe and it is a free download like most of the Python goodies.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,144
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Python! Thoughts?

 
0
  #10
Mar 15th, 2005
I've looked at it and liked what I saw. But as I'm working fulltime in Java and that's a large enough field to keep me busy I've little time to do much more.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC