[ python-Bugs-1037373 ] len(str(x)) in decimal.py is not Python 2.3 compatible

SourceForge.net noreply at sourceforge.net
Thu Sep 30 01:36:21 CEST 2004


Bugs item #1037373, was opened at 2004-09-30 09:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1037373&group_id=5470

Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Nick Coghlan (ncoghlan)
Assigned to: Nobody/Anonymous (nobody)
Summary: len(str(x)) in decimal.py is not Python 2.3 compatible

Initial Comment:
One of the stated goals of decimal.py is to remain 2.3
compatible.

This is not currently the case, as the len(str(x))
trick I used to determine the 'number of digits in an
integer' gives the wrong answer for long integers in
Python 2.3 (there is an extra 'L' on the end).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1037373&group_id=5470


More information about the Python-bugs-list mailing list