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
1a2c1fbf
Kaydet (Commit)
1a2c1fbf
authored
Tem 21, 2012
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#14391: clarify docstring discussion of Action's 'type' argument's value.
üst
ac9b5c67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
argparse.py
Lib/argparse.py
+4
-4
No files found.
Lib/argparse.py
Dosyayı görüntüle @
1a2c1fbf
...
@@ -740,10 +740,10 @@ class Action(_AttributeHolder):
...
@@ -740,10 +740,10 @@ class Action(_AttributeHolder):
- default -- The value to be produced if the option is not specified.
- default -- The value to be produced if the option is not specified.
- type --
The type which the command-line arguments should be converte
d
- type --
A callable that accepts a single string argument, an
d
to, should be one of 'string', 'int', 'float', 'complex' or a
returns the converted value. The standard Python types str, int,
callable object that accepts a single string argument.
If None,
float, and complex are useful examples of such callables.
If None,
'string' is assum
ed.
str is us
ed.
- choices -- A container of values that should be allowed. If not None,
- choices -- A container of values that should be allowed. If not None,
after a command-line argument has been converted to the appropriate
after a command-line argument has been converted to the appropriate
...
...
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