Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38946
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <davea@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.067 |
| X-Spam-Evidence | '*H*': 0.87; '*S*': 0.00; 'method.': 0.05; 'outlined': 0.09; 'work"': 0.09; 'passing': 0.15; 'properly': 0.15; 'argument.': 0.16; 'thread.': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'saying': 0.18; 'parameters': 0.20; 'earlier': 0.21; 'work,': 0.22; 'errors': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'looks': 0.26; 'there.': 0.28; 'arguments.': 0.29; 'initialized': 0.29; 'invoke': 0.29; 'smart': 0.29; 'class': 0.29; 'attach': 0.30; 'error': 0.30; 'problem.': 0.32; 'comments': 0.33; 'traceback': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; "can't": 0.34; 'self': 0.34; 'pm,': 0.35; "won't": 0.35; 'explain': 0.36; 'but': 0.36; 'being': 0.37; 'detail': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'first': 0.61; 'is.': 0.62; 'thomas': 0.62; 'more': 0.63; 'received:74.208': 0.71; "it'd": 0.84; 'received:74.208.4.194': 0.84; '"it': 0.91; 'bob': 0.91; 'cutting': 0.93; 'examine': 0.95 |
| Date | Fri, 15 Feb 2013 13:45:59 -0500 |
| From | Dave Angel <davea@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: inheritance and how to use it |
| References | <511E6971.5040109@gmail.com> <511E6C25.9020502@davea.name> <511E6F05.1090201@gmail.com> <511E7885.8060900@davea.name> <511E7E62.7020305@gmail.com> |
| In-Reply-To | <511E7E62.7020305@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:lEjWe7VgihLk+IWYCheS7kgspGOFAXGld1dhZ3A9bac MfX859/WvsyWs1F1yux4KBOb1jOU94nAHG4DpXaCQhEmsLM/0Z JgXGKOCOp9MGJ3/wg8UB4E+ZHouDHYywdVgkqLDRaYMF3K3EZu ZDQZI68MofECULdTfcdodNoIQWyUCBmCpe8ZFt7ScPxkS4sIC8 Qyl0Cldaec4U07yeBKc6wwJ16n75ujUMMxsp1cF2Z2diHCaJ6m ++D2OiurllDSqI+HHg5Alo6G7WOvqcLXzWs3EE7+5UnRdxPZy7 9R1/bKbgAW+52v0H+7tc3x1k5XTqDOsgqF+8YWVkd0fY81rAg= = |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1835.1360953976.2939.python-list@python.org> (permalink) |
| Lines | 32 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1360953976 news.xs4all.nl 6904 [2001:888:2000:d::a6]:59877 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:38946 |
Show key headers only | View raw
On 02/15/2013 01:28 PM, Bob Brusa wrote: > >> <snip> >> > > to make it more clear, I attach a cut-down version of my program. It > includes comments to explain in more detail what my problem is. > Bob > Good job cutting down the sample. Naturally, it'd have been smart to tell us you don't get the same traceback this way. But it looks like the first problem is in that missing __init__() method. Instead of saying "it doe not work" it'd be good to examine just what error traceback you got when you did have it there. I suspect it's because you're passing parameters in when you invoke it (iodev, baud_rate = 57600) but you don't have any arguments. You don't even have the self argument. You are also missing the super call, as outlined earlier in this thread. So the base class won't being properly initialized once you fix the first problem. Reread Thomas Rachel's message, and if you still can't make it work, tell us what errors you still get, or what you don't understand. -- DaveA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: inheritance and how to use it Dave Angel <davea@davea.name> - 2013-02-15 13:45 -0500
csiph-web