[Checkins]
SVN: zope.dottedname/trunk/src/zope/dottedname/resolve.txt
follow reStructuredText conventions for Zope 3 more closely
Fred L. Drake, Jr.
fdrake at gmail.com
Thu Jul 19 13:43:31 EDT 2007
Log message for revision 78180:
follow reStructuredText conventions for Zope 3 more closely
Changed:
U zope.dottedname/trunk/src/zope/dottedname/resolve.txt
-=-
Modified: zope.dottedname/trunk/src/zope/dottedname/resolve.txt
===================================================================
--- zope.dottedname/trunk/src/zope/dottedname/resolve.txt 2007-07-19 17:40:33 UTC (rev 78179)
+++ zope.dottedname/trunk/src/zope/dottedname/resolve.txt 2007-07-19 17:43:30 UTC (rev 78180)
@@ -1,26 +1,26 @@
Resolution of dotted names
==========================
-The zope.dottedname.resolve module provides a function for resolving
+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:
+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:
+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:
+But we need to provide the module the name is relative to::
>>> resolve('.split', 'os.path').__name__
'split'
More information about the Checkins
mailing list