GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — UniversalPython/test/test.py at main · UniversalPython/UniversalPython Expand file tree/ Copy pathtest.pyMore file actions 40 lines (24 loc) · 1.16 KB / Copy pathtest.pyFile metadata and controls40 lines (24 loc) · 1.16 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 def my_func(): print ("lol") from unidecode import unidecode import yaml loaded_dict = yaml.load(open("./ur_native.yaml")) print (loaded_dict) print ("unidecode('1000') ->", unidecode("1000")) print ("unidecode('abcd') ->", unidecode("abcd")) print ("unidecode('א') ->", unidecode("א")) print ("type(my_func) ->", type(my_func)) print ("callable(my_func) ->", callable(my_func)) print ("type(print) -> ", type(print)) print ("callable(print) -> ", callable(print)) open = "lol" print ("type(open) -> ", type(open)) import types print ("types.FunctionType -> ", types.FunctionType) print ("isinstance(print, types.FunctionType) -> ", isinstance(print, types.FunctionType)) print ("isinstance(print, (types.FunctionType, types.BuiltinFunctionType)) -> ", isinstance(print, (types.FunctionType, types.BuiltinFunctionType))) import functools print ("isinstance(print, (types.FunctionType, types.BuiltinFunctionType, functools.partial)) -> ", isinstance(print, (types.FunctionType, types.BuiltinFunctionType, functools.partial))) from inspect import isfunction, isbuiltin print("isfunction(print) -> ", isfunction(print)) print("isbuiltin(print) -> ", isbuiltin(print)) |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |