bit manipulation frustration
Peter Schneider-Kamp
peter at schneider-kamp.de
Sun Jul 23 04:07:11 EDT 2000
More information about the Python-list mailing list
Sun Jul 23 04:07:11 EDT 2000
- Previous message (by thread): bit manipulation frustration
- Next message (by thread): cgi, templates, and the % operator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Peter Schneider-Kamp wrote: > > Courageous wrote: > > > > Say for example I want to increase or decrease R, A less general, but faster way (untested): def incR(v,inc = 1): return v[0]+chr(ord(v[1]) + (inc << 3)) Note that little-endian/big-endian byte ordering must be considered. Peter -- Peter Schneider-Kamp ++47-7388-7331 Herman Krags veg 51-11 mailto:peter at schneider-kamp.de N-7050 Trondheim http://schneider-kamp.de
- Previous message (by thread): bit manipulation frustration
- Next message (by thread): cgi, templates, and the % operator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list