[Checkins]
SVN: Sandbox/ulif/zope.introspector/src/zope/introspector/README.txt
Fix some tests for objectinfo.
Uli Fouquet
uli at gnufix.de
Wed Jun 18 05:30:36 EDT 2008
Log message for revision 87494:
Fix some tests for objectinfo.
Changed:
U Sandbox/ulif/zope.introspector/src/zope/introspector/README.txt
-=-
Modified: Sandbox/ulif/zope.introspector/src/zope/introspector/README.txt
===================================================================
--- Sandbox/ulif/zope.introspector/src/zope/introspector/README.txt 2008-06-18 09:28:55 UTC (rev 87493)
+++ Sandbox/ulif/zope.introspector/src/zope/introspector/README.txt 2008-06-18 09:30:34 UTC (rev 87494)
@@ -47,7 +47,7 @@
>>> from zope.introspector import ObjectInfo
>>> info = ObjectInfo(object())
>>> info
- <zope.introspector.ObjectInfo object at 0x...>
+ <zope.introspector...ObjectInfo object at 0x...>
ObjectInfos provide the IObjectInfo interface::
@@ -58,7 +58,7 @@
We can retrieve basal information about any object with ObjectInfos::
>>> info.getType()
- <object object at 0x...>
+ <type 'object'>
Other methods include such which are provided by the Python
``inspect`` package like ``isModule()``, ``isClass()``,
@@ -90,8 +90,8 @@
list of local .txt files if an object turns out to be a Python
package. This will fail with the standard ``ObjectInfo``::
- >>> from zope.introspector.tests import subpkg
- >>> info = ObjectInfo(subpkg)
+ >>> from zope import introspector
+ >>> info = ObjectInfo(introspector)
>>> info.getPackageFiles(filter='.txt')
Traceback (most recent call last):
...
@@ -101,7 +101,7 @@
this information::
>>> from zope.introspector import PackageInfo
- >>> info = PackageInfo(subpkg)
+ >>> info = PackageInfo(introspector)
>>> info.getPackageFiles(filter='.txt')
['README.txt']
More information about the Checkins
mailing list