• bool type have big problem. finally program returned "True".Is this th

    From =?UTF-8?B?44GC44GG44GH44GP44KN?=@3:633/280.2 to All on Sat Jan 18 23:55:56 2025
    Subject: bool type have big problem. finally program returned "True".Is this
    the TRUE spec?

    from typing import List
    from types import FunctionType, LambdaType


    def composite(*func: List[FunctionType]) -> LambdaType:
    if len(func) < 2:
    raise TypeError(f'composite expected over 2 arguments, but got {len(func)}')
    if len(func) == 2:
    return lambda *args, **kwargs: func[1](func[0](*args, **kwargs))

    return lambda *args, **kwargs: composite(*func[1:])(func[0](*args, **kwargs
    ))
    tpr=composite(type,print)
    print(tpr('a')==tpr(1))

    I subscribed to python-list, so I sent this message again.
    Why does tpr('a')==tpr(1) return True?

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: ---:- FTN<->UseNet Gate -:--- (3:633/280.2@fidonet)