Re: [Python-Dev] Returning int instead of long from struct when possible for performance

2006-05-26 Thread Thomas Wouters
On 5/26/06, Tim Peters [EMAIL PROTECTED] wrote: [Bob Ippolito] Given the interchangeability of int and long, I don't foresee any other complications with this change. Thoughts?+1, and for 2.5.Even int() doesn't always return an int anymore, and it's just stupid to bear the burden of an unbounded

Re: [Python-Dev] Returning int instead of long from struct when possible for performance

2006-05-25 Thread Tim Peters
[Bob Ippolito] ... Unfortunately, this change to the struct module slightly alters the documented API for the following format codes: I, L, q, Q. Currently it is documented that those format codes will always return longs, regardless of their value. I view that more as having documented the