diff options
author | ewosborne <ewosborne@users.noreply.github.com> | 2019-09-12 09:03:31 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2019-09-12 09:03:31 (GMT) |
commit | f9c95a4ba24c52eb1c052e3052d677e90a429a9a (patch) | |
tree | a8b9c9e60ca5807a2a3bf395dfadacefa78a08fe /Misc/NEWS.d/next/Library | |
parent | 92777d5e5aed1753bafe07265dbe98b2d271815b (diff) | |
download | cpython-f9c95a4ba24c52eb1c052e3052d677e90a429a9a.zip cpython-f9c95a4ba24c52eb1c052e3052d677e90a429a9a.tar.gz cpython-f9c95a4ba24c52eb1c052e3052d677e90a429a9a.tar.bz2 |
bpo-32820: __format__ method for ipaddress (#5627)
* bits method and test_bits
* Cleaned up assert string
* blurb
* added docstring
* Faster method, per Eric Smith
* redoing as __format__
* added ipv6 method
* test cases and cleanup
* updated news
* cleanup and NEWS.d
* cleaned up old NEWS
* removed cut and paste leftover
* one more cleanup
* moved to regexp, moved away from v4- and v6-specific versions of __format__
* More cleanup, added ipv6 test cases
* more cleanup
* more cleanup
* cleanup
* cleanup
* cleanup per review, part 1
* addressed review comments around help string and regexp matching
* wrapped v6 test strings. contiguous integers: break at 72char. with underscores: break so that it looks clean.
* 's' and '' tests for pv4 and ipv6
* whitespace cleanup
* Remove trailing whitespace
* Remove more trailing whitespace
* Remove an excess blank line
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-02-13-12-25-43.bpo-32820.0stF0u.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-02-13-12-25-43.bpo-32820.0stF0u.rst b/Misc/NEWS.d/next/Library/2018-02-13-12-25-43.bpo-32820.0stF0u.rst new file mode 100644 index 0000000..dd5bd26 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-02-13-12-25-43.bpo-32820.0stF0u.rst @@ -0,0 +1,4 @@ +Added __format__ to IPv4 and IPv6 classes. Always outputs a fully zero- +padded string. Supports b/x/n modifiers (bin/hex/native format). Native +format for IPv4 is bin, native format for IPv6 is hex. Also supports '#' and +'_' modifiers. |