Message258472
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:26 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, larry, SilentGhost, SimonFr |
2016-01-17 15:00:26 | serhiy.storchaka | set | messageid: <1453042826.11.0.306235555275.issue26129@psf.upfronthosting.co.za> |
2016-01-17 15:00:26 | serhiy.storchaka | link | issue26129 messages |
2016-01-17 15:00:25 | serhiy.storchaka | create | |
|