[Checkins] SVN: zc.sourcefactory/trunk/src/zc/sourcefactory/mapping.txt - restification

Christian Theune ct at gocept.com
Tue May 8 04:15:41 EDT 2007


Log message for revision 75620:
   - restification
  

Changed:
  U   zc.sourcefactory/trunk/src/zc/sourcefactory/mapping.txt

-=-
Modified: zc.sourcefactory/trunk/src/zc/sourcefactory/mapping.txt
===================================================================
--- zc.sourcefactory/trunk/src/zc/sourcefactory/mapping.txt	2007-05-08 05:05:52 UTC (rev 75619)
+++ zc.sourcefactory/trunk/src/zc/sourcefactory/mapping.txt	2007-05-08 08:15:40 UTC (rev 75620)
@@ -5,17 +5,17 @@
 we want to talk about are properties or computed views on those objects. The
 `mapping proxy source` helps us to map a source to a different value space.
 
-We start out with a source:
+We start out with a source::
 
   >>> source = [1,2,3,4,5]
 
 and we provide a method that maps the values of the original source to the
 values we want to see (we map the numbers to the characters in the english
-alphabet):
+alphabet)::
 
   >>> map = lambda x: chr(x+96)
 
-Now we can create a mapped source:
+Now we can create a mapped source::
 
   >>> from zc.sourcefactory.mapping import ValueMappingSource
   >>> mapped_source = ValueMappingSource(source, map)
@@ -28,7 +28,7 @@
   >>> 1 in mapped_source
   False
 
-You can also use context-dependent sources:
+You can also use context-dependent sources::
 
   >>> def bindSource(context):
   ...     return [1,2,3,4,5]



More information about the Checkins mailing list