NameError question - def(self, master) - master not in namespace within class?

NameError question - def(self, master) - master not in namespace within class?

Post by harija » Sat, 11 Oct 2008 01:17:03


Thanks Jerry and beiff ,
Jerry was right, it was an indent problem . Between using my text
editor and running from commandline something went out of sync and I
didnt catch it probably.
I can now reproduce the error with a bad ident .

These are my first posts to comp.lang.python..and I am very grateful
to everyone for their time .

harijay



> > rint Now seeting master name to setnameinchi>d>in child.py "
> > > > mp = master.trash
> > gt;gt;aster.trash = master.name
> > > > aster.name = "setnameinchild"
> > rint "Reset name no> >rom %s to %s , oldname %s is saved in
> > mastertrash" % (m>st>r.trash, master.name , master.trash)
>
> The last line (starting wit> print), is not indented to the correct
> level. ssuming it's >upposed to be part of the child class's
> __init__ method, it needs >o >ine u> with the rest of that method.
 
 
 

1. "def self.method" vs "class << self; def method"

2. The type or namespace name 'blah' does not exist in the class or namespace 'abc.def'

Hi all,

I have a seemingly simple but strange problem: In an exe assembly, I get
the error above (CS0234) when I build my solution the first time. The
assembly that defines the namespace (abc.def.blah) is correctly referenced,
and the build order is correct. The compile error occurs on a using
statement on the first build (and on subsequent builds if I don't do a
complete rebuild). If I do a second rebuild the error goes away. Also, I
reference and use the assembly that defines that namespace in many other
assemblies (both dll and exe), and they compile just fine in all cases.
Copy Local is set to true, and when the error occurs, the assembly in
question is definitely where it is supposed to be. Any idea what this could
be?

TIA

WNC

3. yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes master!yes

4. Kerberos master/master sync using OpenLDAP N-Way Multi-Master

5. 3 Project Levels Master Master - Master - Projects

6. Question about NTP.CONF master and local-master commands

7. [Related topic] Question about NTP.CONF master and local-master commands

8. Not too sure how to link master/child form when master is data entry

9. master page.master does not exist

10. Master process not found, or multiple masters

11. Master-detail: why doesn't detail DS automatically track row of master (i.e. :param not updated)?

12. /master page.master does not exist

13. to master doc or not to master doc?

14. Not too sure how to link master/child form when master is data ent

15. Multiple Slide Masters (NOT Title Masters)