Re: python idioms : some are confusing

2012-09-20 Thread Steven D'Aprano
On Thu, 20 Sep 2012 22:52:45 -0700, alex23 wrote: > On Sep 21, 3:34 pm, Vineet wrote: >> Amongst the python idioms, how the below-mentioned make sense? ## There >> should be one-- and preferably only one --obvious way to do it. --- In >> programming, there can be a number of ways, equally efficie

Re: python idioms : some are confusing

2012-09-20 Thread Steven D'Aprano
On Thu, 20 Sep 2012 22:34:48 -0700, Vineet wrote: > Amongst the python idioms, how the below-mentioned make sense? They're not Python idioms. Idioms are common pieces of code, like looping: for item in sequence: do_something What you have quoted are parts of the Zen of Python, which is del

Re: python idioms : some are confusing

2012-09-20 Thread Vineet
Oh I see ! On these lines mentioned by you, I can now sense the sense. Thanks. On Friday, 21 September 2012 11:22:45 UTC+5:30, alex23 wrote: > On Sep 21, 3:34 pm, Vineet wrote: > > > Amongst the python idioms, how the below-mentioned make sense? > > > ## There should be one-- and preferably on

Re: python idioms : some are confusing

2012-09-20 Thread Chris Angelico
I'm responding to the OP here, not to Alex, but I'm quoting his text to expand on it. :) On Fri, Sep 21, 2012 at 3:52 PM, alex23 wrote: > On Sep 21, 3:34 pm, Vineet wrote: >> Amongst the python idioms, how the below-mentioned make sense? >> ## There should be one-- and preferably only one --obvi

Re: python idioms : some are confusing

2012-09-20 Thread Chris Rebert
On Thu, Sep 20, 2012 at 10:34 PM, Vineet wrote: > Amongst the python idioms, how the below-mentioned make sense? These aren't idioms (that term has a specific technical meaning in programming); they're *way* too abstract to be idioms. "Design principles" or "design guidelines" would be a better d

Re: python idioms : some are confusing

2012-09-20 Thread alex23
On Sep 21, 3:34 pm, Vineet wrote: > Amongst the python idioms, how the below-mentioned make sense? > ## There should be one-- and preferably only one --obvious way to do it. > --- In programming, there can be a number of ways, equally efficient, to do > certain  thing. This isn't talking about y

python idioms : some are confusing

2012-09-20 Thread Vineet
Amongst the python idioms, how the below-mentioned make sense? ## There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. --- In programming, there can be a number of ways, equally efficient, to do certain thing.