Python programmers prefer to use name convention to make method of class "looks" private.Usually they use of '_' before the private method or private attribute name.This private method like the one you mentioned def _abc is not intentionaly used outside the class other then it is used among other c
[linda.s]
| I got a sample code and found some
| function definition looks like def _abc
| There is one underscore before the function name "abc",
| what does it mean?
It's a convention which indicates to any user of the code
(including the original developer) that the function is
not intended to
I got a sample code and found some
function definition looks like def _abc
There is one underscore before the function name "abc",
what does it mean?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor