[Python-Dev] Adding a conditional expression in Py3.0 (original) (raw)
Edward C. Jones edcjones at comcast.net
Thu Sep 29 18:00:08 CEST 2005
- Previous message: [Python-Dev] 64-bit bytecode compatibility (was Re: [PEAK] ez_setup on 64-bit linux problem)
- Next message: [Python-Dev] 64-bit bytecode compatibility (was Re: [PEAK] ez_setup on 64-bit linux problem)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum wrote:
file = os.path.abspath(file) if file else '?' ...
These are all unreadable. In C "a ? b : c" is not used very often. A quick check of the Python source found 476 occurences.
-1 to conditional expressions.
- Previous message: [Python-Dev] 64-bit bytecode compatibility (was Re: [PEAK] ez_setup on 64-bit linux problem)
- Next message: [Python-Dev] 64-bit bytecode compatibility (was Re: [PEAK] ez_setup on 64-bit linux problem)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]