Python Forum
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
inivisible attribute
#4
(Feb-10-2017, 06:02 PM)micseydel Wrote: Wait, do you not actually want a global, but rather just an invisible instance attribute? Just use double underscore prefix. It's not bullet-proof but nothing in Python is.

i want it to be visible to several methods within the class.  i guess i can just leave it visible outside the class and leave it up to the programmer using the class to not mess with it.  __using __a __double __underscore _on __its __name __sounds __like __a  __good __idea.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
inivisible attribute - by Skaperen - Feb-10-2017, 09:38 AM
RE: inivisible attribute - by micseydel - Feb-10-2017, 06:01 PM
RE: inivisible attribute - by micseydel - Feb-10-2017, 06:02 PM
RE: inivisible attribute - by Skaperen - Feb-11-2017, 01:43 AM
RE: inivisible attribute - by micseydel - Feb-12-2017, 01:48 AM
RE: inivisible attribute - by Skaperen - Feb-12-2017, 05:22 AM
RE: inivisible attribute - by micseydel - Feb-12-2017, 06:54 AM
RE: inivisible attribute - by snippsat - Feb-12-2017, 11:16 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020