This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients amaury.forgeotdarc, eric.smith, mark.dickinson, pitrou, rhettinger, stutzbach
Date 2010-10-07.21:04:01
SpamBayes Score 0.00083394756
Marked as misclassified No
Message-id <>
> I can't say anything about the standard, but p > q looks like it should
> be the same as (p - q) > 0


> which looks rather well-defined for pointers.

Nope.  It's only well-defined for pointers pointing into the same array (or to one past the end of an array).  Otherwise it's undefined behaviour.

See section 6.5.6, paragraph 9, of
Date User Action Args
2010-10-07 21:04:03mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, amaury.forgeotdarc, pitrou, eric.smith, stutzbach
2010-10-07 21:04:02mark.dickinsonsetmessageid: <>
2010-10-07 21:04:01mark.dickinsonlinkissue10044 messages
2010-10-07 21:04:01mark.dickinsoncreate