Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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:
  #1  
Old June 3rd, 2003, 08:09 AM
vb.net vb.net is offline
Demonic Swordsman DGQB
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Apr 2003
Posts: 1,043 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 23 h 3 m 53 sec
Reputation Power: 82
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: 11
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: 513 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 38 m 37 sec
Reputation Power: 13
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: 11
[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: 513 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 38 m 37 sec
Reputation Power: 13
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

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap