I suspected it was a ternary type of operator, but was unable to
confirm it. And I didn't realize it was new to 2.5. Perfectly clear
now. :)
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Dec 13, 2007 at 04:57:04PM +0100, Remco Gerlich wrote regarding Re:
Question from a python newbie:
>
>On Dec 13, 2007 4:39 PM, Russell <[EMAIL PROTECTED]> wrote:
>
> I've been learning Python slowly for a few months, coming from a
> C/C+
>
On Dec 13, 2007 4:39 PM, Russell <[EMAIL PROTECTED]> wrote:
> I've been learning Python slowly for a few months, coming from a C/C+
> +, C#, Java, PHP background. I ran across a code fragment I'm having
> trouble wrapping my brain around. I've searched the Language
> Reference and was not able t
Russell <[EMAIL PROTECTED]> wrote:
> I've searched the Language
> Reference and was not able to find any info regarding the structure of
> this code fragment:
>
> int(text) if text.isdigit() else text
http://docs.python.org/whatsnew/pep-308.html
--
http://mail.python.org/mailman/listinfo/pytho