Skip to content

Version 1.2.2

Compare
Choose a tag to compare
@Erotemic Erotemic released this 05 Sep 16:49
· 282 commits to main since this release
374f43d

Added

  • Add ubelt.util_dict.UDict.take.
  • Added __add__, __radd__, startswith, and endswith methods to ubelt.Path to make
    it a better drop-in replacement for string based paths.

Changed

  • Reverse dunder methods of ubelt.SetDict now promote the type.
  • Add cls keyword argument to ubelt.SetDict methods.
  • Deprecate: ensure_app_cache_dir, ensure_app_config_dir, ensure_app_data_dir,
    get_app_cache_dir, get_app_config_dir, get_app_data_dir, readfrom, writeto, ensure_unicode.
  • Initial work on new Path methods for move and copy.
  • CacheStamp.renew now does nothing and returns None if the stamp is disabled.
  • AutoDict, SetDict, and UDict are now always ordered. In Python 3.6 it inherits from OrderedDict. Otherwise it uses regular dict, which will be ordered in 3.7+
  • AutoDict now inherits from UDict.
  • PathLike objects can now be used in args to ub.cmd when the command is an iterable.

Deprecated

  • deprecate AutoOrderedDict, which is now indistinguishable from AutoDict

Fixed

  • Tentative fixes for new __editable__ based install path with ub.modname_to_modpath