Re: properties vs. eval()

2005-05-07 Thread Jason Mobarak
Bob Rogers wrote: > So you're saying you don't know the answer? The question wasn't > "should I use setattr?" If what you're doing is wrong and backwards then it doesn't matter what the question is. Best practices are best practices for a reason. There's no reason to use eval to do what you want

Re: Python Pseudo-Switch

2005-05-07 Thread Jason Mobarak
James Stroud wrote: > Hello All, > > Because of my poorly designing a database, I have recently found it necessary > to explore the wonders of the Python pseudo-switch: > > do_case = { "A" : lambda x: x["bob"], > "B" : lambda x: x["carol"], > "C" : lambda x: "Ted", >

Re: New Python regex Doc

2005-05-07 Thread axel
In comp.lang.perl.misc Xah Lee <[EMAIL PROTECTED]> wrote: > Let me expose one another fucking incompetent part of Python doc, in > illustration of the Info Tech industry's masturbation and ignorant > nature. > Note the need to inject the high-brow jargon “greedy” here as a > latch on sentence.

Re: Newbie : checking semantics

2005-05-07 Thread John Machin
On 7 May 2005 15:05:20 -0700, "LDD" <[EMAIL PROTECTED]> wrote: >Hi everyone, > >I am new to python and was very enthustic about its possibilities when >I discover that python is really what it is : just a scripting >language. > >What disappoints me is that pyton will happily accept and execute thi

<    1   2