Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
3db38ce2
Kaydet (Commit)
3db38ce2
authored
Agu 30, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#3577: 3.0 is not installed as "python" on Unix.
üst
fcfb5f2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
interpreter.rst
Doc/tutorial/interpreter.rst
+15
-11
No files found.
Doc/tutorial/interpreter.rst
Dosyayı görüntüle @
3db38ce2
...
@@ -10,16 +10,16 @@ Using the Python Interpreter
...
@@ -10,16 +10,16 @@ Using the Python Interpreter
Invoking the Interpreter
Invoking the Interpreter
========================
========================
The Python interpreter is usually installed as :file:`/usr/local/bin/python
` on
The Python interpreter is usually installed as :file:`/usr/local/bin/python
3.0`
those machines where it is available; putting :file:`/usr/local/bin` in your
on
those machines where it is available; putting :file:`/usr/local/bin` in your
Unix shell's search path makes it possible to start it by typing the command ::
Unix shell's search path makes it possible to start it by typing the command ::
python
python
3.0
to the shell.
Since the choice of the directory where the interpreter lives i
s
to the shell.
[#]_ Since the choice of the directory where the interpreter live
s
an installation option, other places are possible; check with your local Python
is an installation option, other places are possible; check with your local
guru or system administrator. (E.g., :file:`/usr/local/python` is a popular
Python guru or system administrator. (E.g., :file:`/usr/local/python` is a
alternative location.)
popular
alternative location.)
On Windows machines, the Python installation is usually placed in
On Windows machines, the Python installation is usually placed in
:file:`C:\Python30`, though you can change this when you're running the
:file:`C:\Python30`, though you can change this when you're running the
...
@@ -58,8 +58,8 @@ Some Python modules are also useful as scripts. These can be invoked using
...
@@ -58,8 +58,8 @@ Some Python modules are also useful as scripts. These can be invoked using
``python -m module [arg] ...``, which executes the source file for *module* as
``python -m module [arg] ...``, which executes the source file for *module* as
if you had spelled out its full name on the command line.
if you had spelled out its full name on the command line.
Note that there is a difference between ``python file`` and ``python
<file``.
Note that there is a difference between ``python file`` and ``python
In the latter case, input requests from the program, such as calling
<file``.
In the latter case, input requests from the program, such as calling
``sys.stdin.read()``, are satisfied from *file*. Since this file has already
``sys.stdin.read()``, are satisfied from *file*. Since this file has already
been read until the end by the parser before the program starts executing, the
been read until the end by the parser before the program starts executing, the
program will encounter end-of-file immediately. In the former case (which is
program will encounter end-of-file immediately. In the former case (which is
...
@@ -101,7 +101,7 @@ with the *secondary prompt*, by default three dots (``...``). The interpreter
...
@@ -101,7 +101,7 @@ with the *secondary prompt*, by default three dots (``...``). The interpreter
prints a welcome message stating its version number and a copyright notice
prints a welcome message stating its version number and a copyright notice
before printing the first prompt::
before printing the first prompt::
$ python
$ python
3.0
Python 3.0a1 (py3k, Sep 12 2007, 12:21:02)
Python 3.0a1 (py3k, Sep 12 2007, 12:21:02)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Type "help", "copyright", "credits" or "license" for more information.
...
@@ -155,7 +155,7 @@ Executable Python Scripts
...
@@ -155,7 +155,7 @@ Executable Python Scripts
On BSD'ish Unix systems, Python scripts can be made directly executable, like
On BSD'ish Unix systems, Python scripts can be made directly executable, like
shell scripts, by putting the line ::
shell scripts, by putting the line ::
#! /usr/bin/env python
#! /usr/bin/env python
3.0
(assuming that the interpreter is on the user's :envvar:`PATH`) at the beginning
(assuming that the interpreter is on the user's :envvar:`PATH`) at the beginning
of the script and giving the file an executable mode. The ``#!`` must be the
of the script and giving the file an executable mode. The ``#!`` must be the
...
@@ -243,5 +243,9 @@ in the script::
...
@@ -243,5 +243,9 @@ in the script::
.. rubric:: Footnotes
.. rubric:: Footnotes
.. [#] On Unix, the 3.0 interpreter is by default not installed with the
executable named ``python``, so that it does not conflict with a
simultaneously installed Python 2.x executable.
.. [#] A problem with the GNU Readline package may prevent this.
.. [#] A problem with the GNU Readline package may prevent this.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment