[pythonvis] Re: Workbench?

  • From: "Jim Snowbarger" <snowman@xxxxxxxxxxxxxxxx>
  • To: <pythonvis@xxxxxxxxxxxxx>
  • Date: Wed, 17 Jun 2015 20:41:22 -0500

Pretty interesting. And that just returns a dictionary of stuff, so, you
can assign it to a variable, and then figure some way to browse through it.


None of this matters much to somebody who is familiar enough with the most
commonly used classes that they just know it second nature.

But, I'm not at that stage yet. So, I'm looking for reminders.

At the moment, I think Idle is an easier solution for occasional use, only
as directed.





From: pythonvis-bounce@xxxxxxxxxxxxx [mailto:pythonvis-bounce@xxxxxxxxxxxxx]
On Behalf Of Jeffrey Thompson
Sent: Wednesday, June 17, 2015 4:44 PM
To: pythonvis@xxxxxxxxxxxxx
Subject: [pythonvis] Re: Workbench?



Jim and other pythonistas,



There is a way to get a listing of (some of?) the methods
and properties of a class:



class wannabe()

...

def changehow(a_change):

...

# end change_how):()

# end class wannabe



wannabe.__dict__

will provide a list of methods and properties.

There is no selectable window from which you can launch or view any item
listed in the output..

I know this works in the interpreter i.e. cmd.exe python.exe gets you into
the interpreter.

From there you can import any given class , and type the expression:

import Any_given_class

any_given_class.__dict__

and you will get a listing of methods and properties.

of the class.

The output is in a strange format.

You might want to write a method or function which will read the output and
produce a window with a list of the output which are clickable,.



I believe that an html combo box in windows will work.

You could run a .bat file to do the work;

one .bat file to create the combo box,

and one combo box to fetch the item for your perusal or to copy and paste
the code into your python file which is a work in progress.



Someone on the list may have a different way to accomplish
this in an easier or better way.



Hope that helps,

Jet (Jeffrey Thompson)



From: pythonvis-bounce@xxxxxxxxxxxxx <mailto:pythonvis-bounce@xxxxxxxxxxxxx>
[mailto:pythonvis-bounce@xxxxxxxxxxxxx] On Behalf Of Jim Snowbarger
Sent: Tuesday, June 16, 2015 12:08 AM
To: pythonvis@xxxxxxxxxxxxx <mailto:pythonvis@xxxxxxxxxxxxx>
Subject: [pythonvis] Workbench?



Hi guys,

What I want is to start typing a reference, and maybe get through the
objectName. Tap the period key, and then pull up a list of methods and
properties that are available on that object, and presss enter to choose one
to use in my code. Is there something like that for python?



Other related posts: