Module spug.util.ez

This module is for the truly lazy. It defines classes and functions that use reflection in a vile and reprehensible manner in order to minimize key strokes.

Examples:

      # defining { 'a': 10, 'b': 20 } using keyword arguments
      d = D(a = 10, b = 20)
      
      # Creating an instance with attributes a = 10 and b = 20
      i = I(a = 10, b = 20)

Classes

Functions

D(**kw)

def D(**kw):

This function returns its own keyword parameters.

It is very useful for creating a dictionary with minimal punctuation.