A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-August/091268.html below:

[Python-Dev] PEP 3144: IP Address Manipulation Library for the Python Standard Library

[Python-Dev] PEP 3144: IP Address Manipulation Library for the Python Standard Library [Python-Dev] PEP 3144: IP Address Manipulation Library for the Python Standard LibraryEric Smith eric at trueblade.com
Thu Aug 20 06:07:51 CEST 2009
Fred Drake wrote:
> On Aug 19, 2009, at 6:01 PM, Peter Moody wrote:
>> just to double check, it's fine for IPNetwork to remain hashable if
>> set_prefix() actually returned a new object, correct?
> 
> 
> The name would be confusing, though.  Perhaps using_prefix() would be 
> more clear.

I think you'd be better off either doing this with an optional parameter 
to __init__, or a class method factory function (maybe from_prefix or 
similar). I don't see why it should be a method on an existing object.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4