[Python-Dev] UUID module

Fredrik Lundh fredrik at pythonware.com
Fri Jun 9 12:33:25 CEST 2006


skip at pobox.com wrote:

>     Fredrik>  6.  Combine 2 and 3: require the user to pass in a MAC argument
>     Fredrik>      to uuid1, but provide a SlowGetMacAddress helper that wraps
>     Fredrik>      the existing code.
> 
> Or make the MAC address an optional arg to uuid1.  If given, use it.  If
> not, use the slow lookup (then cache the result).

the reason for making it a required argument is to make it clear that 
the code is using a "suboptimal" way to get at the MAC value.

explicit is better than implicit etc etc.

</F>



More information about the Python-Dev mailing list