あうぇくろ writes:
tpr=composite(type,print)
print(tpr('a')==tpr(1))
Why does tpr('a')==tpr(1) return True?
Because tpr always returns the value None.
--
https://mail.python.org/mailman/listinfo/python-list
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, **kwar
Peter J. Holzer wrote:
> [-- text/plain, encoding quoted-printable, charset: us-ascii, 32 lines --]
>
> On 2025-01-14 11:32:35 +, Chris Green via Python-list wrote:
> > Use a virtual environment, what do I have to do then to make using
> > my program (that uses tkintertable) 'transpar
Chris Green via Python-list writes:
> I'm looking for Python packages that can help with text mode input,
> i.e. for use with non-GUI programs that one runs from the command
> prompt in a terminal window running a bash shell or some such.
I'd suggest giving a try to https://pypi.org/project/ques