We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = <Date 2004-07-01.10:03:17.000> created_at = <Date 2004-07-01.08:53:53.000> labels = ['expert-regex'] title = 'incorrect len' updated_at = <Date 2004-07-01.10:03:17.000> user = 'https://bugs.python.org/calvinlow'
bugs.python.org fields:
activity = <Date 2004-07-01.10:03:17.000> actor = 'effbot' assignee = 'effbot' closed = True closed_date = None closer = None components = ['Regular Expressions'] creation = <Date 2004-07-01.08:53:53.000> creator = 'calvinlow' dependencies = [] files = [] hgrepos = [] issue_num = 983269 keywords = [] message_count = 2.0 messages = ['21363', '21364'] nosy_count = 2.0 nosy_names = ['effbot', 'calvinlow'] pr_nums = [] priority = 'normal' resolution = 'rejected' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue983269' versions = ['Python 2.3']
The text was updated successfully, but these errors were encountered:
a=12345678901 len(`a`) returns 12.
notice that the the length of a numeric value after 10 digits is actually + 1
Sorry, something went wrong.
Logged In: YES user_id=38376
12345678901 is a long integer; x and repr(x) of long integers includes the trailing "L":
x
>>> a = 12345678901 >>> print repr(a) 12345678901L
to get just the digits, use str(x). see the docs for more information on long integers and repr vs. str.
No branches or pull requests
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: