| | |
Python! Thoughts?
Thread Solved |
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?
...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
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.
...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
•
•
Join Date: Dec 2003
Posts: 59
Reputation:
Solved Threads: 1
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.
•
•
Join Date: Jul 2004
Posts: 11
Reputation:
Solved Threads: 1
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
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
•
•
•
•
Originally Posted by serfurj
i didn't know that. are you sure??
Alex Cavnar, aka alc6379
![]() |
Other Threads in the Python Forum
- Previous Thread: wxWidget layers
- Next Thread: reading ascii value fails
| Thread Tools | Search this Thread |
alarm anydbm app beginner cipher cmd conversion coordinates corners curves cx-freeze data decimals definedlines development dictionary directory dynamic error events excel feet file float format function generator getvalue halp handling homework http import input ip itunes keycontrol leftmouse line linux list lists loan loop maintain maze millimeter module mouse number numbers output parsing path prime programming push py2exe pygame pymailer python queue random rational raw_input recursion recursive schedule screensaverloopinactive script searchingfile slicenotation split sqlite ssh string strings sudokusolver text threading time tlapse tooltip tuple tutorial type ubuntu unicode url urllib urllib2 variable variables ventrilo vigenere web webservice wikipedia wxpython xlwt






