#NEWLINE# @ property #NEWLINE# def is_private( self ) : #NEWLINE# #INDENT# 'Test if this address is allocated for private networks.\n\n        Returns:\n            A boolean, True if the address is reserved per RFC 1918.\n\n        ' #NEWLINE# private_10 = IPv4Network ( '10.0.0.0/8' ) #NEWLINE# private_172 = IPv4Network ( '172.16.0.0/12' ) #NEWLINE# private_192 = IPv4Network ( '192.168.0.0/16' ) #NEWLINE# return ( ( self in private_172 ) or ( self in private_172 ) or ( self in private_192 ) )