![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: putting a string in Mac Address form
From: Alex Martelli <aleaxit@yahoo.com>
Date: Mon Oct 31 2005 - 03:10:29 CET
kyle.tk <kyle.tk@gmail.com> wrote:
What about replacing this whole block with, say...:
return ':'.join(mac[c:c+2] for c in range(0, 12, 2)).upper()
(as you did already check that len(mac) is 12...)
Alex
|