Not specifying the port raises exception even though it seems like it shouldn't.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Memcached |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
>>> import memcache
>>> memcache.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/
self.
File "/Users/
for s in servers]
File "/Users/
self.port = int(hostData.
TypeError: int() argument must be a string or a number, not 'NoneType'
>>> memcache.
<memcache.Client object at 0x106474a10>
It seems like it should default to port 11211, but that hostData['port'] has already been set to None.
I can't reproduce this:
guin:python- memcached$ python Client( ['127.0. 0.1']) Client( ['www.tummy. com']) Client( ['mediapop- staging. moaich. 0001.apse1. cache.amazonaws .com'])
Python 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import memcache
>>> memcache.
<memcache.Client object at 0xb74bfa7c>
>>> memcache.
<memcache.Client object at 0xb74bfaac>
>>> memcache.
<memcache.Client object at 0xb74bfadc>