Published September 18, 2021 | Version v1.4.0
Software Open

caltechlibrary/commonpy: Release 1.4.0

Michael Hucka1
  • 1. ROR icon California Institute of Technology

Description

Changes in this version: * In `net(...)`, in case of a connection error, don't do exponential back-off and retry. Retry only once and then give up, because connection errors often mean the server is not available and long waits are unhelpful to callers. * Change `net(...)` to not test if a network is available if the given destination address is on the local host. This prevents incorrectly returning `NetworkFailure` when the current host is detached from the network and the failure is actually a `ServiceFailure` (for example, if nothing is listening on the destination port on the local host). * Add new function `on_localhost(...)`, for testing whether a given network location indicates the local host. Note: the previous release, 1.3.10, should not have added new functions in a patch release – API changes should result in changing the minor release number, not merely the patch number. The previous release number was a mistake; it should have been 1.4.0, but since it wasn't, this release is 1.4.0.

Files

caltechlibrary_commonpy-v1.4.0.zip
Files (106.3 kB)
Name Size
md5:a3d522079a82007d763b148075b21a32
106.3 kB Preview Download

Other

Collection of common Python utility functions and classes used in other Caltech Library programs.

Additional details

Created:
September 9, 2022
Modified:
November 28, 2022