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
f6d36745
Kaydet (Commit)
f6d36745
authored
Mar 12, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix warnings from "make check".
üst
55427274
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
31 deletions
+31
-31
exceptions.rst
Doc/c-api/exceptions.rst
+1
-1
string.rst
Doc/c-api/string.rst
+1
-1
examples.rst
Doc/distutils/examples.rst
+8
-8
uploading.rst
Doc/distutils/uploading.rst
+4
-4
logging.rst
Doc/library/logging.rst
+12
-12
site.rst
Doc/library/site.rst
+2
-2
sys.rst
Doc/library/sys.rst
+1
-1
2.2.rst
Doc/whatsnew/2.2.rst
+1
-1
2.7.rst
Doc/whatsnew/2.7.rst
+1
-1
No files found.
Doc/c-api/exceptions.rst
Dosyayı görüntüle @
f6d36745
...
...
@@ -221,7 +221,7 @@ is a separate error indicator for each thread.
.. note::
The `"%lld"` and `"%llu"` format specifiers are only available
when `HAVE_LONG_LONG` is defined.
when
:const:
`HAVE_LONG_LONG` is defined.
.. versionchanged:: 2.7
Support for `"%lld"` and `"%llu"` added.
...
...
Doc/c-api/string.rst
Dosyayı görüntüle @
f6d36745
...
...
@@ -138,7 +138,7 @@ called with a non-string parameter.
.. note::
The `"%lld"` and `"%llu"` format specifiers are only available
when `HAVE_LONG_LONG` is defined.
when
:const:
`HAVE_LONG_LONG` is defined.
.. versionchanged:: 2.7
Support for `"%lld"` and `"%llu"` added.
...
...
Doc/distutils/examples.rst
Dosyayı görüntüle @
f6d36745
...
...
@@ -257,9 +257,9 @@ Running the ``check`` command will display some warnings::
(maintainer and maintainer_email) must be supplied
If you use the reStructuredText syntax in the `
long_description
` field and
If you use the reStructuredText syntax in the `
`long_description`
` field and
`docutils <http://docutils.sourceforge.net/>`_ is installed you can check if
the syntax is fine with the ``check`` command, using the `
restructuredtext
`
the syntax is fine with the ``check`` command, using the `
`restructuredtext`
`
option.
For example, if the :file:`setup.py` script is changed like this::
...
...
@@ -278,7 +278,7 @@ For example, if the :file:`setup.py` script is changed like this::
url='
http
://
example
.
com
', long_description=desc)
Where the long description is broken, ``check`` will be able to detect it
by using the `docutils` parser::
by using the
:mod:
`docutils` parser::
$ pythontrunk setup.py check --restructuredtext
running check
...
...
@@ -293,20 +293,20 @@ Reading the metadata
The :func:`distutils.core.setup` function provides a command-line interface
that allows you to query the metadata fields of a project through the
`setup.py` script of a given project::
:file:
`setup.py` script of a given project::
$ python setup.py --name
distribute
This call reads the `
name
` metadata by running the
This call reads the `
`name`
` metadata by running the
:func:`distutils.core.setup` function. Although, when a source or binary
distribution is created with Distutils, the metadata fields are written
in a static file called :file:`PKG-INFO`. When a Distutils-based project is
installed in Python, the :file:`PKG-INFO` file is copied alongside the modules
and packages of the distribution under :file:`NAME-VERSION-pyX.X.egg-info`,
where `
NAME` is the name of the project, `VERSION
` its version as defined
in the Metadata, and `
pyX.X
` the major and minor version of Python like
`
2.7` or `3.2
`.
where `
`NAME`` is the name of the project, ``VERSION`
` its version as defined
in the Metadata, and `
`pyX.X`
` the major and minor version of Python like
`
`2.7`` or ``3.2`
`.
You can read back this static file, by using the
:class:`distutils.dist.DistributionMetadata` class and its
...
...
Doc/distutils/uploading.rst
Dosyayı görüntüle @
f6d36745
...
...
@@ -62,13 +62,13 @@ in the package::
setup
(
name
=
'Distutils'
,
long_description
=
open
(
'README.txt'
))
In
that
case
,
`
README
.
txt
`
is
a
regular
reStructuredText
text
file
located
in
the
root
of
the
package
besides
`
setup
.
py
`.
In
that
case
,
:
file
:
`
README
.
txt
`
is
a
regular
reStructuredText
text
file
located
in
the
root
of
the
package
besides
:
file
:
`
setup
.
py
`.
To
prevent
registering
broken
reStructuredText
content
,
you
can
use
the
:
program
:`
rst2html
`
program
that
is
provided
by
the
`
docutils
`
package
:
program
:`
rst2html
`
program
that
is
provided
by
the
:
mod
:
`
docutils
`
package
and
check
the
``
long_description
``
from
the
command
line
::
$
python
setup
.
py
--
long
-
description
|
rst2html
.
py
>
output
.
html
`
docutils
`
will
display
a
warning
if
there
's something wrong with your syntax.
:
mod
:
`
docutils
`
will
display
a
warning
if
there
's something wrong with your syntax.
Doc/library/logging.rst
Dosyayı görüntüle @
f6d36745
...
...
@@ -424,10 +424,10 @@ noncoders to easily modify the logging properties.
Note
that
the
class
names
referenced
in
config
files
need
to
be
either
relative
to
the
logging
module
,
or
absolute
values
which
can
be
resolved
using
normal
import
mechanisms
.
Thus
,
you
could
use
either
`
handlers
.
WatchedFileHandler
`
(
relative
to
the
logging
module
)
or
`
mypackage
.
mymodule
.
MyHandler
`
(
for
a
class
defined
in
package
`
mypackage
`
and
module
`
mymodule
`,
where
`
mypackage
`
is
available
on
the
Python
import
path
).
import
mechanisms
.
Thus
,
you
could
use
either
:
class
:
`
handlers
.
WatchedFileHandler
`
(
relative
to
the
logging
module
)
or
:
class
:
`
mypackage
.
mymodule
.
MyHandler
`
(
for
a
class
defined
in
package
:
mod
:`
mypackage
`
and
module
:
mod
:`
mymodule
`,
where
:
mod
:`
mypackage
`
is
available
on
the
Python
import
path
).
..
_library
-
config
:
...
...
@@ -1233,12 +1233,12 @@ swallowed. Other exceptions which occur during the :meth:`emit` method of a
:class:`Handler` subclass are passed to its :meth:`handleError` method.
The default implementation of :meth:`handleError` in :class:`Handler` checks
to see if a module-level variable, `raiseExceptions`, is set. If set, a
traceback is printed to `sys.stderr`. If not set, the exception is swallowed.
to see if a module-level variable,
:data:
`raiseExceptions`, is set. If set, a
traceback is printed to
:data:
`sys.stderr`. If not set, the exception is swallowed.
**Note:** The default value of
`raiseExceptions` is `True
`. This is because
**Note:** The default value of
:data:`raiseExceptions` is ``True`
`. This is because
during development, you typically want to be notified of any exceptions that
occur. It'
s
advised
that
you
set
`
raiseExceptions
`
to
`
False
`
for
production
occur. It'
s
advised
that
you
set
:
data
:`
raiseExceptions
`
to
``
False
`
`
for
production
usage
.
..
_context
-
info
:
...
...
@@ -2494,14 +2494,14 @@ with the :mod:`warnings` module.
This
function
is
used
to
turn
the
capture
of
warnings
by
logging
on
and
off
.
If
`
capture
`
is
`
True
`,
warnings
issued
by
the
:
mod
:`
warnings
`
module
If
*
capture
*
is
``
True
`
`,
warnings
issued
by
the
:
mod
:`
warnings
`
module
will
be
redirected
to
the
logging
system
.
Specifically
,
a
warning
will
be
formatted
using
:
func
:`
warnings
.
formatwarning
`
and
the
resulting
string
logged
to
a
logger
named
"py.warnings"
with
a
severity
of
`
WARNING
`.
logged
to
a
logger
named
"py.warnings"
with
a
severity
of
`
`
WARNING
`
`.
If
`
capture
`
is
`
False
`,
the
redirection
of
warnings
to
the
logging
system
If
*
capture
*
is
``
False
`
`,
the
redirection
of
warnings
to
the
logging
system
will
stop
,
and
warnings
will
be
redirected
to
their
original
destinations
(
i
.
e
.
those
in
effect
before
`
captureWarnings
(
True
)
`
was
called
).
(
i
.
e
.
those
in
effect
before
`
`
captureWarnings
(
True
)`
`
was
called
).
Configuration
...
...
Doc/library/site.rst
Dosyayı görüntüle @
f6d36745
...
...
@@ -140,9 +140,9 @@ empty, and the path manipulations are skipped; however the import of
.. function:: getuserbase()
Returns the
`user base`
directory path.
Returns the
"user base"
directory path.
The
`user base`
directory can be used to store data. If the global
The
"user base"
directory can be used to store data. If the global
variable ``USER_BASE`` is not initialized yet, this function will also set
it.
...
...
Doc/library/sys.rst
Dosyayı görüntüle @
f6d36745
...
...
@@ -417,7 +417,7 @@ always available.
specific.
If given, *default* will be returned if the object does not provide means to
retrieve the size. Otherwise a `TypeError` will be raised.
retrieve the size. Otherwise a
:exc:
`TypeError` will be raised.
:func:`getsizeof` calls the object's ``__sizeof__`` method and adds an
additional garbage collector overhead if the object is managed by the garbage
...
...
Doc/whatsnew/2.2.rst
Dosyayı görüntüle @
f6d36745
...
...
@@ -30,7 +30,7 @@ understand the complete implementation and design rationale for a change, refer
to the PEP for a particular new feature.
.. see
also (now defunct)
.. see
also, now defunct
http://www.unixreview.com/documents/s=1356/urm0109h/0109h.htm
"What's So Special About Python 2.2?" is also about the new 2.2 features, and
...
...
Doc/whatsnew/2.7.rst
Dosyayı görüntüle @
f6d36745
...
...
@@ -609,7 +609,7 @@ changes, or look through the Subversion logs for all the details.
Contributed by Raymond Hettinger; :issue:`1696199`.
The new `OrderedDict` class is described in the earlier section
The new `
~collections.
OrderedDict` class is described in the earlier section
:ref:`pep-0372`.
The :class:`namedtuple` class now has an optional *rename* parameter.
...
...
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