On Jan 18, 6:00 pm, Yu-Xi Lim <[EMAIL PROTECTED]> wrote: > Mike Driscoll wrote: > > > 6-11 Conversion. > > (a) Create a program that will convert from an integer to an > > Internet Protocol (IP) address in the four-octet format of WWW.XXX.YYY.ZZZ > > (b) Update your program to be able to do the vice verse of the > > above. > > I think it's is asking to convert a 32-bit int to the dotted form. > > It's a little known fact, but IP addresses are valid in non-dotted > long-int form. Spammers commonly use this trick to disguise their IP > addresses in emails from scanners.
I guess I'm not fully up to speed on what constitutes an IP address. Does the term 'octet' refer to an 8-bit (xFF) number? -- http://mail.python.org/mailman/listinfo/python-list