 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Python section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

July 21st, 2008, 02:04 PM
|
|
Authorized User
|
|
Join Date: Jan 2008
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Why Python?
Hello,
Why to use an interpreted scripting language while we have some very powerful languages like C++,C# and Java.Are there any advantages to use such a language over C++ and Java? Do people prefer such a language because it is easy and fast to use?Please give me some information about the topic.
Thanks.
|
|

January 9th, 2009, 03:46 PM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 8
Thanks: 1
Thanked 2 Times in 1 Post
|
|
Use what you need
Each language has advantages and disadvantages.
Java and .NET are managed and have a large framework (and differ from each other in the framework so one would be better with some things).
C++ gives you much greater control but is still OO, C and assembler gives you the ultimate control.
Python has many advantages:
It's short - many things that you will write in python will require something like 50% of the code lines the same thing written in Java and even better ration compared to C++
It's flexable - the fact that everything is an object, the fact that it's nontyped, the fact that you can write script-like code but you can also write OO code and you can combine script-like with OO code all these give flexibility. Togther with many little things like yield statements you get greate flexability.
Managed but not restricted - While python is 100% managed with a garbage collector unlike Java you get full access to everything you need. You can point to a function, change code on runtime and do many more things.
Python is very easy to learn so if you feel like checking it out you can see if you find advantages. Otherwise just play around with it a bit to know it and see its advantages and learn it if and when you have a project you think python will be better for than other langauges.
|
|
The Following 2 Users Say Thank You to pagis For This Useful Post:
|
|
|

January 20th, 2010, 08:09 AM
|
|
Authorized User
|
|
Join Date: Jan 2010
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
I asked myself the same question
I'm interested in taking CS classes and wondered why they taught python in the first two classes. I was closed minded and thought that since I already learned C++ I was ahead of the class, but what I'm doing is learning the python language ahead of time so I can just clep it!
|
|

December 13th, 2011, 05:14 AM
|
|
Registered User
|
|
Join Date: Dec 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
My hour long Python talk for GR Dev Day has been accepted. As you can
see, I left myself a lot of wiggle room in the description:
"Python: The Language for Everything:
Why is Python the most awesome language? Because it's powerful but
easy to learn, it comes with batteries included, and you can use it
anywhere for just about anything. You can use the same code on Linux,
OSX, Windows, and even your Android phone. When you know Python,
maintenance scripts, easy GUIs, and **************** web sites are all at your
fingertips. Come see what Python can do for you!"
GR Dev Day was formerly known as Day of DotNet, and I suspect it will
still largely be DotNet developers. I'd like to give these folks an
introduction that will appeal to them, so how about throwing some
ideas out here? I'm especially keen to here from those of you that
also use DotNet technologies.
|
|

June 3rd, 2018, 06:00 PM
|
|
Registered User
|
|
Join Date: Jan 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Python is a scripting language, but its instruction sets, its packages, modules, libraries offer a wealth of functionality. But when time or memory space critical you can mix Python and assembler, C and any other programming language! If you are familiar with object oriented programming you understand that using objects in Python that were made using C++ or other languages Python becomes at least a powerful glue of objects.
If you add "MicroPython", an implementation of Python for embedded controllers, you can see how powerful and useful Python can be! I am 61 years old and I started programming assembler on the MC6809, so in those days an interpreted language was really a slow path. The MC6809 from Motorola was clocked with 1 MHz, the mass storage was a tape from a dictation device and we were fascinated how much data and code we could store!
|
|

June 4th, 2018, 02:47 AM
|
|
Registered User
|
|
Join Date: May 2018
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Python is a high-level, interpreted and general-purpose dynamic programming language that focuses on code readability. The syntax in Python helps the programmers to do coding in fewer steps as compared to Java or C++.
The Python is widely used in bigger organizations because of its multiple programming paradigms
Last edited by damponting44; June 4th, 2018 at 03:44 AM..
|
|

February 15th, 2019, 02:30 AM
|
|
Registered User
|
|
Join Date: Feb 2019
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Why Python?
Great Information..I am also beginner in this
|
|
 |