Skip to main content

Dotted Name Resolution

Overview

The zope.dottedname.resolve module provides a function for resolving dotted names. Dotted names are resolved by importing modules and by getting attributes from imported modules. Names with leading dots are relative.

Detailed Documentation———————-

Resolution of dotted names

The zope.dottedname.resolve module provides a function for resolving dotted names. Dotted names are resolved by importing modules and by getting attributes from imported modules. Names with leading dots are relative.

To illustrate, we’ll use the dotted name resolver to access objects in the os module:

>>> from zope.dottedname.resolve import resolve
>>> resolve('os.path.split').__name__
'split'

Here, we used an absolute name. We can also using a relative name:

>>> resolve('.split').__name__
Traceback (most recent call last):
...
ValueError: relative name without base module

But we need to provide the module the name is relative to:

>>> resolve('.split', 'os.path').__name__
'split'

>>> resolve('..system', 'os.path').__name__
'system'

>>> resolve('...datetime', 'os.path').__name__
'datetime'

CHANGES

3.4.1 (2007-10-02)

  • Updated package meta-data.

3.4.0 (2007-07-19)

  • Initial Zope-independent release.

Metadata

Release files for zope.dottedname 3.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zope.dottedname 3.4.1
File Size Uploaded Provenance Actions
zope.dottedname-3.4.1.tar.gz 3.9 kB Without provenance Details for zope.dottedname-3.4.1.tar.gz

Release files / zope.dottedname-3.4.1.tar.gz

Download URL zope.dottedname-3.4.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
add6b0aac96490ea28bfe1402b1fb346aadeb40f5e77f1d318e23c89503e3cca
BLAKE2b-256 checksum
How to use checksums
1eb7b8ff84f491f6d66662e3db7cdbfad50a63d90f4ee130e857a9ec3e85c992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for zope.dottedname 3.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page