import csp


def main():
    chan = csp.Channel(2)
    yield chan.put("buffered")
    yield chan.put("channel")
    print (yield chan.take())
    print (yield chan.take())

@@ -45,9 +45,34 @@
 nel(
-2
+csp.buffers.FixedBuffer(2)
 )%0A  
@@ -80,24 +80,29 @@
  yield c
-han
+sp
 .put(
+chan, 
 %22buffere
@@ -120,16 +120,21 @@
 ld c
-han
+sp
 .put(
+chan, 
 %22cha
@@ -158,25 +158,28 @@
 (yield c
-han
+sp
 .take(
+chan
 ))%0A    p
@@ -195,16 +195,19 @@
 ld c
-han
+sp
 .take(
+chan
 ))%0A

update fixed-buffer example