mirror of
https://git.photon.obnh.io/AXSY/whois.git
synced 2026-03-13 02:01:32 +00:00
Initial commit: mwhois with SCION AS support and decimal AS conversion
Based on mwhois by Antonios A. Chariton Modifications for SCION AS support by Olaf Baumert, Axpo Systems AG
This commit is contained in:
27
netaddr/tests/3.x/ip/formats.txt
Normal file
27
netaddr/tests/3.x/ip/formats.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
=IP formatting options=
|
||||
|
||||
Copyright (c) 2008-2015, David P. D. Moss. All rights reserved.
|
||||
|
||||
{{{
|
||||
|
||||
>>> from netaddr import *
|
||||
|
||||
}}}
|
||||
|
||||
==IPAddress representations==
|
||||
|
||||
{{{
|
||||
|
||||
>>> hex(IPAddress(0))
|
||||
'0x0'
|
||||
|
||||
>>> hex(IPAddress(0xffffffff))
|
||||
'0xffffffff'
|
||||
|
||||
>>> oct(IPAddress(0))
|
||||
'0o0'
|
||||
|
||||
>>> oct(IPAddress(0xffffffff))
|
||||
'0o37777777777'
|
||||
|
||||
}}}
|
||||
Reference in New Issue
Block a user