README, Informatyka, Python26

[ Pobierz całość w formacie PDF ]
This is Python version 2.6.2============================Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009Python Software Foundation.All rights reserved.Copyright (c) 2000 BeOpen.com.All rights reserved.Copyright (c) 1995-2001 Corporation for National Research Initiatives.All rights reserved.Copyright (c) 1991-1995 Stichting Mathematisch Centrum.All rights reserved.License information-------------------See the file "LICENSE" for information on the history of thissoftware, terms & conditions for usage, and a DISCLAIMER OF ALLWARRANTIES.This Python distribution contains no GNU General Public Licensed(GPLed) code so it may be used in proprietary projects just like priorPython distributions. There are interfaces to some GNU code but theseare entirely optional.All trademarks referenced herein are property of their respectiveholders.What's new in this release?---------------------------See the file "Misc/NEWS".If you don't read instructions------------------------------Congratulations on getting this far. :-)To start building right away (on UNIX): type "./configure" in thecurrent directory and when it finishes, type "make". This creates anexecutable "./python"; to install in /usr/local, first do "su root"and then "make install".The section `Build instructions' below is still recommended reading.What is Python anyway?----------------------Python is an interpreted, interactive object-oriented programminglanguage suitable (amongst other uses) for distributed applicationdevelopment, scripting, numeric computing and system testing. Pythonis often compared to Tcl, Perl, Java, JavaScript, Visual Basic orScheme. To find out more about what Python can do for you, point yourHow do I learn Python?----------------------The official tutorial is still a good place to start; seeas a list of other introductions, and reference documentation.There's a quickly growing set of books on Python. SeeDocumentation-------------All documentation is provided online in a variety of formats. Inorder of importance for new users: Tutorial, Library Reference,Language Reference, Extending & Embedding, and the Python/C API. TheLibrary Reference is especially of immense value since much ofPython's power is described there, including the built-in data typesand functions!All documentation is also available online at the Python web sitereference, or can be downloaded in many formats for faster access. Thedocumentation is downloadable in HTML, PostScript, PDF, LaTeX, andreStructuredText (2.6+) formats; the LaTeX and reStructuredText versions areprimarily for documentation authors, translators, and people with specialformatting requirements.Web sites---------New Python releases and related technologies are published atThere's also a Python community web site atNewsgroups and Mailing Lists----------------------------Read comp.lang.python, a high-volume discussion newsgroup aboutPython, or comp.lang.python.announce, a low-volume moderated newsgroupfor Python-related announcements. These are also accessible asoverview of these and many other Python-related mailing lists.Archives are accessible via the Google Groups Usenet archive; seeBug reports-----------To report or search for bugs, please use the Python BugPatches and contributions-------------------------To submit a patch or other contribution, please use the Python PatchIf you have a proposal to change Python, you may want to send an email to thecomp.lang.python or python-ideas mailing lists for inital feedback. A PythonEnhancement Proposal (PEP) may be submitted if your idea gains ground. Allcurrent PEPs, as well as guidelines for submitting a new PEP, are listed atQuestions---------For help, if you can't find it in the manuals or on the web site, it'sbest to post to the comp.lang.python or the Python mailing list (seeabove). If you specifically don't want to involve the newsgroup ormailing list, send questions to help@python.org (a group of volunteerswho answer questions as they can). The newsgroup is the mostefficient way to ask public questions.Build instructions==================Before you can build Python, you must first configure it.Fortunately, the configuration and build process has been automatedfor Unix and Linux installations, so all you usually have to do istype a few commands and sit back. There are some platforms wherethings are not quite as smooth; see the platform specific notes below.If you want to build for multiple platforms sharing the same sourcetree, see the section on VPATH below.Start by running the script "./configure", which determines yoursystem configuration and creates the Makefile. (It takes a minute ortwo -- please be patient!) You may want to pass options to theconfigure script -- see the section below on configuration options andvariables. When it's done, you are ready to run make.To build Python, you normally type "make" in the toplevel directory.If you have changed the configuration, the Makefile may have to berebuilt. In this case you may have to run make again to correctlybuild your desired target. The interpreter executable is built in thetop level directory.Once you have built a Python interpreter, see the subsections below ontesting and installation. If you run into trouble, see the nextsection.Previous versions of Python used a manual configuration process thatinvolved editing the file Modules/Setup. While this file still existsand manual configuration is still supported, it is rarely needed anymore: almost all modules are automatically built as appropriate underguidance of the setup.py script, which is run by Make after theinterpreter has been built.Troubleshooting---------------See also the platform specific notes in the next section.If you run into other trouble, see the FAQhow to fix it.If you rerun the configure script with different options, remove allobject files by running "make clean" before rebuilding. Believe it ornot, "make clean" sometimes helps to clean up other inexplicableproblems as well. Try it before sending in a bug report!If the configure script fails or doesn't seem to find things thatshould be there, inspect the config.log file.If you get a warning for every file about the -Olimit option being nolonger supported, you can ignore it. There's no foolproof way to knowwhether this option is needed; all we can do is test whether it isaccepted without error. On some systems, e.g. older SGI compilers, itis essential for performance (specifically when compiling ceval.c,which has more basic blocks than the default limit of 1000). If thewarning bothers you, edit the Makefile to remove "-Olimit 1500" fromthe OPT variable.If you get failures in test_long, or sys.maxint gets set to -1, youare probably experiencing compiler bugs, usually related tooptimization. This is a common problem with some versions of gcc, andsome vendor-supplied compilers, which can sometimes be worked aroundby turning off optimization. Consider switching to stable versions(gcc 2.95.2, gcc 3.x, or contact your vendor.)From Python 2.0 onward, all Python C code is ANSI C. Compiling usingold K&R-C-only compilers is no longer possible. ANSI C compilers areavailable for all modern systems, either in the form of updatedcompilers from the vendor, or one of the free compilers (gcc).If "make install" fails mysteriously during the "compiling the library"step, make sure that you don't have any of the PYTHONPATH or PYTHONHOMEenvironment variables set, as they may interfere with the newly builtexecutable which is compiling the library.Unsupported systems-------------------A number of features are not supported in Python 2.5 anymore. Somesupport code is still present, but will be removed in Python 2.6.If you still need to use current Python versions on these systems,please send a message to python-dev@python.org indicating that youvolunteer to support this system. For a more detailed discussionregarding no-longer-supported and resupporting platforms, as wellas a list of platforms that became or will be unsupported, see PEP 11.More specifically, the following systems are not supported anylonger:- SunOS 4- DYNIX- dgux- Minix- NeXT- Irix 4 and --with-sgi-dl- Linux 1- Systems defining __d6_pthread_create (configure.in)- Systems defining PY_PTHREAD_D4, PY_PTHREAD_D6,or PY_PTHREAD_D7 in thread_pthread.h- Systems using --with-dl-dld- Systems using --without-universal-newlines- MacOS 9The following systems are still supported in Python 2.5, butsupport will be dropped in 2.6:- Systems using --with-wctype-functions- Win9x, WinMEWarning on install in Windows 98 a... [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • tejsza.htw.pl
  •