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
8842c356
Kaydet (Commit)
8842c356
authored
Haz 13, 2010
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert r80580 due to some unintended side effects. See issue #8202 for details.
üst
bffd62ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
cmdline.rst
Doc/using/cmdline.rst
+2
-3
NEWS
Misc/NEWS
+4
-0
main.c
Modules/main.c
+5
-3
No files found.
Doc/using/cmdline.rst
Dosyayı görüntüle @
8842c356
...
@@ -95,9 +95,8 @@ source.
...
@@ -95,9 +95,8 @@ source.
file is not available.
file is not available.
If this option is given, the first element of :data:`sys.argv` will be the
If this option is given, the first element of :data:`sys.argv` will be the
full path to the module file (while the module file is being located, the
full path to the module file. As with the :option:`-c` option, the current
first element will be set to ``"-m"``). As with the :option:`-c` option,
directory will be added to the start of :data:`sys.path`.
the current directory will be added to the start of :data:`sys.path`.
Many standard library modules contain code that is invoked on their execution
Many standard library modules contain code that is invoked on their execution
as a script. An example is the :mod:`timeit` module::
as a script. An example is the :mod:`timeit` module::
...
...
Misc/NEWS
Dosyayı görüntüle @
8842c356
...
@@ -12,6 +12,10 @@ What's New in Python 2.7 release candidate 2?
...
@@ -12,6 +12,10 @@ What's New in Python 2.7 release candidate 2?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #8202: Previous change to ``sys.argv[0]`` handling for -m command line
option reverted due to unintended side effects on handling of ``sys.path``.
See tracker issue for details.
- Issue #8941: decoding big endian UTF-32 data in UCS-2 builds could crash
- Issue #8941: decoding big endian UTF-32 data in UCS-2 builds could crash
the interpreter with characters outside the Basic Multilingual Plane
the interpreter with characters outside the Basic Multilingual Plane
(higher than 0x10000).
(higher than 0x10000).
...
...
Modules/main.c
Dosyayı görüntüle @
8842c356
...
@@ -519,10 +519,12 @@ Py_Main(int argc, char **argv)
...
@@ -519,10 +519,12 @@ Py_Main(int argc, char **argv)
}
}
if
(
module
!=
NULL
)
{
if
(
module
!=
NULL
)
{
/* Backup _PyOS_optind and force sys.argv[0] = '-m'
/* Backup _PyOS_optind and force sys.argv[0] = '-c'
so that PySys_SetArgv correctly sets sys.path[0] to ''*/
so that PySys_SetArgv correctly sets sys.path[0] to ''
rather than looking for a file called "-m". See
tracker issue #8202 for details. */
_PyOS_optind
--
;
_PyOS_optind
--
;
argv
[
_PyOS_optind
]
=
"-
m
"
;
argv
[
_PyOS_optind
]
=
"-
c
"
;
}
}
PySys_SetArgv
(
argc
-
_PyOS_optind
,
argv
+
_PyOS_optind
);
PySys_SetArgv
(
argc
-
_PyOS_optind
,
argv
+
_PyOS_optind
);
...
...
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