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
40507921
Kaydet (Commit)
40507921
authored
Ock 11, 2013
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#16154: fix some doctests in Doc/library. Patch by Ravi Sinha.
üst
444d153d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
10 deletions
+13
-10
colorsys.rst
Doc/library/colorsys.rst
+4
-4
filecmp.rst
Doc/library/filecmp.rst
+4
-4
math.rst
Doc/library/math.rst
+2
-0
string.rst
Doc/library/string.rst
+2
-2
ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/colorsys.rst
Dosyayı görüntüle @
40507921
...
@@ -58,7 +58,7 @@ The :mod:`colorsys` module defines the following functions:
...
@@ -58,7 +58,7 @@ The :mod:`colorsys` module defines the following functions:
Example::
Example::
>>> import colorsys
>>> import colorsys
>>> colorsys.rgb_to_hsv(
.3, .4, .2
)
>>> colorsys.rgb_to_hsv(
0.2, 0.4, 0.4
)
(0.
2
5, 0.5, 0.4)
(0.5, 0.5, 0.4)
>>> colorsys.hsv_to_rgb(0.
2
5, 0.5, 0.4)
>>> colorsys.hsv_to_rgb(0.5, 0.5, 0.4)
(0.
3, 0.4, 0.2
)
(0.
2, 0.4, 0.4
)
Doc/library/filecmp.rst
Dosyayı görüntüle @
40507921
...
@@ -54,9 +54,9 @@ The :mod:`filecmp` module defines the following functions:
...
@@ -54,9 +54,9 @@ The :mod:`filecmp` module defines the following functions:
Example::
Example::
>>> import filecmp
>>> import filecmp
>>> filecmp.cmp('undoc.rst', 'undoc.rst')
>>> filecmp.cmp('undoc.rst', 'undoc.rst')
# doctest: +SKIP
True
True
>>> filecmp.cmp('undoc.rst', 'index.rst')
>>> filecmp.cmp('undoc.rst', 'index.rst')
# doctest: +SKIP
False
False
...
@@ -191,6 +191,6 @@ recursively through two directories to show common different files::
...
@@ -191,6 +191,6 @@ recursively through two directories to show common different files::
... for sub_dcmp in dcmp.subdirs.values():
... for sub_dcmp in dcmp.subdirs.values():
... print_diff_files(sub_dcmp)
... print_diff_files(sub_dcmp)
...
...
>>> dcmp = dircmp('dir1', 'dir2')
>>> dcmp = dircmp('dir1', 'dir2')
# doctest: +SKIP
>>> print_diff_files(dcmp)
>>> print_diff_files(dcmp)
# doctest: +SKIP
Doc/library/math.rst
Dosyayı görüntüle @
40507921
...
@@ -77,6 +77,8 @@ Number-theoretic and representation functions
...
@@ -77,6 +77,8 @@ Number-theoretic and representation functions
.. function:: fsum(iterable)
.. function:: fsum(iterable)
.. testsetup::
>>> from math import fsum
Return an accurate floating point sum of values in the iterable. Avoids
Return an accurate floating point sum of values in the iterable. Avoids
loss of precision by tracking multiple intermediate partial sums::
loss of precision by tracking multiple intermediate partial sums::
...
...
Doc/library/string.rst
Dosyayı görüntüle @
40507921
...
@@ -610,7 +610,7 @@ Nesting arguments and more complex examples::
...
@@ -610,7 +610,7 @@ Nesting arguments and more complex examples::
3232235521
3232235521
>>>
>>>
>>> width = 5
>>> width = 5
>>> for num in range(5,12):
>>> for num in range(5,12):
#doctest: +NORMALIZE_WHITESPACE
... for base in 'dXob':
... for base in 'dXob':
... print('{0:{width}{base}}'.format(num, base=base, width=width), end=' ')
... print('{0:{width}{base}}'.format(num, base=base, width=width), end=' ')
... print()
... print()
...
@@ -698,7 +698,7 @@ Here is an example of how to use a Template:
...
@@ -698,7 +698,7 @@ Here is an example of how to use a Template:
>>> Template('Give $who $100').substitute(d)
>>> Template('Give $who $100').substitute(d)
Traceback (most recent call last):
Traceback (most recent call last):
[...]
[...]
ValueError: Invalid placeholder in string: line 1, col 1
0
ValueError: Invalid placeholder in string: line 1, col 1
1
>>> Template('$who likes $what').substitute(d)
>>> Template('$who likes $what').substitute(d)
Traceback (most recent call last):
Traceback (most recent call last):
[...]
[...]
...
...
Misc/ACKS
Dosyayı görüntüle @
40507921
...
@@ -998,6 +998,7 @@ Michael Simcich
...
@@ -998,6 +998,7 @@ Michael Simcich
Ionel Simionescu
Ionel Simionescu
Kirill Simonov
Kirill Simonov
Nathan Paul Simons
Nathan Paul Simons
Ravi Sinha
Janne Sinkkonen
Janne Sinkkonen
Ng Pheng Siong
Ng Pheng Siong
George Sipe
George Sipe
...
...
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