Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old June 3rd, 2003, 08:09 AM
vb.net vb.net is offline
Demonic Swordsman DGQB
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Posts: 995 vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 12 h 38 m 28 sec
Reputation Power: 76
General Python question

Can Python scripts be used to manipulate text files (like Perl) and be executable in UNIX?

Reply With Quote
  #2  
Old June 3rd, 2003, 09:03 AM
lazy_yogi lazy_yogi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 325 lazy_yogi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 58 m 36 sec
Reputation Power: 6
yes.

perl is better for text manipulation than python.

Python, however is better for application development, and anything where a script over 100 lines is needed, since perl scrips over 100 lines are pretty much unreadable unless you wrote it urself.

Reply With Quote
  #3  
Old June 6th, 2003, 06:03 PM
telex4's Avatar
telex4 telex4 is offline
Wacky hack
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 512 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 29 sec
Reputation Power: 8
lazy_yogi, that's not necessarily true. If you're a good programmer, you're strict about how you lay out and comment your code, and you write clear code without too many crazy hacks, Perl is no more difficult to read than Python. It's just that Python forces you to write clear code

Reply With Quote
  #4  
Old June 6th, 2003, 07:41 PM
lazy_yogi lazy_yogi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 325 lazy_yogi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 58 m 36 sec
Reputation Power: 6
[QUOTE]
If you're a good programmer, you're strict about how you lay out and comment your code, and you write clear code without too many crazy hacks, Perl is no more difficult to read than Python.It's just that Python forces you to write clear code


umm ... that's true as far as layout goes.

But, in perl there is many, MANY ways to accomplish most tasks. So when reading someone elses code, they likely did it very differently to you. Unless you know every way to do everything in perl, it's likely you'll be lost most of the time when dealing with other people's code. In python (same as ruby) there's one way to do everything, so once you see a piece of code, you kow whta it does.

Eli

Reply With Quote
  #5  
Old June 7th, 2003, 11:55 AM
telex4's Avatar
telex4 telex4 is offline
Wacky hack
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 512 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 29 sec
Reputation Power: 8
No, I think it applies to the code itself as well as the layout. You can write truly crazy code with lots of clever little hacks in, or you can write clear, by-the book code. So long as you write it well, it should be no harder to understand than Python.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > General Python question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway