[Python-Dev] RE: [Python-checkins] python/dist/src/Objects listobject.c, 2.218, 2.219 (original) (raw)

Raymond Hettinger python at rcn.com
Mon Aug 2 19:11:49 CEST 2004


* complain about the unused name. */ ! return status, v; }

--- 863,867 ---- * complain about the unused name. */ ! return status++, v;

Does anyone else see this as perverse? I have to think hard about whether all the compilers are smart enough to optimize this away (probably, but maybe not). More importantly, it is obfuscated C and makes my stomach churn. This particular case introduces several lines for an assertion that is probably not worth the surrounding mess. Does anyone have a better way?

Raymond



More information about the Python-Dev mailing list