Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > Python
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old July 21st, 2008, 03:04 PM
Authorized User
Join Date: Jan 2008
Location: , , .
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Why Python?

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.


Reply With Quote
  #2 (permalink)  
Old January 9th, 2009, 03:46 PM
Registered User
Join Date: Jan 2009
Posts: 8
Thanks: 1
Thanked 2 Times in 1 Post
Default 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.
Reply With Quote
The Following 2 Users Say Thank You to pagis For This Useful Post:
rexcampbell (March 15th, 2013)
  #3 (permalink)  
Old January 20th, 2010, 08:09 AM
Authorized User
Join Date: Jan 2010
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
Cool 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!
Reply With Quote
  #4 (permalink)  
Old December 13th, 2011, 05:14 AM
Registered User
Points: 9, Level: 1
Points: 9, Level: 1 Points: 9, Level: 1 Points: 9, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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.
Reply With Quote
  #5 (permalink)  
Old June 3rd, 2018, 07:00 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2016
Location: Mammendorf near Munich
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to Hellmut1956

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!
Reply With Quote
  #6 (permalink)  
Old June 4th, 2018, 03:47 AM
Registered User
Points: 15, Level: 1
Points: 15, Level: 1 Points: 15, Level: 1 Points: 15, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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 04:44 AM.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python code optimization icopec Python 2 December 13th, 2011 05:13 AM
python arafat.eajaz Other Programming Languages 0 July 18th, 2008 04:16 AM
Python book invite from someone here crmpicco Python 0 September 26th, 2007 06:17 PM

All times are GMT -4. The time now is 06:43 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.