Brant: I agree with all your concerns, and my patch is making the assumption that nothing needs to load thread / threading / Queue before python-memcached does (in which case, the monkey patch will work correctly, as happens in my test).
The only other alternative I can think of is for auth_token to completely bail on using touching memcached if the required monkey patching hasn't already taken place? (and emit a warning)
Brant: I agree with all your concerns, and my patch is making the assumption that nothing needs to load thread / threading / Queue before python-memcached does (in which case, the monkey patch will work correctly, as happens in my test).
The only other alternative I can think of is for auth_token to completely bail on using touching memcached if the required monkey patching hasn't already taken place? (and emit a warning)