Note that I have not been able to reproduce this outside of the nova-api-os-compute context. The following works fine in python3 REPL :
$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from oslo_cache import _memcache_pool
>>> a=_memcache_pool.MemcacheClientPool(urls="foo", arguments={}, maxsize=10, unused_timeout=10)
>>> a._create_connection()
<oslo_cache._memcache_pool._MemcacheClient object at 0x7f3842588528>
Note that I have not been able to reproduce this outside of the nova-api-os-compute context. The following works fine in python3 REPL :
$ python3 pool.MemcacheCl ientPool( urls="foo" , arguments={}, maxsize=10, unused_timeout=10) connection( ) _memcache_ pool._MemcacheC lient object at 0x7f3842588528>
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from oslo_cache import _memcache_pool
>>> a=_memcache_
>>> a._create_
<oslo_cache.