[issue33900] collections.counter update method without argument gives misleading error

2018-06-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Okay, got it. Sorry for the noise. Closing it. Thanks -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue33900] collections.counter update method without argument gives misleading error

2018-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This error is correct. It is the same as for dict.update. >>> dict.update() Traceback (most recent call last): File "", line 1, in TypeError: descriptor 'update' of 'dict' object needs an argument Perhaps you missed the difference between a descriptor

[issue33900] collections.counter update method without argument gives misleading error

2018-06-19 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : There was a change made in collections.Counter that made it accept self as the first parameter and hence while doing *args in the method signature args[0] is always set as the self. Hence the check for `not args` becomes a no-op during