943,342 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Marked Solved
  • Views: 6629
  • Python RSS
You are currently viewing page 1 of this multi-page discussion thread
Mar 28th, 2004
0

Python! Thoughts?

Expand Post »
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?
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Mar 28th, 2004
0

Re: Python! Thoughts?

hmm i dont really know much about phython care to educate me?
Reputation Points: 28
Solved Threads: 9
Posting Whiz in Training
BountyX is offline Offline
222 posts
since Mar 2004
Mar 28th, 2004
0

Re: Python! Thoughts?

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.
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Apr 17th, 2004
0

Re: Python! Thoughts?

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.
Reputation Points: 56
Solved Threads: 1
Junior Poster in Training
twilli227 is offline Offline
59 posts
since Dec 2003
Jul 25th, 2004
0

Re: Python! Thoughts?

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
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Jon Pierce is offline Offline
11 posts
since Jul 2004
Aug 9th, 2004
0

Re: Python! Thoughts?

Great links, thanks, Jon!
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Dec 22nd, 2004
0

Re: Python! Thoughts?

Quote 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??
Reputation Points: 32
Solved Threads: 2
Light Poster
serfurj is offline Offline
35 posts
since Dec 2004
Jan 4th, 2005
0

Re: Python! Thoughts?

Quote 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.
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Mar 14th, 2005
0

Re: Python! Thoughts?

Quote 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.
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Mar 15th, 2005
0

Re: Python! Thoughts?

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: wxWidget layers
Next Thread in Python Forum Timeline: reading ascii value fails





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC