Follow

!

If I get objects as results in Python, there should most probably be, methods that are provided to work with them.

I would always see an object and then go, this is not a string, this is not a dict, what the fuck do I do with this turd?

Now I know, I must go look at the documentation, that’ll tell me what I can and cannot do with that turd :)

· · Web · 1 · 0 · 1

@jason try `dir(object)` in your interactive Python shell to get a list of the functions and fields of the object

Sign in to participate in the conversation
Mastodon

Be kind, be helpful or begone!