earl / beanstalkc

A simple beanstalkd client library for Python
Apache License 2.0
457 stars 115 forks source link

Introducing a constant for the "default" tube name #72

Closed svisser closed 6 years ago

svisser commented 6 years ago

By default, a beanstalkc.Connection() instance listens to the "default" tube as specified by the beanstalkd protocol (https://github.com/kr/beanstalkd/blob/master/doc/protocol.txt).

It would be useful if there was a constant DEFAULT_TUBE_NAME for that in this library (similar to other defaults) as some application code may wish to use it (e.g., for the purpose of watching other tubes and ignoring that particular default tube).

If this idea seems sensible (even though the rest of beanstalkc.py may not use that constant), I'm happy to create a pull request.

earl commented 6 years ago

Good idea, I'll be happy to merge it!

earl commented 6 years ago

Merged via PR #73.