Re: Creating a local variable scope.

2009-12-09 Thread rwwh
On Nov 30, 1:26 am, markolopa wrote: > I would be much happier with the smaller namespace. To fix the code > that you show I would impose > > s = None > while True: >      s = raw_input("enter something: ") >      if s not in ('q', 'quit', 'exit'): break > print s So you propose: if the variable

Re: A Bug By Any Other Name ...

2009-07-16 Thread rwwh
On Jul 7, 2:00 pm, Steven D'Aprano wrote: > On Mon, 06 Jul 2009 22:18:20 -0700, Chris Rebert wrote: > >> Not so rare. Decimal uses unary plus. Don't assume +x is a no-op. > [...] > > Well, yes, but when would you apply it twice in a row? > > My point was that unary + isn't a no-op, and therefore n