DEV Community

Is there a limit to the number of arguments a function can have in Python ?

DDSRY on August 29, 2020

▪ It depends on the version of Python and the computer you are using, but it is fairly large.

▪ The practical limit, though, is about five arguments before the function becomes
annoying to use.

Collapse
 
pentacular profile image
pentacular

In cpython (the implementation most people use), prior to version 3.7, the limit is 255.

Collapse
 
ddsry21 profile image
DDSRY

Thanks for your reply✌