Grant Edwards wrote: > I give up, how do I make this not fail under 2.4?
>
> fcntl.ioctl(self.dev.fileno(),0xc0047a80,struct.pack("HBB",0x1c,0x00,0x00))
>
> I get an OverflowError: long int too large to convert to int
>
> ioctl() is expecting a 32-bit integer value, and 0xc0047a80 has
> the high-order bit set. I'm assuming Python thinks it's a
> signed value. How do I tell Python that 0xc0047a80 is an
> unsigned 32-bit value?
This is fixed in the 2.5 CVS branch, where the ioctl() Python C wrapper
expects an unsigned integer instead of a signed one.
Re: 2.3 -> 2.4: long int too large to convert to int ... long int too large to convert to int ... How do I tell Python that 0xc0047a80 is an ... somehow cobble together some way of forcing an unsigned integer into a ...signed integer. ... (comp.lang.python)
Re: 2.3 -> 2.4: long int too large to convert to int ... long int too large to convert to int ... How do I tell Python that 0xc0047a80 is an ...ioctl values are always, always written in hex. ...Writing the value in decimal is going to ... (comp.lang.python)
Re: Non Continuous Subsequences ... v1) original eager Python+Psyco version ... v6) lazy D version with my libs ...lazy Python version, no allocations ...int n = len; ... (comp.lang.python)
Re: Why is java considered a language for "web" or "internet" programming? ... I don't remember reading exact things about Perl interpreter,...load and parse bytecodes. ... I think, integer in Perl or Python or other scripting languages is some structure, with at the least field for type and value, and pointer to this structure you hold in 'i' variable. ...const int NNUM = 1000000; ... (comp.lang.java.help)