Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document for binary data #2

Closed
zhengwx11 opened this issue Jun 13, 2017 · 2 comments
Closed

Document for binary data #2

zhengwx11 opened this issue Jun 13, 2017 · 2 comments

Comments

@zhengwx11
Copy link

zhengwx11 commented Jun 13, 2017

Most of the usage could be inferred via beanstalkd. But the encoding control needs more documents.

sample

It is controled by the encoding of Client.__init__().

When encoding is not None, the input of Client.put() should be str, and the output of Client.reserve() would be str too. Consistent encoding for both producer and consumer is neccessary.

When encoding is None, the input of Client.put() should be bytes, and the output of Client.reserve() would be bytes too. Consistent encoding (None) for both producer and consumer is neccessary.

Behaviours under other settings are undefined.

@justinmayhew
Copy link
Owner

Hey @zhengwx11, I'm working on improving the docs and should hopefully have something up soon. I'll definitely make sure to mention this, thank you!

@justinmayhew
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants