From: Steven P. <n9...@n9...> - 2004-01-06 04:35:13
|
On Jan 5, 2004, at 6:25 PM, Roger Binns wrote: >> I store the ID code as the original hex string, > > That is a really bad idea! What is the difference between the > following: For informational purposes only, it is not used for any calculations/etc... Sorry if that wasn't clear. For actual indexing of the values in the internal lists used to represent the objects, it is using pure integers. I suppose there really isn't much value to having this form of the ID stored, so it can go away and save a bit of memory. I'll make it so. >> Hey, I got one right! :-) LoL > > Wait for a year, and then look at the code you wrote. I always > get embarrassed by my old code. But hey, it even happens to Linus :-) Oh, I know all about this, and being my first Python code, I have NO DOUBT I'll wonder what I was thinking... > Other than the keys you use should be integers throughout, epydoc > reported this: > > ======================================================= > C:\projects\bitpim\usb_ids.py > In usb_ids.VendorList docstring (line 190): > ------------------------------------------------------- > L192: Error: Improper paragraph indentation. > > pychecker is happy. I'll have to read up on those checkers, I don't know anything about either one. ;-) If you find anything else that seems wrong or needs changing, let me know or fix it yourself depending on your mood at the time. :-) -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |