Re: Does underscore has any special built-in meaningin Python ?

2009-07-31 Thread Aahz
In article 062813eb-7eec-4504-b32c-abadf02c3...@12g2000pri.googlegroups.com, dandi kain dandi.k...@gmail.com wrote: What is the functionality of __ or _ , leading or trailing an object , class ot function ? Is it just a naming convention to note special functions and objects , or it really mean

Re: Does underscore has any special built-in meaningin Python ?

2009-07-31 Thread Ben Finney
a...@pythoncraft.com (Aahz) writes: One more thing: if you have global module names with a single leading underscore (e.g. _foo), they will not be loaded when you use from module import * However, import * is strongly discouraged for the most part. Dude, that's exactly the “underscore

Re: Does underscore has any special built-in meaningin Python ?

2009-07-30 Thread Bruno Desthuilliers
Ben Finney a écrit : dandi kain dandi.k...@gmail.com writes: What is the functionality of __ or _ , leading or trailing an object , class ot function ? OP Please note that in Python, classes and functions are objects too. But anyway, these underscores are part of *identifiers*, not objects

Does underscore has any special built-in meaningin Python ?

2009-07-29 Thread dandi kain
Hello everybody, I have just started learning Python.I heard its simple so I pick a presentation [1] and tried to work on it.But when it comes to underscores leading and trailing an object I dont understand any.I look through the python manual also but that was not helping .I searched some forums

Re: Does underscore has any special built-in meaningin Python ?

2009-07-29 Thread Benjamin Kaplan
On Wed, Jul 29, 2009 at 1:59 PM, dandi kain dandi.k...@gmail.com wrote: Hello everybody, I have just started learning Python.I heard its simple so I pick a presentation [1] and tried to work on it.But when it comes to underscores leading and trailing an object I dont understand any.I look

Re: Does underscore has any special built-in meaningin Python ?

2009-07-29 Thread Jan Kaliszewski
29-07-2009 Benjamin Kaplan benjamin.kap...@case.edu wrote: On Wed, Jul 29, 2009 at 1:59 PM, dandi kain dandi.k...@gmail.com wrote: [snip What is the functionality of __ or _ , leading or trailing an object , class ot function ? Is it just a naming convention to note special functions and

Re: Does underscore has any special built-in meaningin Python ?

2009-07-29 Thread Terry Reedy
Benjamin Kaplan wrote: On Wed, Jul 29, 2009 at 1:59 PM, dandi kain dandi.k...@gmail.com wrote: Hello everybody, I have just started learning Python.I heard its simple so I pick a presentation [1] and tried to work on it.But when it comes to underscores leading and trailing an object I dont

Re: Does underscore has any special built-in meaningin Python ?

2009-07-29 Thread alex23
On Jul 30, 3:59 am, dandi kain dandi.k...@gmail.com wrote: What is the functionality of __ or _ , leading or trailing an object , class ot function ? Is it just a naming convention to note special functions and objects , or it really mean someting to Python ? I think everyone else has covered

Re: Does underscore has any special built-in meaningin Python ?

2009-07-29 Thread Ben Finney
dandi kain dandi.k...@gmail.com writes: What is the functionality of __ or _ , leading or trailing an object , class ot function ? There is no change in functionality. It has some slight effects on import, but as a beginner you shouldn't need to worry about that. Is it just a naming