Talk:Python Programming/Archive 1

Safety of user entered data
Hi, I didn't find anything about preventing XSS injection and SQL injections. I think it's important part of doing web apps. Chris.
 * Although avoiding XSS injection and SQL injection is indeed important, I believe it is a cross-language skill that should be learned separately from the language itself (it could make a book by itself). There are however, aspects of certain language that is often an easy weak-point for malicious hackers coupled with careless programmer. In python, these weak points would be (not a complete list): input (python 2.x and below), eval, exec, popen, and subprocess, possibly open too. These weak points should be mentioned.

Non-programmers python tutorial
If anyone wants to, feel free to take any material from the tutorial that I wrote for the python programming language. Non-programmers python tutorial. I grant permission to relicense it under the GNU Free Documentation License (though I would recommend keeping the public domain exception for the programming samples). Josh Cogliati. Jrincayc 15:42, 16 Jan 2004 (UTC)

Thank you very much! I'll start to integrate it into the module ASAP Thunderbolt16 22:56, 17 Jan 2004 (UTC)
 * I started wikifiying it to simplify integrating it in. See my User:Jrincayc page for the contents. Jrincayc 02:43, 1 Jun 2004 (UTC)
 * More or less finished wikifying it. See User:Jrincayc/Contents -- Jrincayc 02:54, 2 Jun 2004 (UTC)
 * I plan on moving it from User:Jrincayc to Non-programmers Python Tutorial, if nobody objects. I am doing this because the server honors.montana.edu is being permanently shutdown, so I wish to start changing links to it to point to wikibooks rather than honors.montana.edu.   Jrincayc 02:44, 31 August 2006 (UTC)
 * Josh's work is now avaialable at http://www.andamooka.org/reader.pl?section=easytut as his link to the website at U. Montana is broken.--DavidRoss 06:23, 7 August 2006 (UTC)


 * Thank you. That looks excellent. We now have Non-Programmer's Tutorial for Python.
 * Well, that's technically merely a redirect to the specific version of Python we recommend for new people.
 * At the moment it redirects to Non-Programmer's Tutorial for Python 2.6.
 * Someday it will become a redirect to Non-Programmer's Tutorial for Python 3 (after a few more issues are resolved).
 * Even further in the future I expect Non-Programmer's Tutorial for Python to redirect to Non-Programmer's Tutorial for Python 4. :-) --DavidCary (discuss • contribs) 19:18, 29 February 2012 (UTC)

Explain what makes this book unique
People mentioned that Python is already covered in:
 * the book "How to think like a Computer Scientist: Learning with Python", which is already a comprehensive text about Python and covers a lot of topics on programming. Why not use that? --Offray
 * Dive Into Python by Mark Pilgrim, which is licenced under the GNU FDL--::Noldoaran 18:14, 6 Aug 2004 (UTC)
 * The official Python documentation --Beuc

Please add a note in the synopsys or introduction about what fostered the development of this wikibook :)

September 2004 revamp
I am about to delve into this thing, and find it's pretty much in disarray. It appears nobody is workin on it, so I'm going to go right ahead.

I have a structure in mind. The sections of the book will go something like this:


 * 1) Introduction - What is Python; Getting Python; Editing Python programs.
 * 2) Tutorial - A series of examples and exercises.
 * 3) Language concepts - Indepth and complete treatment of Python's implementation of syntax, variables, flow control, files, classes, etc.
 * 4) Standard modules - Indepth documentation of standard modules.
 * 5) Function reference - Indepth documentation of standard functions. (Not sure about this section.)
 * 6) Appendices - List of keywords and similar stuff.

See User:Yath/Python for the full chapter outline.

Yath 19:24, 24 Sep 2004 (UTC)

Web scripting
I'd like to read how to write a page containing a python script and how to configure apache to understand python. Thanks 158.193.85.212 07:28, 5 May 2005 (UTC)

Using saved programs
Could somebody elaborate on how to get a saved python program? I entered the program in a notepad file. But when I try to get it on the python command line, it says that the : in C:\ is wrong syntax. How do I get the programs? --elpenmaster

Naming policy
It seems to me that Programming Python is now compliant with the WB:NP. I'm going to archive this section in a week or so, if no one says so otherwise. Hackbinary (discuss • contribs) 11:58, 12 October 2013 (UTC)

You might want to consider the WB:NP. Your current naming convention is deprecated and has several disadvantages - e.g. it has no navigational links. Also your worthy effort is neither considered a book nor a section inside a book. See wikistats which implements an extensive book and section detector.

--Krischik T 07:15, 11 October 2005 (UTC)


 * Adding to this, it would be a good idea in my opinion to drop the "Programming" pseudo-namespace. Books are starting to move out of that, notably Ada Programming. -Matt 23:41, 17 January 2006 (UTC)


 * Now what should be the new location, is it Python?. --Baijum81 04:40, 8 June 2006 (UTC)
 * One day the pages should be moved by a bot to fit the new scheme, but I'm not sure how to request that. Going to the bot maintainer's talk page will probably do it. -Matt 14:30, 9 June 2006 (UTC)


 * I'm adding the Development stages to each of the sections to it's easier to find stuff to work on at a glance. Help:Development_stages I'm not going to 100% beside any sections (yet) as I am not a python expert, and I am reluctant to say that a section that is complete.  Once I have done this, I will work on fleshing out some of the sections that need content.


 * I am new to contributing to wikibooks--well to any of the wikimedia projects--so any pointers or suggestions would be helpful. -DavidRoss 20:00, 6 Aug 2006 (PDT)

Unified Navigation
The navigation bars on this book are problematic: there doesn't seem to be any kind of general consensus on navigation bar template. What is/should be the convention? --Quartz25 21:19, 8 March 2007 (UTC)

For reference, the convention seems to be to use the  template for the top, and no template is used on the bottom. --Quartz25 23:54, 11 June 2007 (UTC)

Changes to the Introduction section
The introduction, as it now appears, is convoluted, incomplete, and circular. Thus I propose the following pages to be used in the following order:

1. Installing the python language itself
 * Broken down by platform

2. Interactive mode Python interpreter.
 * With demonstrative "Hello World" program (or perhaps a very simple print "What Is Your Name?", print "What is your quest?", print "What is your favorite color?") example.

3. Non-interactive mode python interpreter.
 * With the same demonstrative Hello program, instructing the user to use a simple text editor to save it as a text file.

4. Python Editors & Addons
 * (broken down by OS)
 * I'm placing this last, because this section is always going to be very much up in the air relative to a user's own tastes, but the link to the Python Editors should be maintained.
 * Furthermore, some people will be quite happy with the simple built-in text editors for quite a while, and we want to get them up to coding as quickly as possible, thus this section isn't, strictly speaking, necessary.
 * The addons come very last, because people just taking their first steps into python probably aren't looking to extend the language; again, not strictly necessary, not here anyway.
 * In fact, this last page could probably be best served as 2 separate sections of the appendix.

Once I figure out how to create subfolders and subpages in my user page, I'll start posting my reworking of the introduction there, and people can start commenting as they see fit. --MyOwnLittlWorld 19:24, 4 June 2007 (UTC)

The pages are up now at my user page, please tell me what you think and whether or not the intro should be replaced. Thanks, MyOwnLittlWorld 23:18, 4 June 2007 (UTC)

Question or Suggestion on the TOC
When you say User Interface on the TOC to you mean a topic on UI creation or is it a section to explain the UI of Python IDLE. And if its a UI section I will suggest some GUI Programming using the Tkinter Library if possible also support the Glade Library.

Few changes or Updates
--Dragonecc (talk) 01:34, 8 December 2007 (UTC)
 * 1) Help on the Python OOP page. I can use a little more help on the terms as their still too technical.
 * 2) Help with the installation of Python language (Ubuntu and Mac section)

Two links to Gaming
There seems to be two links to the module "Game Programming in Python" in the index. Should one be deleted? It is messing up the navigation on each page.

If so, which one should go? I was thinking about getting rid of the one under the section "Learning to program in Python" because the game programming is a more advanced subject.

--hypergeek14 (talk) 21:14, 26 July 2008 (UTC)

I have just noticed that there are also two links to the Files module. This time I think the link under "Rocking the Python (Modules)" section should go, as files are a basic concept.

--hypergeek14 (talk) 21:21, 26 July 2008 (UTC)


 * The deed has been done.
 * --hypergeek14 (talk) 21:44, 29 July 2008 (UTC)
 * --hypergeek14 (talk) 21:44, 29 July 2008 (UTC)