Advertisement

03.28.2008 at 02:19PM PDT, ID: 23278603
[x]
Attachment Details

How to create this Python class

Asked by davidw88 in Python Scripting Language

Tags: Python

Hi Experts,

I have a Python class called "KeywordTree(object)" already. Now I want to create another Python class "KeywordMember"  to contain some extra data.

The "KeywordTree" class should contain an instance of this new created class "KeywordMember". My questions are
(1.) Where should I declare this "KeywordMember" class?
(2.) How to add a class variable "keyword_dict" to the "KeywordTree" class? "keyword_dict" is a dictionary.

I am new to Python. I read tutorials online but did not find my answers.

All replies are highly appreciated!
Start Free Trial
[+][-]03.29.2008 at 10:08AM PDT, ID: 21237302

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.29.2008 at 02:45PM PDT, ID: 21238259

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.29.2008 at 04:50PM PDT, ID: 21238671

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.30.2008 at 02:03PM PDT, ID: 21241934

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.30.2008 at 05:43PM PDT, ID: 21242562

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.31.2008 at 10:44AM PDT, ID: 21247496

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.31.2008 at 10:23PM PDT, ID: 21251394

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Python Scripting Language
Tags: Python
Sign Up Now!
Solution Provided By: pepr
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628