Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Instead it accepts a callback function which is called with each
new :py:class:`Value`, or :py:class:`Exception`. ::

def cb(V):
print 'New value', V
print('New value', V)
sub = ctxt.monitor('pv:name', cb)
time.sleep(10) # arbitrary wait
sub.close()
Expand Down
4 changes: 2 additions & 2 deletions documentation/rpc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ This proxy must be associated with a Context. ::
from p4p.client.thread import Context
ctxt = Context('pva')
proxy = MyProxy(context=ctxt, format='pv:call:')
print proxy.add(1, 1)
print(proxy.add(1, 1))


A decorated proxy class has two additional contructor arguments.
Expand All @@ -98,7 +98,7 @@ It may be helpful to illustrate what a proxy method call is actually doing. ::
'rhs': 1,
},
})
print ctxt.rpc('pv:call:add', V)
print(ctxt.rpc('pv:call:add', V))

API Reference
-------------
Expand Down
Loading