Re: [Tutor] _ vs. _name vs. __name vs. name_ vs. __name__ usages

2015-07-28 Thread Alan Gauld
On 25/07/15 22:08, boB Stepp wrote: 4) name_ is used when one is "forced" to use one of Python's reserved words as a name. Various others have commented on the use cases for this. I'd just add that my solution to using a name that's already used by the language (or even already used by my pr

Re: [Tutor] _ vs. _name vs. __name vs. name_ vs. __name__ usages

2015-07-27 Thread Cameron Simpson
On 25Jul2015 16:08, boB Stepp wrote: After having a long discussion with my wife on her user requirements, I am convinced that an OO approach is required. Which is just as well as that has been one of my next areas of learning to do. I am currently reading "Python 3 Object Oriented Programming

Re: [Tutor] _ vs. _name vs. __name vs. name_ vs. __name__ usages

2015-07-25 Thread Ben Finney
boB Stepp writes: > From my understandings to date: > > 1) A single underscore is used conventionally for a "throw-away" > variable, such as a loop index for which the index value is not > actually used in a subsequent calculation. That accurately describes common usage. But it's important to al

Re: [Tutor] _ vs. _name vs. __name vs. name_ vs. __name__ usages

2015-07-25 Thread Mark Lawrence
On 25/07/2015 22:08, boB Stepp wrote: After having a long discussion with my wife on her user requirements, I am convinced that an OO approach is required. Which is just as well as that has been one of my next areas of learning to do. I am currently reading "Python 3 Object Oriented Programming

[Tutor] _ vs. _name vs. __name vs. name_ vs. __name__ usages

2015-07-25 Thread Zachary Ware
On Saturday, July 25, 2015, boB Stepp > wrote: > > 5) __name__ is meant to be used only by the creators of Python for > their special built-in methods, such as __init__, __new__, etc. Everything up to this point was pretty accurate. You're only half right with this one, though; __dunder__ names a

Re: [Tutor] _ vs. _name vs. __name vs. name_ vs. __name__ usages

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 16:08:03 -0500, boB Stepp writes: >After having a long discussion with my wife on her user requirements, >I am convinced that an OO approach is required. Which is just as well >as that has been one of my next areas of learning to do. I am >currently reading "Pytho

[Tutor] _ vs. _name vs. __name vs. name_ vs. __name__ usages

2015-07-25 Thread boB Stepp
After having a long discussion with my wife on her user requirements, I am convinced that an OO approach is required. Which is just as well as that has been one of my next areas of learning to do. I am currently reading "Python 3 Object Oriented Programming" by Dusty Phillips, which so far seems