Skip to content Skip to sidebar Skip to footer

How To Create A .py File For Google App Engine?

I am just at the very start of what I think is gonna be a long journey exploring the world of applications in Google App Engine using Python. I have just downloaded Python 2.6.4 f

Solution 1:

When you downloaded and installed Python, you also installed IDLE. You can use this to easily write, run, debug and save .py files with syntax highlighting. To get started, just open IDLE, and select File -> New Window.


Solution 2:

A .py file is a text file containing Python syntax. Use your favourite programming editor, or even NotePad.

Regarding your second problem, there's an option in Windows Explorer about hiding file extensions. Make sure it isn't checked -- you might well actually have renamed your file helloworld.py.txt but only seen helloworld.py


Solution 3:

You will need a better editor than Notepad. With Notepad, use Save As..., and type "helloworld.py" in the dialog, including quotes so that the file extension is .py instead of .txt


Solution 4:

I am kind of puzzled here: How do I create a .py file? Is it like I need to create a notepad file (.txt) and name it helloworld.py?

I'm not on windows, but thats how it works on other operating systems: Create a file with an editor, then save as ...

ps. and .py is the extension (like .docx, .bat, ...), but it's just a convention (although a highly recommended one) ..

pps. heard the http://www.e-texteditor.com/ has more capabilities than notepad ..


Solution 5:

You have to be aware that the ending signifies recognition of files, not content. Name a file .py simply hints to the user (and the GUI) that it most likely is a python file.

That being said, python files are merely text files. You can simply create a text file with Notepad (or your editor of choice) and rename the ending to .py and work from there. Most modern editors will also highlight the syntax based on file endings.


Post a Comment for "How To Create A .py File For Google App Engine?"