[ python-Feature Requests-1436243 ] Extend pre-allocated integers to cover [0, 255]
SourceForge.net
noreply at sourceforge.net
Wed Feb 22 19:04:11 CET 2006
Feature Requests item #1436243, was opened at 2006-02-21 17:43
Message generated for change (Comment added) made by tjreedy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1436243&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Tim Delaney (tcdelaney)
Assigned to: Georg Brandl (gbrandl)
Summary: Extend pre-allocated integers to cover [0, 255]
Initial Comment:
When the `bytes` object is introduced (successor to
PEP 332) the full range of byte integer objects [0,
255] are likely to be used more commonly.
Suggest extending the pre-allocated integer obejcts to
include the full range [0, 255].
----------------------------------------------------------------------
>Comment By: Terry J. Reedy (tjreedy)
Date: 2006-02-22 13:04
Message:
Logged In: YES
user_id=593130
Thanks for the info. Small nit: your checkin message says
"RFE #1436243: make integers in [0..256] preallocated. "
The range is actually (now)[-5...256].
#define NSMALLNEGINTS 5
sets the lower limit (unchanged).
----------------------------------------------------------------------
Comment By: Georg Brandl (gbrandl)
Date: 2006-02-22 06:30
Message:
Logged In: YES
user_id=849994
It's test_types, and I added a test too.
Revision 42552.
----------------------------------------------------------------------
Comment By: Terry J. Reedy (tjreedy)
Date: 2006-02-22 01:38
Message:
Logged In: YES
user_id=593130
I decided to test out the new svn view facility ;-)
Looks like 100 in
#define NSMALLPOSINTS 100
in python/trunk/Objects/intobject.c
just needs to be upped to 257
Unlike for other builtin types, I could not find a
Lib/test/test_int.py file or equivalent where ints are
tested, to see if pre-allocation is tested. What did I
miss?
----------------------------------------------------------------------
Comment By: Raymond Hettinger (rhettinger)
Date: 2006-02-21 17:47
Message:
Logged In: YES
user_id=80475
Georg, would you take care of this one for Py2.5.
Also include the value 256.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1436243&group_id=5470
More information about the Python-bugs-list
mailing list