Add utility functions for working with nested dictionary keys.

Review Request #12811 — Created Jan. 26, 2023 and updated

Information

Djblets
release-3.x

Reviewers

A pattern that crops up from time to time is the need to work with
nested dictionary keys, setting or retrieving something deep in a
dictionary while handling type conflicts and avoiding unwanted
alteration of data.

This will soon be used by SiteConfiguration to help avoid some
problems when working with namespaced settings.

Unit tests passed.

Tested this along with some upcoming changes that make use of it.

Summary ID
Add utility functions for working with nested dictionary keys.
A pattern that crops up from time to time is the need to work with nested dictionary keys, setting or retrieving something deep in a dictionary while handling type conflicts and avoiding unwanted alteration of data. This will soon be used by `SiteConfiguration` to help avoid some problems when working with namespaced settings.
39c536850d421fd2c6f8bf9bbf1548de5c6cbfc1
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
maubin
  1. Ship It!
  2. 
      
Loading...