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
aed6c66a
Kaydet (Commit)
aed6c66a
authored
Ock 07, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
patch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.
üst
2da0fceb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
5 deletions
+45
-5
cmdline.rst
Doc/using/cmdline.rst
+40
-2
NEWS
Misc/NEWS
+2
-0
main.c
Modules/main.c
+1
-1
import.c
Python/import.c
+1
-1
thread.c
Python/thread.c
+1
-1
No files found.
Doc/using/cmdline.rst
Dosyayı görüntüle @
aed6c66a
...
...
@@ -335,6 +335,8 @@ Miscellaneous options
Environment variables
---------------------
These environment variables influence Python's behavior.
.. envvar:: PYTHONHOME
Change the location of the standard Python libraries. By default, the
...
...
@@ -350,7 +352,7 @@ Environment variables
.. envvar:: PYTHONPATH
Augment
s
the default search path for module files. The format is the same as
Augment the default search path for module files. The format is the same as
the shell's :envvar:`PATH`: one or more directory pathnames separated by
colons. Non-existent directories are silently ignored.
...
...
@@ -400,6 +402,9 @@ Environment variables
If this is set to a non-empty string it is equivalent to specifying the
:option:`-i` option.
This variable can also be modified by Python code using :data:`os.environ`
to force inspect mode on program termination.
.. envvar:: PYTHONUNBUFFERED
...
...
@@ -422,7 +427,40 @@ Environment variables
.. envvar:: PYTHONDONTWRITEBYTECODE
If
given
, Python won't try to write ``.pyc`` or ``.pyo`` files on the
If
this is set
, Python won't try to write ``.pyc`` or ``.pyo`` files on the
import of source modules.
.. versionadded:: 2.6
.. envvar:: PYTHONEXECUTABLE
If this environment variable is set, ``sys.argv[0]`` will be set to its
value instead of the value got through the C runtime. Only works on
MacOS X.
Debug-mode variables
^^^^^^^^^^^^^^^^^^^^
Setting these variables only has an effect in a debug build of Python, that is,
if Python was configured with the :opt:`--with-pydebug` build option.
.. envvar:: PYTHONTHREADDEBUG
If set, Python will print debug threading debug info.
.. versionchanged:: 2.6
Previously, this variable was called ``THREADDEBUG``.
.. envvar:: PYTHONDUMPREFS
If set, Python will dump objects and reference counts still alive after
shutting down the interpreter.
.. envvar:: PYTHONMALLOCSTATS
If set, Python will print memory allocation statistics every time a new
object arena is created, and on shutdown.
Misc/NEWS
Dosyayı görüntüle @
aed6c66a
...
...
@@ -12,6 +12,8 @@ What's New in Python 2.6 alpha 1?
Core and builtins
-----------------
- Patch #1668: renamed THREADDEBUG envvar to PYTHONTHREADDEBUG.
- Patch #602345: Add -B command line option, PYTHONDONTWRITEBYTECODE envvar
and sys.dont_write_bytecode attribute. All these can be set to forbid Python
to attempt to write compiled bytecode files.
...
...
Modules/main.c
Dosyayı görüntüle @
aed6c66a
...
...
@@ -62,7 +62,7 @@ Options and arguments (and corresponding environment variables):\n\
-B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x
\n
\
-c cmd : program passed in as string (terminates option list)
\n
\
-d : debug output from parser; also PYTHONDEBUG=x
\n
\
-E : ignore environment variables (such as PYTHONPATH)
\n
\
-E : ignore
PYTHON*
environment variables (such as PYTHONPATH)
\n
\
-h : print this help message and exit (also --help)
\n
\
-i : inspect interactively after running script; forces a prompt even
\n
\
"
;
...
...
Python/import.c
Dosyayı görüntüle @
aed6c66a
...
...
@@ -1630,7 +1630,7 @@ case_ok(char *buf, Py_ssize_t len, Py_ssize_t namelen, char *name)
FILEFINDBUF3
ffbuf
;
APIRET
rc
;
if
(
getenv
(
"PYTHONCASEOK"
)
!=
NULL
)
if
(
Py_GETENV
(
"PYTHONCASEOK"
)
!=
NULL
)
return
1
;
rc
=
DosFindFirst
(
buf
,
...
...
Python/thread.c
Dosyayı görüntüle @
aed6c66a
...
...
@@ -79,7 +79,7 @@ void
PyThread_init_thread
(
void
)
{
#ifdef Py_DEBUG
char
*
p
=
getenv
(
"
THREADDEBUG"
);
char
*
p
=
Py_GETENV
(
"PYTHON
THREADDEBUG"
);
if
(
p
)
{
if
(
*
p
)
...
...
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