Inline Conditionals?

Michael Hudson mwh at python.net
Wed Aug 25 07:27:20 EDT 2004


Joshua Ginsberg <joshg at brainstorminternet.net> writes:

> Is there any plan to include inline conditionals in Python? For example:
> 
> def isNegative(x):
> 	return x < 0 ? True : False

Read PEP 308, and note that this was probably the largest flamewar in
Python history (well, before the still-ongoing decorators
discussion...).

But to answer your question: no.

Cheers,
mwh

-- 
  Linux: Horse. Like a wild horse, fun to ride. Also prone to
  throwing you and stamping you into the ground because it doesn't
  like your socks.         -- Jim's pedigree of operating systems, asr



More information about the Python-list mailing list