Skip to content

Instantly share code, notes, and snippets.

@welchbj
welchbj / subnet.py
Last active September 8, 2018 23:12
IPv4 variable-length subnet generation script
"""Script for generating IPv4 subnets."""
import functools
import sys
from argparse import (
ArgumentParser,
RawTextHelpFormatter)
from collections import (
namedtuple)
This file has been truncated, but you can view the full file.
c:function
PyAnySet_Check c-api/set.html#c.PyAnySet_Check
PyAnySet_CheckExact c-api/set.html#c.PyAnySet_CheckExact
PyArg_Parse c-api/arg.html#c.PyArg_Parse
PyArg_ParseTuple c-api/arg.html#c.PyArg_ParseTuple
PyArg_ParseTupleAndKeywords c-api/arg.html#c.PyArg_ParseTupleAndKeywords
PyArg_UnpackTuple c-api/arg.html#c.PyArg_UnpackTuple
PyArg_VaParse c-api/arg.html#c.PyArg_VaParse
PyArg_VaParseTupleAndKeywords c-api/arg.html#c.PyArg_VaParseTupleAndKeywords
PyArg_ValidateKeywordArguments c-api/arg.html#c.PyArg_ValidateKeywordArguments