Re: [Python-ideas] Extending __format__ method in ipaddress

2018-02-14 Thread Nick Coghlan
On 15 February 2018 at 08:29, Eric Osborne wrote: > Nick Coghlan suggested I instead extend __format__, which is what the > diffs in the current pull request do. This allows a great deal more > flexibility: the current code takes 'b', 'n', or 'x' types, as well as the > '#'

Re: [Python-ideas] Extending __format__ method in ipaddress

2018-02-14 Thread Ethan Furman
On 02/14/2018 02:29 PM, Eric Osborne wrote: Nick Coghlan suggested I instead extend __format__, which is what the diffs in the current pull request do. This allows a great deal more flexibility: the current code takes 'b', 'n', or 'x' types, as well as the '#' option and support for the '_'