Stephen J. Turnbull wrote: > Nick Coghlan writes: > > > However, while I'd still be a little happier if the .ip attribute > > went away all together and another means was found to conveniently > > associate an IPAddress and an IPNetwork, keeping it doesn't bother > > me anywhere near as much as having network equivalence defined in > > terms of something other than the network ID and the netmask. > > s/equivalence/equality/ > > There are several notions of equivalence in play, and all can be > implemented as methods. The question is which one is going to be "==".
I have just enough pure math in my educational background to think of 'equality' as the 'default equivalence class', but yes, the meaning of "==" is exactly what I was referring to. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia --------------------------------------------------------------- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com