in Technology by

What is the difference between underscore and self (i.e self.xx and _xx) ?

1 Answer

0 votes
by
when you are using the self.XX, you access the property via the setter or getter. when you are using the _XX, you access the property directly skip the setter or getter

Related questions

0 votes
    There is only one question related to this and it is more about which one is better. I just don't ... exactly lies the difference? Select the correct answer from above options...
asked Jan 27, 2022 in Education by JackTerrance
0 votes
    What is the meaning of using leading underscores before the name of an object in Python? And what's the difference ... , method, etc.? Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    What is the meaning of _ after for in this code? if tbh.bag: n = 0 for _ in tbh.bag.atom_set(): n += 1 Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    A and B are two independent witnesses (i.e., there is no collision between them) in a case. The probability ... the statement is true? Select the correct answer from above options...
asked Nov 19, 2021 in Education by JackTerrance
0 votes
0 votes
    The rate for the decomposition of NH3 on platinum surface is zero order. What are the rate of production of N2 ... 10-4mollitre-1s-1? Select the correct answer from above options...
asked Jan 4, 2022 in Education by JackTerrance
0 votes
    The rate constant for the first order decompoistion of a certain reaction is described by the equation logk(s-1)= ... periof be 256min? Select the correct answer from above options...
asked Jan 4, 2022 in Education by JackTerrance
0 votes
    Let's play around with matrix derivatives! A trace Tr(X)Tr(X) of a matrix XX is a sum of its diagonal ... a matrix notation for it: Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
0 votes
    A 2 2 square matrix is written down at random using the number 1, -1 as elements. The probability that the matrix is ... 5/8 D. 1/3 Select the correct answer from above options...
asked Nov 15, 2021 in Education by JackTerrance
0 votes
    Can I become a self-taught data scientist? Select the correct answer from above options...
asked Jan 17, 2022 in Education by JackTerrance
0 votes
    In conductors, the E and H vary by a phase difference of (a) 0 (b) 30 (c) ... theory proposed by,electromagnetic theory engineering physics,electromagnetic theory nptel...
asked Nov 6, 2021 in Education by JackTerrance
...