In article ,
Ian Kelly wrote:
>On Tue, Sep 11, 2012 at 12:45 PM, wrote:
>>
>> Python noob here. Trying to understand a particular syntax:
>>
>> class stuff:
>> def __init__(self):
>> self._bongo = "BongoWorld"
>>
>> What is the significance of the leading underscore in "self._bong
On Wednesday, September 12, 2012 4:23:49 PM UTC+1, (unknown) wrote:
> [...] David Goodger's "Code Like A Pythonista" in the "Naming" section [says
> single leading underscore is bad form].
> (http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#naming)
Looks like it says the opp
On Wed, Sep 12, 2012 at 9:23 AM, wrote:
>
> On Tuesday, September 11, 2012 5:02:31 PM UTC-5, Erik Max Francis wrote:
> > On 09/11/2012 01:53 PM, me wrote:
> > > PEP 8 says this is bad form. What do you think?
> >
> >
> >
> > Where does it say that?
>
> Apologies. It's in David Goodger's "Code Li
On Tuesday, September 11, 2012 5:02:31 PM UTC-5, Erik Max Francis wrote:
> On 09/11/2012 01:53 PM, me wrote:
>
> > On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote:
>
> >> On Tue, Sep 11, 2012 at 12:45 PM, I wrote:
>
> >>> What is the significance of the leading underscore in "self._b
On Tue, Sep 11, 2012 at 11:10 PM, Dwight Hutto wrote:
> Not to jump in with another question(this seems somewhat relevant to the
> conversation, maybe not), but is this similar to a private,public, or
> protected class similar to the C type langs?
More like "this is an implementation detail and i
On 09/12/12 00:10, Dwight Hutto wrote:
> Not to jump in with another question(this seems somewhat relevant
> to the conversation, maybe not), but is this similar to a
> private,public, or protected class similar to the C type langs?
Close, but C-like languages tend to strictly enforce it, while in
Not to jump in with another question(this seems somewhat relevant to the
conversation, maybe not), but is this similar to a private,public, or
protected class similar to the C type langs?
--
Best Regards,
David Hutto
*CEO:* *http://www.hitwebdevelopment.com*
--
http://mail.python.org/mailman/list
On 09/11/2012 01:53 PM, e.doxta...@gmail.com wrote:
On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote:
On Tue, Sep 11, 2012 at 12:45 PM, I wrote:
What is the significance of the leading underscore in "self._bongo"? I've seen
this a few times and, after looking through PEP 8, I didn'
On 9/11/2012 4:53 PM, e.doxta...@gmail.com wrote:
What is the significance of the leading underscore in "self._bongo"? I've seen
this a few times and, after looking through PEP 8, I didn't see anything relevant, but I
could have missed it.
Single leading underscore is a convention indicati
On Tue, Sep 11, 2012 at 2:53 PM, wrote:
> On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote:
>> Single leading underscore is a convention indicating that the name
>> should be considered private and not used externally. It's a softer
>> version of the double leading underscore that mean
On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote:
> On Tue, Sep 11, 2012 at 12:45 PM, I wrote:
>
> > All
>
> >
>
> > Python noob here. Trying to understand a particular syntax:
>
> >
>
> > class stuff:
>
> > def __init__(self):
>
> > self._bongo = "BongoWorld"
>
> >
On Tue, Sep 11, 2012 at 12:45 PM, wrote:
> All
>
> Python noob here. Trying to understand a particular syntax:
>
> class stuff:
> def __init__(self):
> self._bongo = "BongoWorld"
>
> ---
>
> What is the significance of the leading underscore in "self._bongo"? I've
> seen t
All
Python noob here. Trying to understand a particular syntax:
class stuff:
def __init__(self):
self._bongo = "BongoWorld"
---
What is the significance of the leading underscore in "self._bongo"? I've seen
this a few times and, after looking through PEP 8, I didn't see
13 matches
Mail list logo