[Ilugc] Python list.reverse() [was: Re: [Fwd: [ilugcbe] Fifth Meeting Pics & Sri Shakthi Institute of Engineering and Technology updated in Open Street Map]]

  • From: lawgon@xxxxxxxxxxxxxxx (Kenneth Gonsalves)
  • Date: Fri, 18 Feb 2011 13:09:29 +0530

On Fri, 2011-02-18 at 13:01 +0530, openbala wrote:

cannot be - otherwise python would not use it ;-)

Well, to be fair to python, almost all documentations say that 'list'
is mutable and tuple should be used for immutability.
And just because a language uses a feature doesn't mean the feature is
a good practice. :)

for example python pep-008 lays down that try - except should be used
very sparingly and if used should encase the smallest possible block of
code. In this way one avoids swallowing up bugs. Whereas another
language insists on putting everything inside exception handlers. So
which is good practice.


I'm not against python or anything like that, no need to get religious
on this. ;-)

where is the fun if one is not religious?

-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/


Other related posts: