Closed macosforgebot closed 10 years ago
exarkun@… originally submitted this as ticket:829
Named services are often somewhat handy. An IService with a non-None name attribute can be looked up by name on the MultiService that is its parent.
IService
None
name
MultiService
It's already possible to just set the name attribute on the ConnectionPool after instantiating it:
ConnectionPool
p = ConnectionPool(...) p.name = "Some thing"
but it'd be a little bit easier and a little bit nicer if this could be passed to __init__:
__init__
p = ConnectionPool(..., name="Some thing")
exarkun@… originally submitted this as attachment:connectionpool-name.patch:ticket:829
add name parameter to ConnectionPool.__init__
ConnectionPool.__init__
@wsanchez originally submitted this as comment:1:ticket:829
r12231
@wsanchez originally submitted this as comment:2:ticket:829
exarkun@… originally submitted this as comment:3:ticket:829
Thank you!
exarkun@… originally submitted this as ticket:829
Named services are often somewhat handy. An
IService
with a non-None
name
attribute can be looked up by name on theMultiService
that is its parent.It's already possible to just set the
name
attribute on theConnectionPool
after instantiating it:but it'd be a little bit easier and a little bit nicer if this could be passed to
__init__
: