Re: [Tutor] How to have unique identifiers for multiple object instances of a given class?

2018-08-26 Thread Mats Wichmann
since your data is somewhat heirarchical - you have records for each game, which can contain from zero to many score records - please consider looking at json or yaml over csv for your persistent storage. they're no harder to program for in Python, and in addition to representing the style of y

Re: [Tutor] How to have unique identifiers for multiple object instances of a given class?

2018-08-26 Thread boB Stepp
On Sun, Aug 26, 2018 at 6:10 PM Alan Gauld via Tutor wrote: > > On 26/08/18 23:38, boB Stepp wrote: > > > class SolitaireGame(): > > def __init__(self, name): > > self.name = name > > > Say I go with the aforementioned game with 13 separate scores to keep > > track of. The names of th

Re: [Tutor] How to have unique identifiers for multiple object instances of a given class?

2018-08-26 Thread boB Stepp
On Sun, Aug 26, 2018 at 7:48 PM Steven D'Aprano wrote: > > On Sun, Aug 26, 2018 at 05:38:52PM -0500, boB Stepp wrote: > > > I feel that I may be missing something truly obvious. I am pondering > > the design of a solitaire scorekeeper program. It is just meant to be > > an electronic scorekeeper

Re: [Tutor] How to have unique identifiers for multiple object instances of a given class?

2018-08-26 Thread Steven D'Aprano
On Sun, Aug 26, 2018 at 05:38:52PM -0500, boB Stepp wrote: > I feel that I may be missing something truly obvious. I am pondering > the design of a solitaire scorekeeper program. It is just meant to be > an electronic scorekeeper for hands of solitaire that I plan with a > "real" deck of cards,

Re: [Tutor] Hi This is Michael Munn and I’m interested of the Python programming language.

2018-08-26 Thread Mats Wichmann
see also https://wiki.python.org/moin/PythonEditors On August 26, 2018 5:19:20 PM MDT, Alan Gauld via Tutor wrote: >On 26/08/18 18:42, Michael Munn wrote: > >> I’m using Python 3.6 and I heard a friend of mine told me that He >write his >> code using a word processer called Note pad plus some th

Re: [Tutor] Hi This is Michael Munn and I’m interested of the Python programming language.

2018-08-26 Thread Alan Gauld via Tutor
On 26/08/18 18:42, Michael Munn wrote: > I’m using Python 3.6 and I heard a friend of mine told me that He write his > code using a word processer called Note pad plus some thing like that to > code. I assume you are on Windows OS? In which case you probably mean Notepad++ (like in the C++ progra

Re: [Tutor] How to have unique identifiers for multiple object instances of a given class?

2018-08-26 Thread Alan Gauld via Tutor
On 26/08/18 23:38, boB Stepp wrote: > class SolitaireGame(): > def __init__(self, name): > self.name = name > Say I go with the aforementioned game with 13 separate scores to keep > track of. The names of these games might be "Two_Mastery", > "Three_Mastery", ... , "Ace_Mastery". In

[Tutor] Hi This is Michael Munn and I’m interested of the Python programming language.

2018-08-26 Thread Michael Munn
Hi All, This is Michael and I have a question about resources on starting to code python. I’m using Python 3.6 and I heard a friend of mine told me that He write his code using a word processer called Note pad plus some thing like that to code. Any idea where to get this word Processer? Please resp

[Tutor] How to have unique identifiers for multiple object instances of a given class?

2018-08-26 Thread boB Stepp
Python 3.6.6, Linux Mint I feel that I may be missing something truly obvious. I am pondering the design of a solitaire scorekeeper program. It is just meant to be an electronic scorekeeper for hands of solitaire that I plan with a "real" deck of cards, instead of a computer game. I might want