You are not logged in.

#1 2009-09-08 20:20:34

TomB17
Member
Registered: 2009-09-02
Posts: 102

Python inheritance issue

I'm trying to expand the functionality of the ConfigParser class and it is not working as I would expect.  I wrote my own class, inherited ConfigParser.ConfigParser, and expected to have all of the ConfigParser methods available to routines that instantiate objects of my new class.    It is not working this way.

I've done this with other classes with no issues.  Is there something about ConfigParser that could be causing an issue?

I'd post code but there are a lot of lines that are somewhat relevant.  I'm looking for some insight at this point.


Thanks!

Last edited by TomB17 (2009-09-08 20:21:12)

Offline

#2 2009-09-08 22:03:04

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Python inheritance issue

hard to say without some code/example
(edit: maybe use a nopaste if you want to paste a sizable chunk of code)

Last edited by cactus (2009-09-08 22:03:28)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2009-09-09 01:24:02

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: Python inheritance issue

Specifically what methods are you trying to use?  What error is given?  Can you give a rough outline of your program with key lines?

Offline

Board footer

Powered by FluxBB