Skip to main content

A Python dict that behaves a bit like a JavaScript object

Project description

Thing: A Python dict that behaves a bit like a JavaScript object

A Thing is a subclass of dict that behaves a little like a Javascript object, insofar as 'item' style access - x['foo'] - and 'attribute' style access - x.foo - are equivalent, and can be used interchangeably, subject of course to the limitation imposed by Python syntax itself, that an attribute name in x.name has to be a constant.

Read the documentation at http://rjgtoys.readthedocs.org/projects/thing/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

rjgtoys_thing-0.0.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page