[Python-ideas] Possible PEP 380 tweak
Nick Coghlan
ncoghlan at gmail.com
Sun Oct 31 02:35:46 CEST 2010
On Sun, Oct 31, 2010 at 2:54 AM, Ron Adam <rrr at ronadam.com> wrote:
>> However, I think sentinel values are likely a better way to handle
>> this in a pure PEP 380 context.
>
> Sentinel values aren't always better because they require a extra comparison
> on each item.
Yep, Guido's example made me realise I was wrong on that front.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list