Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tunple Bug? #59975

Closed
zhuojun mannequin opened this issue Aug 23, 2012 · 3 comments
Closed

Tunple Bug? #59975

zhuojun mannequin opened this issue Aug 23, 2012 · 3 comments
Assignees
Labels
type-bug An unexpected behavior, bug, or error

Comments

@zhuojun
Copy link
Mannequin

zhuojun mannequin commented Aug 23, 2012

BPO 15771
Nosy @ezio-melotti

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/ezio-melotti'
closed_at = <Date 2012-08-23.08:30:37.502>
created_at = <Date 2012-08-23.08:27:22.430>
labels = ['type-bug', 'invalid']
title = 'Tunple Bug?'
updated_at = <Date 2012-08-23.08:33:11.879>
user = 'https://bugs.python.org/zhuojun'

bugs.python.org fields:

activity = <Date 2012-08-23.08:33:11.879>
actor = 'ezio.melotti'
assignee = 'ezio.melotti'
closed = True
closed_date = <Date 2012-08-23.08:30:37.502>
closer = 'ezio.melotti'
components = ['None']
creation = <Date 2012-08-23.08:27:22.430>
creator = 'zhuojun'
dependencies = []
files = []
hgrepos = []
issue_num = 15771
keywords = []
message_count = 3.0
messages = ['168929', '168930', '168931']
nosy_count = 2.0
nosy_names = ['ezio.melotti', 'zhuojun']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue15771'
versions = ['Python 3.2']

@zhuojun
Copy link
Mannequin Author

zhuojun mannequin commented Aug 23, 2012

>>> def f(*agrs):
	print(agrs)

>>> f(1,2)
(1, 2)
>>> f(1) #Is the output wrong? It should be without ','.
(1,)

@zhuojun zhuojun mannequin added the type-bug An unexpected behavior, bug, or error label Aug 23, 2012
@ezio-melotti
Copy link
Member

Tuples with one element are defined as (x,), since the comma is what really makes the tuple.

@ezio-melotti
Copy link
Member

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant