Mixin for .FOO uppercase attributes mapped to ['FOO'] access.
Project description
Presents:
WithUC_Attrs, a mixin for other classes which provides .__getattr__ and .__setattr__ which intercept .FOO where FOO would match the rexgep ^[A-Z][_A-Z0-9]*$ and maps them to [‘FOO’].
UCdict, a subclass of dict using the WithUC_Attrs mixin.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cs.mixin.ucattrs-20150118.tar.gz
.
File metadata
- Download URL: cs.mixin.ucattrs-20150118.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
80a88ba5f43e45752047f1b83f8bf08a9aeb9c0bb8eae86210be13663039e2ad
|
|
MD5 |
ec4b5520c56c62f3a3f905352c4ec29f
|
|
BLAKE2b-256 |
d5572bf2257491b077be453bb7f661f5ed096464ed76b5587e22e7036112b8b3
|