DrKJam wrote: > Currently I'm ambivalent on whether an IP(vX)Network class constructor > should accept a numerical (i.e. integer) value at all *unless* you > explicit state somehow that you want the network aspect to be inferred > in some specific way. It isn't a case of just choosing /32 or /128 and > having this as the only option. IP (v4) classful rules are still > pervasive in the real world. A general case IP library available to the > whole Python community should certainly take this into account.
Don't forget that separating the "from_int" construction behaviour out to a separate class method is an available option rather than type-based behaviour switching in the main constructor. 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