On 20.02.2011 3:48, spir wrote:
On 02/20/2011 12:46 AM, bearophile wrote:
In a Python module if you define a name with a starting underscore,
that name will be private to that module, and it will not be imported
if a command "from module_name import *" is used:
class Name1: pass
def name2():
On Saturday 19 February 2011 15:46:51 bearophile wrote:
> In a Python module if you define a name with a starting underscore, that
> name will be private to that module, and it will not be imported if a
> command "from module_name import *" is used:
>
> class Name1: pass
> def name2(): pass
> _pri
On 02/20/2011 12:46 AM, bearophile wrote:
In a Python module if you define a name with a starting underscore, that name will be
private to that module, and it will not be imported if a command "from module_name
import *" is used:
class Name1: pass
def name2(): pass
_private_name3 = 3
name4 = 4
In a Python module if you define a name with a starting underscore, that name
will be private to that module, and it will not be imported if a command "from
module_name import *" is used:
class Name1: pass
def name2(): pass
_private_name3 = 3
name4 = 4
In Python there is another optional way to