Berry Schoenmakers <l.a.m.schoenmak...@tue.nl> added the comment: There seems to be a slight mixup with the built-in pow() function in Python 3.8.2.
Currently, under https://docs.python.org/3/library/functions.html#pow it says: Changed in version 3.9: Allow keyword arguments. Formerly, only positional arguments were supported. I think this should be into "Changed in version 3.8 ... ", as pow(3,4, mod=5) actually works in Python 3.8.2. The "What’s New In Python 3.8" also needs to be changed accordingly. In https://docs.python.org/3/whatsnew/3.8.html#positional-only-parameters it says: One use case for this notation is that it allows pure Python functions to fully emulate behaviors of existing C coded functions. For example, the built-in pow() function does not accept keyword arguments: def pow(x, y, z=None, /): "Emulate the built in pow() function" r = x ** y return r if z is None else r%z This example can simply be dropped now. ---------- nosy: +lschoe _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38237> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com