[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +Dennis Sweeney

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: kwutge
priority: normal
severity: normal
status: open
title: bug on showing tuple on console
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file50158/abc.png

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com