boto3 S3客户端记录了CLOSS()方法缺失?
根据,此方法应该存在(我认为在其他地方描述的是解决臭名昭著的未关闭的SSL SSOCKEN警告)。这只是AWS文档缺陷的另一种情况吗?
$ pip freeze | grep boto3
boto3==1.24.19
$ python
Python 3.9.10 (main, Jan 15 2022, 11:48:00)
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import boto3
>>> c = boto3.client('s3')
>>> c.close()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/sbrown/.virtualenvs/moreroku/lib/python3.9/site-packages/botocore/client.py", line 838, in __getattr__
raise AttributeError(
AttributeError: 'S3' object has no attribute 'close'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊,看起来代码的发布即将出现。
https://github.com/boto/boto/botocore/botocore/pull/pull/1810
Ahh, looks like release of the code is imminent.
https://github.com/boto/botocore/pull/1810