Commit a8a8d4aa authored by Guido van Rossum's avatar Guido van Rossum

removed GPL mumbo jumbo

parent deaa1054
...@@ -3,12 +3,14 @@ Newsgroups: comp.lang.python,comp.answers,news.answers ...@@ -3,12 +3,14 @@ Newsgroups: comp.lang.python,comp.answers,news.answers
Followup-to: comp.lang.python Followup-to: comp.lang.python
From: guido@cwi.nl (Guido van Rossum) From: guido@cwi.nl (Guido van Rossum)
Reply-to: guido@cwi.nl (Guido van Rossum) Reply-to: guido@cwi.nl (Guido van Rossum)
Expires: Sat, 1 Apr 1995 00:00:00 GMT
Supersedes: <D1sGoJ.Mps@cwi.nl>
Approved: news-answers-request@MIT.Edu Approved: news-answers-request@MIT.Edu
Archive-name: python-faq/part1 Archive-name: python-faq/part1
Submitted-by: Guido van Rossum <guido@cwi.nl> Submitted-by: Guido van Rossum <guido@cwi.nl>
Version: 1.20 Version: 1.20++
Last-modified: 7 Februari 1995 Last-modified: 16 Februari 1995
This article contains answers to Frequently Asked Questions about This article contains answers to Frequently Asked Questions about
Python (an object-oriented interpreted programming language -- see Python (an object-oriented interpreted programming language -- see
...@@ -67,12 +69,14 @@ Here's an overview of the questions per chapter: ...@@ -67,12 +69,14 @@ Here's an overview of the questions per chapter:
1.5. Q. Are there other ftp sites that mirror the Python distribution? 1.5. Q. Are there other ftp sites that mirror the Python distribution?
1.6. Q. Is there a newsgroup or mailing list devoted to Python? 1.6. Q. Is there a newsgroup or mailing list devoted to Python?
1.7. Q. Is there a WWW page devoted to Python? 1.7. Q. Is there a WWW page devoted to Python?
1.8. Q. Is there a book on Python, or will there be one out soon? 1.8. Q. Is the Python documentation available on the WWW?
1.9. Q. Are there any published articles about Python that I can quote? 1.9. Q. Is there a book on Python, or will there be one out soon?
1.10. Q. Are there short introductory papers or talks on Python? 1.10. Q. Are there any published articles about Python that I can quote?
1.11. Q. How does the Python version numbering scheme work? 1.11. Q. Are there short introductory papers or talks on Python?
1.12. Q. Are there other ftp sites that carry Python related material? 1.12. Q. How does the Python version numbering scheme work?
1.13. Q. Are there copyright restrictions on the use of Python? 1.13. Q. How do I get a beta test version of Python?
1.14. Q. Are there other ftp sites that carry Python related material?
1.15. Q. Are there copyright restrictions on the use of Python?
2. Python in the real world 2. Python in the real world
2.1. Q. How many people are using Python? 2.1. Q. How many people are using Python?
...@@ -266,15 +270,17 @@ HTML version of the index can be found in the file index.html, ...@@ -266,15 +270,17 @@ HTML version of the index can be found in the file index.html,
1.4. Q. How do I get documentation on Python? 1.4. Q. How do I get documentation on Python?
A. The latest Python documentation set is always available by A. The LaTeX source for the documentation is part of the source
anonymous ftp, e.g. distribution. If you don't have LaTeX, the latest Python
documentation set is always available by anonymous ftp, e.g.
<URL:ftp://ftp.cwi.nl/pub/python/pythondoc-ps1.1.tar.gz>. It is a <URL:ftp://ftp.cwi.nl/pub/python/pythondoc-ps1.1.tar.gz>. It is a
gzipped tar file containing PostScript files of the reference manual, gzipped tar file containing PostScript files of the reference manual,
the library manual, and the tutorial. Note that the library manual is the library manual, and the tutorial. Note that the library manual is
the most important one of the set, as much of Python's power stems the most important one of the set, as much of Python's power stems
from the standard or built-in types, functions and modules, all of from the standard or built-in types, functions and modules, all of
which are described here. PostScript for a high-level description of which are described here. PostScript for a high-level description of
Python is in the file nluug-paper.ps. Python is in the file nluug-paper.ps (a separate file on the ftp
site).
1.5. Q. Are there other ftp sites that mirror the Python distribution? 1.5. Q. Are there other ftp sites that mirror the Python distribution?
...@@ -310,17 +316,35 @@ MH, you could use "inc -file file". ...@@ -310,17 +316,35 @@ MH, you could use "inc -file file".
1.7. Q. Is there a WWW page devoted to Python? 1.7. Q. Is there a WWW page devoted to Python?
A. The official Python home page is A. Yes, <URL:http://www.cwi.nl/~guido/Python.html> is the official
<URL:http://www.cwi.nl/~guido/Python.html>. Michael McLay at NIST Python home page. Michael McLay at NIST maintains a Python page at
maintains a Python page at <URL:http://www.eeel.nist.gov/python/>. <URL:http://www.eeel.nist.gov/python/>. And finally the emerging
Python Software Association has a preliminary web server at
<URL:http://www.cminds.com/python/> (eventually to be moved to
somewhere under python.org).
1.8. Q. Is there a book on Python, or will there be one out soon? 1.8. Q. Is the Python documentation available on the WWW?
A. I am writing one. Addison-Wesley is interested. Optimistically, A. Yes, see <URL:http://www.cwi.nl/~guido/Python.html> (Python's home
it will be ready for the press by mid-1995. Mark Lutz is working on page). It contains pointers to hypertext versions of the whole
one too -- more details as they emerge. documentation set (as hypertext, not just PostScript).
1.9. Q. Are there any published articles about Python that I can quote? If you wish to browse this collection of HTML files on your own
machine, it is available bundled up by anonymous ftp,
e.g. <URL:ftp://ftp.cwi.nl/pub/python/python-html.tar.gz>. (This
requires some manual patch-up for the references to images,
unfortunately.)
An Emacs-INFO set containing the library manual is also available by
ftp, e.g. <URL:ftp://ftp.cwi.nl/pub/python/python-lin-info.tar.gz>.
1.9. Q. Is there a book on Python, or will there be one out soon?
A. I am writing one. Publishers are interested. Optimistically, it
will be ready for the press by mid-1995. Mark Lutz is working on one
too -- more details as they emerge.
1.10. Q. Are there any published articles about Python that I can quote?
A. So far the only refereed and published article that describes A. So far the only refereed and published article that describes
Python in some detail is: Python in some detail is:
...@@ -332,7 +356,7 @@ Python in some detail is: ...@@ -332,7 +356,7 @@ Python in some detail is:
LaTeX source for this paper is available as part of the Python source LaTeX source for this paper is available as part of the Python source
distribution. distribution.
1.10. Q. Are there short introductory papers or talks on Python? 1.11. Q. Are there short introductory papers or talks on Python?
A. A recent high-level description of Python is: A. A recent high-level description of Python is:
...@@ -349,7 +373,7 @@ Slides for a talk on Python that I gave at the Usenix Symposium on ...@@ -349,7 +373,7 @@ Slides for a talk on Python that I gave at the Usenix Symposium on
Very High Level Languages in Santa Fe, NM, USA in October 1995 are Very High Level Languages in Santa Fe, NM, USA in October 1995 are
available as <URL:ftp://ftp.cwi.nl/pub/python/vhll-slides.ps>. available as <URL:ftp://ftp.cwi.nl/pub/python/vhll-slides.ps>.
1.11. Q. How does the Python version numbering scheme work? 1.12. Q. How does the Python version numbering scheme work?
A. Python versions are numbered A.B.C. A is the major version number A. Python versions are numbered A.B.C. A is the major version number
-- it is only incremented for major changes in functionality or source -- it is only incremented for major changes in functionality or source
...@@ -359,7 +383,18 @@ incremented for each new release. Note that in the past, patches have ...@@ -359,7 +383,18 @@ incremented for each new release. Note that in the past, patches have
added significant changes; in fact the changeover from 0.9.9 to 1.0.0 added significant changes; in fact the changeover from 0.9.9 to 1.0.0
was the first time that either A or B changed! was the first time that either A or B changed!
1.12. Q. Are there other ftp sites that carry Python related material? Beta versions have an additional suffix of "-beta-N" for some small
number N. Note that (for instance) all versions labeled 1.2-beta-N
*precede* the actual release of 1.2.
1.13. Q. How do I get a beta test version of Python?
A. Write me. I might like you :-) Seriously, anybody who has
previously used and installed Python can become a beta tester, but I
expect feedback, so you have to write me first before I divulge the
secret location of the latest beta release.
1.14. Q. Are there other ftp sites that carry Python related material?
A. An interesting ftp site for Python users is ftp.markv.com; the A. An interesting ftp site for Python users is ftp.markv.com; the
directory pub/python contains a growing collection of interesting directory pub/python contains a growing collection of interesting
...@@ -370,7 +405,7 @@ extension .readme) in the publicly writable directory ...@@ -370,7 +405,7 @@ extension .readme) in the publicly writable directory
<lance@markv.com>. (I've heard complaints about this service not <lance@markv.com>. (I've heard complaints about this service not
being very responsive -- try at your own risk.) being very responsive -- try at your own risk.)
1.13. Q. Are there copyright restrictions on the use of Python? 1.15. Q. Are there copyright restrictions on the use of Python?
A. Hardly. You can do anything you want with the source, as long as A. Hardly. You can do anything you want with the source, as long as
you leave the copyrights in, and display those copyrights in any you leave the copyrights in, and display those copyrights in any
...@@ -456,10 +491,10 @@ in the early stages of development, in fact new, stable releases ...@@ -456,10 +491,10 @@ in the early stages of development, in fact new, stable releases
2.5. Q. When will the next version be released? 2.5. Q. When will the next version be released?
A. I am planning to release 1.2 in January 1995. It will contain A. I am planning to release 1.2 in February or early March 1995. It
hooks into the implementation of the import command, a (still limited) will contain hooks into the implementation of the import command, a
form of persistent objects, and the usual complement of bug fixes (still limited) form of persistent objects, and the usual complement
(including many fixed memory leaks and thread problems). of bug fixes (including many fixed memory leaks and thread problems).
2.6. Q. What new developments are expected for Python in the future? 2.6. Q. What new developments are expected for Python in the future?
...@@ -582,14 +617,12 @@ toplevel). ...@@ -582,14 +617,12 @@ toplevel).
3.8. Q. Python built with gcc for the DEC Alpha doesn't work. 3.8. Q. Python built with gcc for the DEC Alpha doesn't work.
People have reported problems with gcc 2.5.8 up to 2.6.2. The People have reported problems with gcc 2.5.8 up to 2.6.3. The DEC
DEC OSF/1 cc compiler does not have these problems so it's probably OSF/1 cc compiler does not have these problems so it's likely a gcc
gcc's fault. The latest news is that the problem still exists but bug. The latest news is that (at least in the 1.2 beta release) the
only when you use -O and only in the Modules subdirectory. So one problem still exists but only when you use -O, and only affects the
solution is to compile everything except Modules with gcc -O and then code generated from Python/marshal.c. A fix is to change "long i, n;"
do the Modules directory with gcc without -O. If you find a version into "int i, n;" in w_object().
of gcc which doesn't have this bug or if you can reduce it further to
a particular file, please let me know.
3.9. Q. I use VPATH but some targets are built in the source directory. 3.9. Q. I use VPATH but some targets are built in the source directory.
...@@ -642,23 +675,30 @@ here but I've been told that it is the place for readline bugs.) ...@@ -642,23 +675,30 @@ here but I've been told that it is the place for readline bugs.)
3.11. Q. Trouble building Python on Linux. 3.11. Q. Trouble building Python on Linux.
A. (Adapted from Bennet Todd:) A. In 1.1 and 1.1.1, there's a bug in the reference counting logic of
ternary pow() which is only tripped by very picky mallocs, like the
GNU malloc on Linux. This has been fixed in 1.2. To continue the
tests, just disable the tests of pow() with three arguments from
Lib/test/test_b2.py.
It seems to work for some people but not for others. Apart from this, Python builds and runs fine on most Linux versions.
Bennet Todd has this to say on the subject:
This might depend on which Linux release you're using. Older Linux It seems to work for some people but not for others.
releases had (understandably) fewer gracious hack to improve Unix
compatibility; really old Linux was Posix 1003.1 compatible, without
nearly as much Unix compatibility as one might have wished. Current
releases of Linux build most current free software, either BSD or
System V, with little or no trouble.
Besides that, there are quite a few different releases currently, This might depend on which Linux release you're using. Older Linux
including MCC, Slackware, SLS, and Debian, and probably more. The releases had (understandably) fewer gracious hack to improve Unix
differences between their compilation environments are far smaller compatibility; really old Linux was Posix 1003.1 compatible, without
than they used to be, but they're still updated with different nearly as much Unix compatibility as one might have wished. Current
frequencies. It's likely that the current Slackware works fine, as it releases of Linux build most current free software, either BSD or
currently seems to be the most popular. But that's just a guess. System V, with little or no trouble.
Besides that, there are quite a few different releases currently,
including MCC, Slackware, SLS, and Debian, and probably more. The
differences between their compilation environments are far smaller
than they used to be, but they're still updated with different
frequencies. It's likely that the current Slackware works fine, as
it currently seems to be the most popular. But that's just a guess.
3.12. Q. Trouble with prototypes on Ultrix. 3.12. Q. Trouble with prototypes on Ultrix.
...@@ -693,11 +733,17 @@ A. (Thanks to Andrew Kuchling): ...@@ -693,11 +733,17 @@ A. (Thanks to Andrew Kuchling):
Linux requires that you use the GNU DLD library. The stages of using Linux requires that you use the GNU DLD library. The stages of using
dynamic libraries on Linux are: dynamic libraries on Linux are:
1) Get dld from [some -- see below] Linux site. I believe the version 1) Get dld 3.2.5 from a Linux site. Be careful here; the most recent
number is 3.2.4. Be careful here; the most recent GNU version is GNU version is 3.2.3, and doesn't support Linux; be sure to get it
3.2.3, and doesn't support Linux; be sure to get it from a Linux from a Linux mirror, not a GNU mirror (3.2.4 should also work).
mirror, not a GNU mirror. Compile it and install the library libdld.a Compile it and install the library libdld.a somewhere; I used
somewhere; I used /usr/local/lib. /usr/local/lib.
Suitable URLs for the dld distribution are currently:
<URL:ftp://sunsite.unc.edu/pub/Linux/libs/dld-3.2.5.src.tar.gz> and
<URL:ftp://tsx-11.mit.edu/pub/linux/sources/libs/dld-3.2.5.src.tar.gz>.
There's also a binary distribution of it:
<URL:ftp://sunsite.unc.edu/pub/Linux/libs/dld-3.2.5.bin.tar.gz>.
2) Get Jack Jansen's DL library; its location is given in the 2) Get Jack Jansen's DL library; its location is given in the
_Extending Python_ manual as ftp://ftp.cwi.nl/pub/dynload/. Compile _Extending Python_ manual as ftp://ftp.cwi.nl/pub/dynload/. Compile
...@@ -709,27 +755,10 @@ libraries. ...@@ -709,27 +755,10 @@ libraries.
4) Recompile Python. 4) Recompile Python.
If you run into trouble with this, send me some mail and we can work Note that once ELF is common in the Linux world, it will be much
on the problem. easier (probably within a year) -- the standard SVR4-style dlopen()
interface is then available. This has already proved to work
I don't use ELF binaries, because I'd rather wait until everything is perfectly using a beta version of the ELF-capable GCC for Linux.
reliable; my current impression (and please correct me if I'm wrong)
is that gcc-elf is still a bit wonky, and you have to compile the
entire GNU library yourself. I'd much rather wait until ELF is a more
standard part of Linux distributions. I suspect that once ELF is
common, Python's configure script will pick up the dlfcn.h header file
and dynamic linking will work automatically. Time will tell,
however...
It turns out that Linux DLD is not on sunsite.unc.edu; instead it's
located at:
<URL:ftp://tsx-11.mit.edu/pub/linux/sources/libs/dld-3.2.4.src.tar.gz>
tsx-11 has mirrors; off the top of my head, one is ftp.uu.net, where
the URL would be:
<URL:ftp://ftp.uu.net/systems/unix/linux/sources/libs/dld-3.2.4.src.tar.gz>
4. Programming in Python 4. Programming in Python
...@@ -1013,6 +1042,19 @@ Athena widget sets. Last I heard about it it was included in the WAFE ...@@ -1013,6 +1042,19 @@ Athena widget sets. Last I heard about it it was included in the WAFE
1.0 prerelease 1.0 prerelease
<URL:ftp://ftp.wu-wien.ac.at/pub/src/X11/wafe/wafe-1.0.tar.gz-prerelease>. <URL:ftp://ftp.wu-wien.ac.at/pub/src/X11/wafe/wafe-1.0.tar.gz-prerelease>.
- There's an interface to wxWindows. wxWindows is a portable GUI
class library written in C++. It supports XView, Motif, MS-Windows as
targets. There is some support for Macs and CURSES as well. wxWindows
preserves the look and feel of the underlying graphics toolkit. See
the wxPython WWW page at
<URL:http://www.aiai.ed.ac.uk/~jacs/wx/wxpython/wxpython.html>.
- Python has been mentioned on the "Futurism" subpage of the Fresco
home page <URL:http://www.faslab.com/fresco/HomePage.html>. "Pesto"
is a Python interface to the CORBA dynamic invocation interface, and
thus Fresco. A Pesto prototype is running and is currently being
packaged up for inclusion in the Fresco snapshot.
4.14. Q. Are there any interfaces to database packages in Python? 4.14. Q. Are there any interfaces to database packages in Python?
A. There's an interface to SYBASE by John Redford A. There's an interface to SYBASE by John Redford
...@@ -1442,14 +1484,16 @@ list, to call a function without arguments, pass "()" for the format, ...@@ -1442,14 +1484,16 @@ list, to call a function without arguments, pass "()" for the format,
and to call a function with one argument, surround the argument in and to call a function with one argument, surround the argument in
parentheses, e.g. "(i)". parentheses, e.g. "(i)".
(This function and a companion will be available in 1.2 under the
names PyEval_CallFunction and PyEval_CallMethod.)
5.9. Q. How do I catch the output from print_error()? 5.9. Q. How do I catch the output from print_error()?
A. (Due to Mark Hammond): A. (Due to Mark Hammond):
* in Python code, define an object that supports the "write()" method. * in Python code, define an object that supports the "write()" method.
FWIW, there seems to be a small problem that requires the 'softspace' FWIW, there seems to be a small problem that requires the 'softspace'
attribute to be defined too (I can't remember exact details of the attribute to be defined too (fixed in 1.2).
problem).
* redirect sys.stdout and sys.stderr to this object. * redirect sys.stdout and sys.stderr to this object.
...@@ -1502,6 +1546,8 @@ generic copying operation. ...@@ -1502,6 +1546,8 @@ generic copying operation.
A partial solution will appear in release 1.2. This will also provide A partial solution will appear in release 1.2. This will also provide
a partial solution to the problem of a generic copying operation. a partial solution to the problem of a generic copying operation.
(Partial because it still won't cope with open files etc.; however it
does handle user-defined classes!)
6.3. Q. Why isn't there a switch or case statement in Python? 6.3. Q. Why isn't there a switch or case statement in Python?
......
...@@ -5,44 +5,23 @@ ...@@ -5,44 +5,23 @@
;; Author: 1995 Barry A. Warsaw <bwarsaw@cnri.reston.va.us> ;; Author: 1995 Barry A. Warsaw <bwarsaw@cnri.reston.va.us>
;; 1992-1994 Tim Peters <tim@ksr.com> ;; 1992-1994 Tim Peters <tim@ksr.com>
;; Maintainer: bwarsaw@cnri.reston.va.us ;; Maintainer: bwarsaw@cnri.reston.va.us
;; Created: ??? ;; Created: Feb 1992
;; Version: 2.6 ;; Version: 2.7
;; Last Modified: 1995/03/09 16:07:29 ;; Last Modified: 1995/03/10 15:58:16
;; Keywords: python editing language major-mode ;; Keywords: python editing language major-mode
;; This file is not part of GNU Emacs. ;; This software is provided as-is, without express or implied
;; warranty. Permission to use, copy, modify, distribute or sell this
;; This program is free software; you can redistribute it and/or modify ;; software, without fee, for any purpose and by any individual or
;; it under the terms of the GNU General Public License as published by ;; organization, is hereby granted, provided that the above copyright
;; the Free Software Foundation; either version 2 of the License, or ;; notice and this paragraph appear in all copies.
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program; if not, write to the Free Software
;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
;;; Commentary: ;;; Commentary:
;; ;;
;; This is a major mode for editing Python programs. It was developed ;; This is a major mode for editing Python programs. It was developed
;; by Tim Peters <tim@ksr.com> after an original idea by Michael ;; by Tim Peters <tim@ksr.com> after an original idea by Michael
;; A. Guravage. Tim doesn't appear to be on the 'net any longer so I ;; A. Guravage. Tim doesn't appear to be on the 'net any longer so I
;; have undertaken maintenance of the mode. Here is Tim's original ;; have undertaken maintenance of the mode.
;; copyright notice:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Copyright (c) 1992,1993,1994 Tim Peters
;;
;; This software is provided as-is, without express or implied warranty.
;; Permission to use, copy, modify, distribute or sell this software,
;; without fee, for any purpose and by any individual or organization, is
;; hereby granted, provided that the above copyright notice and this
;; paragraph appear in all copies.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; At some point this mode will undergo a rewrite to bring it more in ;; At some point this mode will undergo a rewrite to bring it more in
;; line with GNU Emacs Lisp coding standards. But all in all, the ;; line with GNU Emacs Lisp coding standards. But all in all, the
...@@ -72,7 +51,7 @@ ...@@ -72,7 +51,7 @@
;; LCD Archive Entry: ;; LCD Archive Entry:
;; python-mode|Barry A. Warsaw|bwarsaw@cnri.reston.va.us ;; python-mode|Barry A. Warsaw|bwarsaw@cnri.reston.va.us
;; |Major mode for editing Python programs ;; |Major mode for editing Python programs
;; |1995/03/09 16:07:29|2.6| ;; |1995/03/10 15:58:16|2.7|
;;; Code: ;;; Code:
...@@ -1804,7 +1783,7 @@ local bindings to py-newline-and-indent.")) ...@@ -1804,7 +1783,7 @@ local bindings to py-newline-and-indent."))
(setq zmacs-region-stays t))) (setq zmacs-region-stays t)))
(defconst py-version "2.6" (defconst py-version "2.7"
"`python-mode' version number.") "`python-mode' version number.")
(defconst py-help-address "bwarsaw@cnri.reston.va.us" (defconst py-help-address "bwarsaw@cnri.reston.va.us"
"Address accepting submission of bug reports.") "Address accepting submission of bug reports.")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment