map(int, '1.2.3.4'.split('.'))
bin(1)
bin(2)
bin(3)
bin(4)
bin(1 << 8)
bin(1 << 8 | 2)
bin((1 << 8 | 2) << 8)
bin((1 << 8 | 2) << 8 | 3)
bin(((1 << 8 | 2) << 8 | 3) << 8)
bin(((1 << 8 | 2) << 8 | 3) << 8 | 4)
How to understand the functional programming code for converting IP string to an integer?