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 serhiy.storchaka
Recipients SilentGhost, SimonFr, brett.cannon, larry, serhiy.storchaka
Date 2016-01-17.15:00:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This looks as unintentional consequences of ab0221811771.

I think the current behavior of grp.getgrgid() is not correct, because it accepts str, float and other types. Python is strong-typed language and shouldn't make unwanted implicit type conversions. I guess the purpose was to support long arguments in Python 2.

There is similar problem with grp.getgrnam() in 2.7. It accepts arguments of any types and convert them to str by calling str(). I guess the purpose was to support unicode arguments. In 3.x only str is accepted.

Proposed patch deprecates accepting non-integer arguments in grp.getgrgid(). May be we can just remove this without starting deprecating process. I don't know.
Date User Action Args
2016-01-17 15:00:26serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, larry, SilentGhost, SimonFr
2016-01-17 15:00:26serhiy.storchakasetmessageid: <>
2016-01-17 15:00:26serhiy.storchakalinkissue26129 messages
2016-01-17 15:00:25serhiy.storchakacreate