Group :: Development/Python3
RPM: python3-module-first
Principal Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
A versão atual: 2.0.2-alt1
Data da compilação: 1 outubro 2022, 16:48 ( 82.0 weeks ago )
Tamanho:: 9905 b
Home page: https://pypi.org/project/first/
Licença: MIT
Sumário: The function you always missed in Python: return the first value of an iterable
Descrição:
Lista dos contribuidores Lista dos rpms provida por esta srpm:
ACL:
Data da compilação: 1 outubro 2022, 16:48 ( 82.0 weeks ago )
Tamanho:: 9905 b
Home page: https://pypi.org/project/first/
Licença: MIT
Sumário: The function you always missed in Python: return the first value of an iterable
Descrição:
first is an MIT-licensed Python package with a simple function that
returns the first true value from an iterable, or None if there is none.
If you need more power, you can also supply a key function that is used
to judge the truth value of the element or a default value if None
doesn't fit your use case.
N.B. I'm using the term "true" consistently with Python docs for any()
and all() - it means that the value evaluates to true like: True, 1,
"foo", or [None]. But not: None, False, [], or 0. In JavaScript, they
call this "truthy".
Mantenedor currente: Anton Zhukharev returns the first true value from an iterable, or None if there is none.
If you need more power, you can also supply a key function that is used
to judge the truth value of the element or a default value if None
doesn't fit your use case.
N.B. I'm using the term "true" consistently with Python docs for any()
and all() - it means that the value evaluates to true like: True, 1,
"foo", or [None]. But not: None, False, [], or 0. In JavaScript, they
call this "truthy".
Lista dos contribuidores Lista dos rpms provida por esta srpm:
- python3-module-first