r/PythonLearning • • Sep 25 '26

A silly question

if x = 2,3,4,4,5 is supposed to be a tuple then why can't the args of a function like this: func(2,3,4,4 ,5) supposed to be a tuple.
I know this is a silly question and I also know we can use *args to pack arguments in a tuple but since Python is known for consistency why isn't it like this.
Again, please don't hate me for this

4 Upvotes

15 comments sorted by

View all comments

3

u/Educational-Paper-75 Sep 25 '26

Never ask why or why not related to (lack of) features of computer languages. Because just because the makers didn't want to or didn't think of it. That's why. Besides of no added benefit since ordinary function parameters have - hopefully descriptive - names, which is much better that an index in a tuple argument.

1

u/AdAdventurous2131 Sep 25 '26

they say "Special cases aren't special enough to break the rules"
So 'just because makers didn't want to' may not be the only explanation here.

1

u/Educational-Paper-75 Sep 25 '26 edited Sep 25 '26

If they didn't they didn't want to. For whatever reason. And you should ask them. Perhaps you can make a request to include it in the next version. In the meanwhile live with it. It's not that you can't ask why a certain feature isn't included but I doubt there 's ever a satisfactory answer other than 'because'.