The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: Chris Rebert <c...@rebertia.com>
Date: Sat, 6 Oct 2012 03:27:52 -0700
Local: Sat, Oct 6 2012 6:27 am
Subject: Re: Unpaking Tuple
On Sat, Oct 6, 2012 at 3:09 AM, sajuptpm <sajup...@gmail.com> wrote:
Then you arguably want a list, not a tuple.
> Hi, > I am using python 2.6.
> I need a way to make following code working without any ValueError .
> Note: Number of values in the tuple will change dynamically.
But at any rate:
If you also need to handle the "too many items" case, use slicing:
Cheers,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||