[Tutor] Database topic now fixed

2006-05-14 Thread S W Collier
Alan, Does that mean you will soon fix the tutor.tgz :-) Thanks for all the hard work you put into this. Stan. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Bit-level field extraction

2006-05-16 Thread S W Collier
On Tuesday 16 May 2006 16:01, Alan Gauld wrote: > Terry, > > Your approach is fine. Personally however I'd just have defined > some constants and done a direct bitwise and - this is the > approach used in the stat module: > > VMASK = 0x14 # 00011000 > VER00 = 0x00 > VER01 = 0x04 > VER10 = 0x10 > V

Re: [Tutor] Bit-level field extraction

2006-05-17 Thread S W Collier
On Tuesday 16 May 2006 22:41, Alan Gauld wrote: > > Heh, you and me both. I cut my teeth on IBM System/370 > > assembler. Last > > time I had a job where I actually did programming as part of it, > > it was > > System/390 machine code. That's right, machine code, not > > assembler; I'd > > direct