Re: Decoratored functions parsed differently by ast stdlib between 3.7 and 3.8

2021-04-30 Thread Mike Lee Williams
On Friday, April 30, 2021 at 7:55:10 PM UTC-7, Mike Lee Williams wrote: > This trivial bit of code is parsed differently by the ast module between > python > 3.7 and python 3.8. I'm trying to figure out what changed and why, and once I > know that, if it's possible and desirable to retain the 3.

Decoratored functions parsed differently by ast stdlib between 3.7 and 3.8

2021-04-30 Thread Mike Lee Williams
This trivial bit of code is parsed differently by the ast module between python 3.7 and python 3.8. I'm trying to figure out what changed and why, and once I know that, if it's possible and desirable to retain the 3.7 behavior for my use case (which needs to give the same result for this input on 3

Re: Start Python programming

2021-04-30 Thread Russell via Python-list
Gazoo wrote: > > > I'd like to start learning Python programming. What sites/tutorials > could you recommend for beginner, please. > I liked the book found at https://automatetheboringstuff.com/ You can read the whole book online. I think you used to be able to download a copy too. It has lot

Re: text displays on screen only when I click to exit the program

2021-04-30 Thread Mirko via Python-list
Am 30.04.2021 um 20:55 schrieb Quentin Bock: > code with comments for context: > > #Create a text based game where the user must find 3 items before > completing a level > #imports and variables for game > import pygame > from pygame import mixer > running = True > #initializes pygame > pygame.ini

text displays on screen only when I click to exit the program

2021-04-30 Thread Quentin Bock
code with comments for context: #Create a text based game where the user must find 3 items before completing a level #imports and variables for game import pygame from pygame import mixer running = True #initializes pygame pygame.init() #creates the pygame window screen = pygame.display.set_mode(

Re: Not found in the documentation

2021-04-30 Thread elas tica
> > the docs are wrong when they say: > > > > .. > > using a backslash). A backslash is illegal elsewhere on a line outside a > > string literal. > > .. > > > You're not passing a backslash. Try print(s). > It would be