Re: [Info] PEP 308 accepted - new conditional expressions



Richie Hindle <rjh@xxxxxxxxxxxxxxxx> writes:
> Yes. From Guido's announcement at
> http://mail.python.org/pipermail/python-dev/2005-September/056846.html:
> > The syntax will be
> > A if C else B

Wow, I thought this was a prank at first. Congratulations to Guido.
I think the introduction of list and sequence comprehensions made the
absence of a conditional construct felt even more strongly than
before, for those of us who program in this style.
.



Relevant Pages

  • Re: python and macros (again) [Was: python3: where keyword]
    ... Antoon Pardon wrote: ... > as an argument in a call are also semantic difference, ... >>Note that it would be perfectly possible to modify the syntax into ... > But that was not the implication of what Guido supposedly had said. ...
    (comp.lang.python)
  • Re: Guidos new method definition idea
    ... himself acknowledged that an alternative syntax makes perfect sense ... syntax will be syntactic sugar for the old one. ... def self.method(arg): ... As pointed out by Guido classmethods would ...
    (comp.lang.python)
  • Re: python-dev Summary for 2004-08-01 through 2004-08-15
    ... [SNIP - me going on about how I had wished Guido just pronounced on ... The '@' syntax had pretty much been discussed the whole time. ... scream about it (I check my python-dev mail before python-checkins so ... Had decorators ...
    (comp.lang.python)
  • Re: decorator syntax polling suggestion
    ... current decorator syntax is the best option. ... So if Guido does want to pay attention to the opinions of Python users ... Guido has rejected all alternative syntaxes ... so the decorators will likely stay as is. ...
    (comp.lang.python)
  • Re: PEP: Specialization Syntax
    ... Guido also posted this multimethods solution: ... and regenerate a whole new python interpreter that interprets new syntax. ... Bengt Richter ...
    (comp.lang.python)