Felix

Results 5 issues of Felix

I want to know what's the right way to share the connection. Create a class and add a classmethod,like this `class MainHandler(tornado.web.RequestHandler): @classmethod async def redis_connection(cls): if not hasattr(cls, '_redis_connection'):...

s = Session(webdriver_path='./chromedriver', browser='chrome', default_timeout=15, webdriver_options={ 'arguments': ['headless'] }) a = s.get('https://www.baidu.com/') print(a.encoding) **####### after setting the encoding to utf-8 a.text is OK, but a.xpath is still unreadable code..** a.encoding...

bug

https://github.com/trinodb/trino/pull/4187

https://github.com/django/channels/blob/42070bfe400048d7c8efe551d37f7ac0d26d8e7e/channels/layers.py#L123 I am reading the source code of Django channels, get_capacity(self, channel) method implements as this ``` def get_capacity(self, channel): """ Gets the correct capacity for the given channel; either...

https://github.com/django/channels_redis/blob/0c27648b60a1918c867b96a5ad3f67ef58ccceda/channels_redis/core.py#L105 In the implementation of this method, it's annotation says "Close all connections owned by the pool on the given loop" and the method body is: ``` async def close_loop(self,...