[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/component/socketexample.txt Fixed a bad assumption about an iterable.

Jim Fulton jim at zope.com
Tue Feb 28 18:47:32 EST 2006


Log message for revision 65627:
  Fixed a bad assumption about an iterable.
  

Changed:
  U   Zope3/branches/jim-adapter/src/zope/component/socketexample.txt

-=-
Modified: Zope3/branches/jim-adapter/src/zope/component/socketexample.txt
===================================================================
--- Zope3/branches/jim-adapter/src/zope/component/socketexample.txt	2006-02-28 23:47:29 UTC (rev 65626)
+++ Zope3/branches/jim-adapter/src/zope/component/socketexample.txt	2006-02-28 23:47:31 UTC (rev 65627)
@@ -192,7 +192,7 @@
 Sometimes you want to know all adapters that are available. Let's say you want
 to know about all the adapters that convert a German to a US socket type:
 
-  >>> sockets = zope.component.getAdapters((bathroomDE,), IUSSocket)
+  >>> sockets = list(zope.component.getAdapters((bathroomDE,), IUSSocket))
   >>> len(sockets)
   3
   >>> names = [name for name, socket in sockets]



More information about the Zope3-Checkins mailing list