1. 30 Jun, 2023 1 commit
  2. 06 Jun, 2023 1 commit
    • Change pybind11_abseil `absl::Time` to-python conversion to return a datetime… · afa0489d
      Change pybind11_abseil `absl::Time` to-python conversion to return a datetime object with UTC timezone.
      
      The original motivation for this change was to achieve compatibility with absl/python behavior (currently only used Google-internally), but it is a good change in its own right: `absl::Time` does not carry any timezone information, using the local timezone in the to-python conversion is far more complicated than using the UTC timezone, in particular because
      
      1. it makes the to-python conversion dependent on zoneinfo or equivalent.
      
      2. potentially (and confusingly) 3 instead of 2 timezones can appear in a from-python - to-python conversion roundtrip, e.g. starting with a non-local timezone in Python, implicit UTC timezone in C++, then the local timezone when converted back to Python.
      
      If this CL causes a breakage
      ----------------------------
      
      The most likely root cause is a latent inconistency/bug in handling timezones, most notably due to a "naive" datetime object in the mix:
      
      * https://docs.python.org/3/library/datetime.html#aware-and-naive-objects
      
      In such a case, callers need to be updated to pass "aware" datetime objects instead. In the general case, this is the only way to ensure system-wide consistency. As a side-effect, such fixes are likely to prevent or resolve issues during DST transitions.
      
      PiperOrigin-RevId: 538240189
      Ralf W. Grosse-Kunstleve committed
  3. 24 May, 2023 1 commit
  4. 18 May, 2023 2 commits
  5. 16 May, 2023 3 commits
  6. 04 May, 2023 1 commit
    • Make `absl::Time` from-python conversion (almost) identical to a Google-internal… · 1caf1890
      Make `absl::Time` from-python conversion (almost) identical to a Google-internal implementation under absl/python.
      
      Note that the unit tests are unchanged (in the entire Google codebase).
      
      The remaining very subtle differences between `type_caster<absl::Time>::load()` and the corresponding from-python conversion under absl/python are related to the pybind11 two-pass overload resolution feature that does not exist in PyCLIF.
      
      As a side-effect, this change removes long-obsolete remnants of Python 2 support.
      
      PiperOrigin-RevId: 529457660
      Ralf W. Grosse-Kunstleve committed
  7. 03 May, 2023 2 commits
  8. 24 Apr, 2023 1 commit
  9. 19 Apr, 2023 1 commit
  10. 14 Apr, 2023 1 commit
  11. 30 Mar, 2023 1 commit
  12. 29 Mar, 2023 1 commit
  13. 28 Feb, 2023 1 commit
  14. 13 Feb, 2023 1 commit
  15. 10 Feb, 2023 1 commit
  16. 09 Feb, 2023 1 commit
  17. 08 Feb, 2023 1 commit
  18. 01 Feb, 2023 1 commit
  19. 06 Jan, 2023 1 commit
  20. 20 Dec, 2022 1 commit
    • [NumPy] Remove references to deprecated NumPy type aliases. · 33b5c7d4
      This change replaces references to a number of deprecated NumPy type aliases (np.bool, np.int, np.float, np.complex, np.object, np.str) with their recommended replacement (bool, int, float, complex, object, str).
      
      NumPy 1.24 drops the deprecated aliases, so we must remove uses before updating NumPy.
      
      PiperOrigin-RevId: 496626719
      Peter Hawkins committed
  21. 13 Dec, 2022 1 commit
  22. 06 Dec, 2022 1 commit
  23. 05 Dec, 2022 1 commit
  24. 01 Dec, 2022 1 commit
  25. 30 Nov, 2022 1 commit
  26. 21 Nov, 2022 1 commit
  27. 12 Nov, 2022 1 commit
  28. 08 Nov, 2022 2 commits
  29. 02 Nov, 2022 2 commits
  30. 01 Nov, 2022 1 commit
  31. 31 Oct, 2022 1 commit
  32. 17 Oct, 2022 1 commit
  33. 04 Oct, 2022 1 commit
  34. 30 Sep, 2022 1 commit