A Bug By Any Other Name ...
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Mon Jul 13 07:39:34 EDT 2009
In message <4a538a71$0$30236$9b4e6d93 at newsspool1.arcor-online.net>, Stefan
Behnel wrote:
> Lawrence D'Oliveiro wrote:
>>
>> I wonder how many people have been tripped up by the fact that
>>
>> ++n
>>
>> and
>>
>> --n
>>
>> fail silently for numeric-valued n.
>
> I doubt that there are many. Plus, you misspelled them from the more
> obvious
>
> n++
>
> and
>
> n--
>
> which *do* fail with a SyntaxError.
Funny, you accuse me of "misspelling", when it's _your_ version that fails
with errors!
More information about the Python-list
mailing list