On May 29, 3:08 am, Matimus <[EMAIL PROTECTED]> wrote:
> > I have a game class, and the game has a state. Seeing that Python has
> > no enumeration type, at first I used strings to represent states:
> > "paused", "running", etc. But such a representation has many
> > negatives, so I decided to look
> I have a game class, and the game has a state. Seeing that Python has
> no enumeration type, at first I used strings to represent states:
> "paused", "running", etc. But such a representation has many
> negatives, so I decided to look at the Enum implementation given
> here:http://aspn.activesta
On May 28, 12:09 pm, eliben <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a game class, and the game has a state. Seeing that Python has
> no enumeration type, at first I used strings to represent states:
> "paused", "running", etc. But such a representation has many
> negatives, so I decided to l
eliben <[EMAIL PROTECTED]> writes:
> Hello,
>
> I have a game class, and the game has a state. Seeing that Python has
> no enumeration type, at first I used strings to represent states:
> "paused", "running", etc. But such a representation has many
> negatives, so I decided to look at the Enum imp
eliben wrote:
Hello,
I have a game class, and the game has a state. Seeing that Python has
no enumeration type, at first I used strings to represent states:
"paused", "running", etc. But such a representation has many
negatives, so I decided to look at the Enum implementation given here:
http://
Hello,
I have a game class, and the game has a state. Seeing that Python has
no enumeration type, at first I used strings to represent states:
"paused", "running", etc. But such a representation has many
negatives, so I decided to look at the Enum implementation given here:
http://aspn.activestate