Skip to content

Commit

Permalink
pythongh-82180: Document support for non-integer arg removed from grp…
Browse files Browse the repository at this point in the history
….getgrgid in 3.10 (pythonGH-95346)

(cherry picked from commit 50bf5fa)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
hugovk authored and miss-islington committed Aug 12, 2022
1 parent 5cc3964 commit 80d9f95
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Doc/library/grp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ It defines the following items:
Return the group database entry for the given numeric group ID. :exc:`KeyError`
is raised if the entry asked for cannot be found.

.. deprecated:: 3.6
Since Python 3.6 the support of non-integer arguments like floats or
strings in :func:`getgrgid` is deprecated.
.. versionchanged:: 3.10
:exc:`TypeError` is raised for non-integer arguments like floats or strings.

.. function:: getgrnam(name)

Expand Down

0 comments on commit 80d9f95

Please sign in to comment.