简体   繁体   中英

Sublime Text 3. Anaconda documentation and autocompletion

I am using the package Anaconda for Sublime Text 3.

I have found out that either the documentation is not alright or I am doing something wrong. For example, in this code:

import ssl
context = ssl.create_default_context()
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE

If I check the documentation of ssl I don't see there is a function called create_default_context() .

I also don't know what attributes the object context I have created has.

When I type context. the possible atributes ( chekc_hostname , verify_mode ...) doesn't pop up.

Thank you on advance.

ssl.create_default_context() is present in both Python 2 (from 2.7.9 onward) and Python 3 , so I don't know why you didn't find it in the docs. The SSLContext docs ( Py2 , Py3 ) describe all of the available methods and attributes for an object of that type.

Without knowing your Anaconda settings, it is impossible to troubleshoot why the plugin isn't working as expected. The documentation is quite clear as to how to set up and use the plugin. If after carefully reading through it you are still having problems, please post your full Anaconda settings in your question ( not in the comments).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM