[issue44670] bug on showing tuple on console

2021-07-18 Thread Zachary Ware
Zachary Ware added the comment: As Dennis said, this isn't a bug. Try printing `b` and `c` as well, and you'll find 3 and 4. -- nosy: +zach.ware resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44670] bug on showing tuple on console

2021-07-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: I don't know what behavior you were expecting, but *args means "the rest of the positional arguments", not "all of the positional arguments." See https://docs.python.org/3/tutorial/controlflow.html?highlight=variadic#arbitrary-argument-lists -- nosy

[issue44670] bug on showing tuple on console

2021-07-18 Thread Toby Spooner
New submission from Toby Spooner : def func(a,b,c , *args , **kwargs): print(a) print(args) print(kwargs) func(2,3,4,5,Carlson=240,Shehroz="maladiss") # print(args) showing (5,). NEED TO FIX. python 3.9.6 -- components: Interpreter Core files: abc.png messages: 397759 nosy