#!/usr/local/cpython-3.4/bin/python3

'''Show that CPython is using mmap and munmap for large arrays'''

import time
import array as array_mod

def main():
    '''Main function'''
    # 1 megabyte of memory should be safely above the 128k threshold
    array = array_mod.array('b', b'\0' * (1024*1024))
    time.sleep(5)
    del array
    time.sleep(5)

main()