Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master

Fix lbbroker[23].py for python2 and python3

Python examples lbbroker2.py and lbbroker3.py failed to run
on both python2 and python3.

So i made minimal changes to make it possible.

I also fixed few PEP8 problems my editor complained about, mainly
long lines and spaces on wrong places.
latest commit 64332f3d01
David Pravec authored
..
Failed to load latest commit information.
MDP.py add Python majordomo examples
README Finished reworking Chapter 5
README.md merged README with README.md
asyncrrhandlers.py Update formatting
asyncsrv.py Python 3 compatibility for Chapter 3
bstar.py Remove class attributes that were not used in BinaryStar.
bstarcli.py Made binary star examples support Python 3.
bstarsrv.py Made binary star python examples follow pep8 coding standard.
bstarsrv2.py Made binary star python examples follow pep8 coding standard.
clone.py Change publisher port to correct type
clonecli1.py Added README for Python example formatting rules
clonecli2.py Added README for Python example formatting rules
clonecli3.py Added README for Python example formatting rules
clonecli4.py Added README for Python example formatting rules
clonecli5.py Added README for Python example formatting rules
clonecli6.py Added README for Python example formatting rules
clonesrv1.py Added README for Python example formatting rules
clonesrv2.py Added README for Python example formatting rules
clonesrv3.py Added README for Python example formatting rules
clonesrv4.py Added README for Python example formatting rules
clonesrv5.py Added README for Python example formatting rules
clonesrv6.py Fix that when a variable with ttl=0 was created it was deleted direct…
dechat.py add Python/dechat.py
eagain.py add eagain.py
espresso.py Added README for Python example formatting rules
fileio1.py Added README for Python example formatting rules
fileio2.py Added README for Python example formatting rules
fileio3.py Added README for Python example formatting rules
flcliapi.py Added README for Python example formatting rules
flclient1.py Added README for Python example formatting rules
flclient2.py Added README for Python example formatting rules
flclient3.py Added README for Python example formatting rules
flserver1.py Add Freelance pattern Model 2 Python examples.
flserver2.py Add Freelance pattern Model 2 Python examples.
flserver3.py Added README for Python example formatting rules
hwclient.py Python 3 compatibility for Chapter 1
hwserver.py Python 3 compatibility for Chapter 1
identity.py Python 3 compatibility for Chapter 3
interface.py add Python/udpping3
interrupt.py Python 3 compat for Chapter 2
kvmsg.py Use correct encoding / decoding of the properties
kvsimple.py Added README for Python example formatting rules
lbbroker.py Replace lbbroker.py to fix issue #502.
lbbroker2.py Fix lbbroker[23].py for python2 and python3
lbbroker3.py Fix lbbroker[23].py for python2 and python3
lpclient.py Add lazy pirate examples in Python.
lpserver.py Add lazy pirate examples in Python.
lvcache.py Added README for Python example formatting rules
mdbroker.py fixed destroy
mdcliapi.py Added README for Python example formatting rules
mdcliapi2.py Added README for Python example formatting rules
mdclient.py Added README for Python example formatting rules
mdclient2.py Added README for Python example formatting rules
mdworker.py Added README for Python example formatting rules
mdwrkapi.py fixed bug with debug mode
mmiecho.py Added README for Python example formatting rules
msgqueue.py Python 3 compat for Chapter 2
mspoller.py Python 3 compat for Chapter 2
msreader.py Python 3 compat for Chapter 2
mtrelay.py Python 3 compat for Chapter 2
mtserver.py Python 3 compat for Chapter 2
pathopub.py Use bind instead of connect in the pathopub example.
pathosub.py Added README for Python example formatting rules
peering1.py Python 3 compatibility for Chapter 3
peering2.py Python 3 compatibility for Chapter 3
peering3.py Python 3 compatibility for Chapter 3
ppqueue.py fixed purging of expired workers in WorkerQueue
ppworker.py Added README for Python example formatting rules
psenvpub.py Python 3 compat for Chapter 2
psenvsub.py Python 3 compat for Chapter 2
rrbroker.py Python 3 compat for Chapter 2
rrclient.py Python 3 compat for Chapter 2
rrworker.py Python 3 compat for Chapter 2
rtdealer.py make it _actually_ call A twice as often as B
rtreq.py "ipc" doesn't yet work on windows.
rtrouter.py Replace old XREP and XREQ examples with ROUTER and DEALER
spqueue.py Added README for Python example formatting rules
spworker.py Added README for Python example formatting rules
suisnail.py Replace NOBLOCK with DONTWAIT
syncpub.py Python 3 compat for Chapter 2
syncsub.py Python 3 compatibility in sync*ub.py
tasksink.py Python 3 compatibility for Chapter 1
tasksink2.py Python 3 compat for Chapter 2
taskvent.py Python 3 compatibility for Chapter 1
taskwork.py Python 3 compatibility for Chapter 1
taskwork2.py Python 3 compat for Chapter 2
testit.py Added README for Python example formatting rules
ticlient.py Added README for Python example formatting rules
titanic.py Added README for Python example formatting rules
tripping.py Added README for Python example formatting rules
udplib.py add Python/udpping3
udpping1.py Added README for Python example formatting rules
udpping2.py Added README for Python example formatting rules
udpping3.py add Python/udpping3
version.py Python 3 compatibility for Chapter 1
wuclient.py Python 3 compatibility for Chapter 1
wuproxy.py Python 3 compat for Chapter 2
wuserver.py Python 3 compatibility for Chapter 1
zhelpers.py Python 3 compatibility for Chapter 3

README.md

ØMQ - Python examples

See LICENSE in examples directory

Before committing changes or additions to the Python examples, please run them through reindent.py. This minimizes diffs on non-significant whitespace.

    python -m reindent --nobackup *.py

reindent.py is in the Tools/scripts directory of a python tar distribution or can be installed from PyPi using pip or easy_install:

    pip install reindent
Something went wrong with that request. Please try again.