Posts: 4,646
Threads: 1,493
Joined: Sep 2016
May-16-2021, 07:34 PM
(This post was last modified: May-16-2021, 07:34 PM by Skaperen.)
i have a class named
foo with a method named
bar. i want to create another method named
woot that can be referenced by
bar but not as an
attribute of foo. do i name it
_woot?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,646
Threads: 1,493
Joined: Sep 2016
i know that import won't import those for modules. does that work the same way for methods of classes?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,646
Threads: 1,493
Joined: Sep 2016
basically i was asking if there was a way to hide the methods like i hide functions (and variables) in a module. i'll try defining functions inside a method. this is a class with only one method (beyond init) so putting them there won't be an issue.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,646
Threads: 1,493
Joined: Sep 2016
May-21-2021, 06:31 PM
(This post was last modified: May-21-2021, 06:31 PM by Skaperen.)
for things (i don't create) that gather up object attribute names and do stuff i don't want done. but i can live with this. i just wanted to know if there was a way.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,646
Threads: 1,493
Joined: Sep 2016
it will be visible in the module, so i need to name it
_hidden. yeah, i can put it outside the class. then every method, when i have one than one, can use it.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.