Has Python Lost The Plot?


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Has Python Lost The Plot?
# 1  
Old 08-02-2014
Has Python Lost The Plot?

Not sure if this should be in the Programming forum so placed here for safety...

I used to really love Python, but as it has evolved from V1.4.0, (for the classic AMIGA in my case), to its present V3.4.? incarnation has it become less user friendly for newbie and amateur coders?

I have completely switched to shell scripting now because of its sheer flexibility, ease of use and unreal number of simple commands that can do seriously complex jobs.

So in your, (plural), opinions is Python TOO STRICT in its coding structure to be once again a language for programming simpletons, who know little of the jargon, like me...

For example, converting bytes to characters or print() as a function, etc, etc... It is SOOO easy to do with UNIX shell scripting and the choice of "printf" and "echo" with their respective idiosyncrasies is a bonus.

I look back to V1.4.0 to V2.0.1 for the MIGGY and think how easy it was to code but now it seems to be designed for the ultimate professional who knows all of the jargon associated with it.

I just love the idea that bash, for example, is SOOOO forgiving...

Comments welcome...

Last edited by Neo; 08-02-2014 at 07:23 AM.. Reason: Removed page breaks.. please be careful about formatting.
# 2  
Old 08-02-2014
I prefer PHP.... it's great.
# 3  
Old 08-05-2014
I haven't used Python yet.
Maybe it suffers from software bloat? Or creeping featurism?

# 4  
Old 08-05-2014
It has grown tremendously. It has become another Perl -- a language used not because people particularly like or need its features, but because "it's got a library for <something>". But it does have the advantage of not being Perl.

How many non-library files does a language need to open, to sit there and do nothing?

Code:
$ strace python /dev/null 2>&1 | grep "^open" | egrep -v 'ENOENT|[.]so' | wc -l
42

$ strace php /dev/null 2>&1 | grep "^open" | egrep -v 'ENOENT|[.]so' | wc -l
6

$ strace bash /dev/null 2>&1 | grep "^open" | egrep -v 'ENOENT|[.]so' | wc -l
5

$ strace perl /dev/null 2>&1 | grep "^open" | egrep -v 'ENOENT|[.]so' | wc -l
3

$ strace awk '{}' /dev/null 2>&1 | grep "^open" | egrep -v 'ENOENT|[.]so' | wc -l
3

$


Last edited by Corona688; 08-05-2014 at 02:16 PM..
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 08-05-2014
I see. I measured it takes 6 times longer to start python like this, compared to perl.
BTW one can use
Code:
strace -e open python /dev/null 2>&1 | egrep -vc 'ENOENT|[.]so'

This User Gave Thanks to MadeInGermany For This Post:
# 6  
Old 08-11-2014
Python doesn't seem to be that much slower than Perl for some select programs:
Python 3 vs Perl | Computer Language Benchmarks Game
or PHP:
Python 3 vs PHP | Computer Language Benchmarks Game
# 7  
Old 08-11-2014
We are talking about loading time, they are talking about performance, not quite the same thing.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

Learning python, lost with script

Hi there, im just having a hard time understanding why this code does not print anything that is suppose to print: score = raw_input ('what is your score? \n') try: if 1.0 == float(score) >= 0.9: print "A" elif 0.9 > float(score) >= 0.8: ... (1 Reply)
Discussion started by: la2015
1 Replies

2. Programming

R script - Print legend outside plot box

Can you please help ? My R script produced the attached graph. The legend is messy and I will want it outside the box (outside plotting area). How do I do this Part of the script for legend is shown below: par(new=TRUE) o=-log10(sort(d22$V1, decreasing=F)) e=-log10(ppoints(length(o)))... (0 Replies)
Discussion started by: fat
0 Replies

3. Shell Programming and Scripting

Plot python script output to file

Hi all, I`m trying to generate some plots using a python package named splicegrapher. I have access to a cluster which does not allow X11 forwarding and as a result I get RuntimeError: could not open display error when I use one of the plotting scripts (attached). How do I modify the script... (1 Reply)
Discussion started by: newbie83
1 Replies

4. UNIX for Dummies Questions & Answers

A Freebie Text Mode Plot, (Drawing), Function...

This is probably common knowledge to the big guns but this is for newbies... This is a demo using simple plot function using bash. In a default Terminal... It clears the window, sets the cursor to the top left hand corner, draws a triangle inside the window, writes a string inside the... (0 Replies)
Discussion started by: wisecracker
0 Replies

5. Shell Programming and Scripting

Shell output with plot a tree structure.

Hi All, i am in need of plotting graph ( tree structure ) depends upon my shell script output. For this requirement, what kind of open source avail in market. For example: (my script output will be like below ) Parent:A process-name:child-processes A:B,C B: D expecting... (1 Reply)
Discussion started by: ponmuthu
1 Replies

6. Shell Programming and Scripting

How to start working with GNU PLOT??

Dear Experts, I wanted to plot a graph with respect to values from a file. I'm doing it with Excel 2007, but I want to create the chart in script itself. I searched in internet for GNUPLOt. But I couldn't understand anything. Here is my situation. I have a file having values separated by "|".... (7 Replies)
Discussion started by: Naga06
7 Replies

7. Shell Programming and Scripting

How to plot graph using AWK or CSH?

Hi , i need to plot a x-y axis graph using AWK or CSH. Pls help. The data is as follows: 1 3 2 1 3 4 4 2 5 4 where 1st column refers to x-coordinate and 2nd column refers to y-coordinate. Note that x-coordinate may not be in sequence and the no of set of coordinates is unknown... (3 Replies)
Discussion started by: Raynon
3 Replies

8. Filesystems, Disks and Memory

Lost Data Lost Admin

First time so excuse my ignorance please. I may not be accurately describing the issue. I have inherited a small lab mostly SUN V120s. We lost power and are trying to recover. Nope no backups... The primary issue I have is 1 box is an Oracle Server. It has 2 36Gb harddrives. I am able to... (3 Replies)
Discussion started by: murphsr
3 Replies
Login or Register to Ask a Question