Added
- Add
ubelt.util_dict.UDict.take
. - Added
__add__
,__radd__
,startswith
, andendswith
methods toubelt.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 toubelt.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 withub.modname_to_modpath