Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32824
| Received | by 10.224.189.16 with SMTP id dc16mr1025756qab.0.1352214181343; Tue, 06 Nov 2012 07:03:01 -0800 (PST) |
|---|---|
| Received | by 10.52.65.33 with SMTP id u1mr204884vds.18.1352214181317; Tue, 06 Nov 2012 07:03:01 -0800 (PST) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!c7no8520605qap.0!news-out.google.com!gf5ni18188417qab.0!nntp.google.com!c7no8814464qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Tue, 6 Nov 2012 07:03:01 -0800 (PST) |
| In-Reply-To | <mailman.3324.1352211254.27098.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=90.163.62.20; posting-account=4MmJjAoAAAAh9Xp7DS1V1sLlN8hNHPkA |
| NNTP-Posting-Host | 90.163.62.20 |
| References | <fda16cf9-38dd-49ae-9f49-92bc963aac2e@googlegroups.com> <mailman.3324.1352211254.27098.python-list@python.org> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <23df4f00-2285-44cc-a9aa-aeb319d000fb@googlegroups.com> (permalink) |
| Subject | Re: Base class and Derived class question |
| From | cyberirakli@gmail.com |
| Cc | cyberirakli@gmail.com, python-list@python.org, d@davea.name |
| Injection-Date | Tue, 06 Nov 2012 15:03:01 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.python:32824 |
Show key headers only | View raw
> in what Python version ?
Python 2.7.3
> How did all those angle brackets get into the file? Are you confusing
>
> an interactive interpreter session with running source files?
I've used angle brackets just for posting here,becauze this forum doesn't support [code][/code]
I have a file called baseClass.py with code abouve and indentation is correct.
Then I open python IDLE and type :
import baseClass as baseClassMod
reload(baseClassMod
class derivedClass(baseClassMod):
def dFunction(self):
print "We are in a derived Class"
After that i get the error above. But if I paste in Python IDLE a code from baseClass.py and just run:
class derivedClass(baseClass):
def dFunction(self):
print "We are in a derived Class"
it works perfectly.
Why happen this?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Base class and Derived class question cyberirakli@gmail.com - 2012-11-06 05:50 -0800
Re: Base class and Derived class question Dave Angel <d@davea.name> - 2012-11-06 09:13 -0500
Re: Base class and Derived class question cyberirakli@gmail.com - 2012-11-06 07:03 -0800
Re: Base class and Derived class question Ian Kelly <ian.g.kelly@gmail.com> - 2012-11-06 08:34 -0700
Re: Base class and Derived class question cyberirakli@gmail.com - 2012-11-06 08:22 -0800
Re: Base class and Derived class question cyberirakli@gmail.com - 2012-11-06 08:22 -0800
Re: Base class and Derived class question cyberirakli@gmail.com - 2012-11-06 07:03 -0800
Re: Base class and Derived class question cyberirakli@gmail.com - 2012-11-06 07:08 -0800
Re: Base class and Derived class question alex23 <wuwei23@gmail.com> - 2012-11-06 18:10 -0800
csiph-web