[issue21513] speed up some ipaddress properties

2014-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, thanks. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue21513] speed up some ipaddress properties

2014-05-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a28ab8f012f by Antoine Pitrou in branch 'default': Issue #21513: Speedup some properties of IP addresses (IPv4Address, IPv6Address) such as .is_private or .is_multicast. http://hg.python.org/cpython/rev/7a28ab8f012f -- nosy: +python-dev _

[issue21513] speed up some ipaddress properties

2014-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > May be move implementations to parent class? Docstrings are different, though. -- ___ Python tracker ___

[issue21513] speed up some ipaddress properties

2014-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be move implementations to parent class? In any case the patch LGTM. -- ___ Python tracker ___ ___

[issue21513] speed up some ipaddress properties

2014-05-15 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.rosenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21513] speed up some ipaddress properties

2014-05-15 Thread Antoine Pitrou
New submission from Antoine Pitrou: Some properties on IPv4Address and IPv6Address instantiate one or several network objects each time they are computed. Instead these characteristic networks can be computed once and for all at module import. Patch attached. (note: the lru_cache() decorator s