Skip to main content

zope.interface compliant ordered dictionary.

Project description

zodict

Ordered dictionary which implements the corresponding zope.interface.common.mapping interface.:

>>> from zope.interface.common.mapping import IFullMapping
>>> from zodict import zodict
>>> zod = zodict()
>>> IFullMapping.providedBy(zod)
True

Node

This is a zodict which provides a location.:

>>> from zope.location.interface import ILocation
>>> from zodict.node import Node
>>> root = Node('root')
>>> ILocation.providedBy(Node)
True

>>> root['child'] = Node()
>>> root['child'].path
['root', 'child']

>>> child = root['child']
>>> child.__name__
'child'

>>> child.__parent__
<Node object 'root' at ...>

Changes

-Add node interface and implementation

rnix, 2009-03-18

Credits

-Written by rnix (2009-03-17)

Project details


Download files

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

Source Distribution

zodict-1.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file zodict-1.1.tar.gz.

File metadata

  • Download URL: zodict-1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zodict-1.1.tar.gz
Algorithm Hash digest
SHA256 eef33b44559dcc85232b20fd283a625b73aedfd02e1a9926dcde07bd55ad41d2
MD5 e87d4508cc733b8cdd47f612b160588c
BLAKE2b-256 b3c3c902a15c9147e7af733a8b5df5300a64b8ec113e19d0cf2538fefb8b3566

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page