Added docs

This commit is contained in:
2015-06-21 10:40:48 +05:30
parent b272ef5e63
commit d1bd281780
12 changed files with 277 additions and 1 deletions
+9 -1
View File
@@ -4,10 +4,11 @@ from collections import Mapping, Iterable
from warnings import warn
import logging
import types
import numbers
# logging.debug = print
__all__ = ["Any", "OR", "WrapObj", "w", "WrapMultiObj"]
__all__ = ["Any", "OR", "WrapObj", "w", "WrapMultiObj", "inf", "StringTypes", "NumberType", "FunctionType", "ClassType"]
class MetaAny(type):
@@ -523,6 +524,13 @@ def check_as_value_and_type(to_check, value_or_type):
w = WrapObj
# some extra constants
inf = float("inf")
StringTypes = OR(types.StringTypes)
NumberType = numbers.Number
FunctionType = types.FunctionType
ClassType = types.ClassType
# to think and todo
# def fmatch():