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
63b04486
Kaydet (Commit)
63b04486
authored
Ara 01, 2012
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#16589: fix pprint signatures in the doc (backport of 106ee4eb5970).
üst
4f3b5943
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
pprint.rst
Doc/library/pprint.rst
+6
-7
No files found.
Doc/library/pprint.rst
Dosyayı görüntüle @
63b04486
...
...
@@ -36,7 +36,7 @@ The :mod:`pprint` module defines one class:
.. First the implementation class:
.. class:: PrettyPrinter(
...
)
.. class:: PrettyPrinter(
indent=1, width=80, depth=None, stream=None
)
Construct a :class:`PrettyPrinter` instance. This constructor understands
several keyword parameters. An output stream may be set using the *stream*
...
...
@@ -73,9 +73,7 @@ The :mod:`pprint` module defines one class:
The :class:`PrettyPrinter` class supports several derivative functions:
.. Now the derivative functions:
.. function:: pformat(object[, indent[, width[, depth]]])
.. function:: pformat(object, indent=1, width=80, depth=None)
Return the formatted representation of *object* as a string. *indent*, *width*
and *depth* will be passed to the :class:`PrettyPrinter` constructor as
...
...
@@ -85,10 +83,10 @@ The :class:`PrettyPrinter` class supports several derivative functions:
The parameters *indent*, *width* and *depth* were added.
.. function:: pprint(object
[, stream[, indent[, width[, depth]]]]
)
.. function:: pprint(object
, stream=None, indent=1, width=80, depth=None
)
Prints the formatted representation of *object* on *stream*, followed by a
newline. If *stream* is
omitted
, ``sys.stdout`` is used. This may be used in
newline. If *stream* is
``None``
, ``sys.stdout`` is used. This may be used in
the interactive interpreter instead of a :keyword:`print` statement for
inspecting values. *indent*, *width* and *depth* will be passed to the
:class:`PrettyPrinter` constructor as formatting parameters.
...
...
@@ -206,7 +204,8 @@ are converted to strings. The default implementation uses the internals of the
pprint Example
--------------
This example demonstrates several uses of the :func:`pprint` function and its parameters.
This example demonstrates several uses of the :func:`pprint` function and its
parameters.
>>> import pprint
>>> tup = ('spam', ('eggs', ('lumberjack', ('knights', ('ni', ('dead',
...
...
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