Fokko opened a new pull request, #1710:
URL: https://github.com/apache/iceberg-python/pull/1710

   Now we have the syntactic sugar 
(https://github.com/apache/iceberg-python/pull/1697), we don't need Lambda's 
anymore and can use the `operator.{and_,or_}` functions.
   
   Also, the reduce is okay with just having a single argument, while 
`And(*[EqualTo('a', 22)])` would fail.
   ```
   python3
   Python 3.10.14 (main, Mar 19 2024, 21:46:16) [Clang 15.0.0 
(clang-1500.3.9.4)] on darwin
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import functools
   >>> functools.reduce(lambda a, b: a + b, [1])
   1
   >>> functools.reduce(lambda a, b: a + b, [1, 2])
   3
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to