简体   繁体   中英

How to find class definition knowing an object in Python in PyCharm?

boto libraries have a lot of classes with similar names and different functionalities and vice versa (different names but same functionalities). I would like to track, which one is used in some specific case. Suppose I see an object in the debugger and it is shown as being of type s3.Bucket . How to find it's definition?

Just press Ctrl and click on the class or method.

Update

Press Ctrl + RMB on the object definition and after Ctrl + RMB on class definition.

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