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
b94082a7
Kaydet (Commit)
b94082a7
authored
Tem 22, 2012
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#12353: argparse now correctly handles null argument values.
Patch by Torsten Landschoff.
üst
15cd9a0b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
argparse.py
Lib/argparse.py
+1
-1
test_argparse.py
Lib/test/test_argparse.py
+1
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/argparse.py
Dosyayı görüntüle @
b94082a7
...
...
@@ -1976,7 +1976,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer):
for
arg_string
in
arg_strings
:
# for regular arguments, just add them back into the list
if
arg_string
[
0
]
not
in
self
.
fromfile_prefix_chars
:
if
not
arg_string
or
arg_string
[
0
]
not
in
self
.
fromfile_prefix_chars
:
new_arg_strings
.
append
(
arg_string
)
# replace arguments referencing files with the file content
...
...
Lib/test/test_argparse.py
Dosyayı görüntüle @
b94082a7
...
...
@@ -1371,6 +1371,7 @@ class TestArgumentsFromFile(TempDirMixin, ParserTestCase):
(
'X @hello'
,
NS
(
a
=
None
,
x
=
'X'
,
y
=
[
'hello world!'
])),
(
'-a B @recursive Y Z'
,
NS
(
a
=
'A'
,
x
=
'hello world!'
,
y
=
[
'Y'
,
'Z'
])),
(
'X @recursive Z -a B'
,
NS
(
a
=
'B'
,
x
=
'X'
,
y
=
[
'hello world!'
,
'Z'
])),
([
"-a"
,
""
,
"X"
,
"Y"
],
NS
(
a
=
''
,
x
=
'X'
,
y
=
[
'Y'
])),
]
...
...
Misc/NEWS
Dosyayı görüntüle @
b94082a7
...
...
@@ -98,6 +98,8 @@ Core and Builtins
Library
-------
- Issue #12353: argparse now correctly handles null argument values.
- Issues #10017 and #14998: Fix TypeError using pprint on dictionaries with
user-defined types as keys or other unorderable keys.
...
...
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