Conditional operator in Python?
Michael Abbott
michael at rcp.co.uk
Wed Sep 5 03:33:27 EDT 2001
More information about the Python-list mailing list
Wed Sep 5 03:33:27 EDT 2001
- Previous message (by thread): Conditional operator in Python?
- Next message (by thread): Conditional operator in Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> wrote in news:slrn9p9um0.63g.qrczak at qrnik.zagroda: > Tue, 04 Sep 2001 08:15:12 -0700, Erik Max Francis <max at alcyone.com> > pisze: (Actually, this is my proposal; I already suggested this about a month ago, for what it's worth.) >>> I think (though it would need a bit of careful checking) that >>> there is no conflict with the existing Python syntax in making >>> >>> if <expr> then <expr> else <expr> >>> >>> an expression. >>> >>> Perhaps adding this to the syntax could be a PEP? > > The biggest problem is that 'then' is not currently a keyword. Ah, yes, I missed that difficulty. Hmm. Well, what's another keyword, eh? :( > > (Or maybe a larger problem is opposition of some people which decide > or are respected in such issues...) Is it opposition or indifference in this case?
- Previous message (by thread): Conditional operator in Python?
- Next message (by thread): Conditional operator in Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list