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
119e5022
Kaydet (Commit)
119e5022
authored
Nis 16, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix typos in code comments and documentation
üst
00ccacc8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
argparse.rst
Doc/library/argparse.rst
+1
-1
2.4.rst
Doc/whatsnew/2.4.rst
+1
-1
posixpath.py
Lib/posixpath.py
+1
-1
test_codecs.py
Lib/test/test_codecs.py
+2
-2
bytesio.c
Modules/_io/bytesio.c
+2
-2
bytesio.c.h
Modules/_io/clinic/bytesio.c.h
+2
-2
No files found.
Doc/library/argparse.rst
Dosyayı görüntüle @
119e5022
...
@@ -923,7 +923,7 @@ the various :class:`ArgumentParser` actions. The two most common uses of it are
...
@@ -923,7 +923,7 @@ the various :class:`ArgumentParser` actions. The two most common uses of it are
See the nargs_ description for examples.
See the nargs_ description for examples.
With the ``'store_const'`` and ``'append_const'`` actions, the ``const``
With the ``'store_const'`` and ``'append_const'`` actions, the ``const``
keyword argument must be given. For other actions, i
s
defaults to ``None``.
keyword argument must be given. For other actions, i
t
defaults to ``None``.
default
default
...
...
Doc/whatsnew/2.4.rst
Dosyayı görüntüle @
119e5022
...
@@ -1481,7 +1481,7 @@ Some of the changes to Python's build process and to the C API are:
...
@@ -1481,7 +1481,7 @@ Some of the changes to Python's build process and to the C API are:
* Python can now be built with additional profiling for the interpreter itself,
* Python can now be built with additional profiling for the interpreter itself,
intended as an aid to people developing the Python core. Providing
intended as an aid to people developing the Python core. Providing
:option:`--
--
enable-profiling` to the :program:`configure` script will let you
:option:`--enable-profiling` to the :program:`configure` script will let you
profile the interpreter with :program:`gprof`, and providing the
profile the interpreter with :program:`gprof`, and providing the
:option:`--with-tsc` switch enables profiling using the Pentium's Time-Stamp-
:option:`--with-tsc` switch enables profiling using the Pentium's Time-Stamp-
Counter register. Note that the :option:`--with-tsc` switch is slightly
Counter register. Note that the :option:`--with-tsc` switch is slightly
...
...
Lib/posixpath.py
Dosyayı görüntüle @
119e5022
...
@@ -372,7 +372,7 @@ symbolic links encountered in the path."""
...
@@ -372,7 +372,7 @@ symbolic links encountered in the path."""
path
,
ok
=
_joinrealpath
(
filename
[:
0
],
filename
,
{})
path
,
ok
=
_joinrealpath
(
filename
[:
0
],
filename
,
{})
return
abspath
(
path
)
return
abspath
(
path
)
# Join two paths, normalizing an
g
eliminating any symbolic links
# Join two paths, normalizing an
d
eliminating any symbolic links
# encountered in the second path.
# encountered in the second path.
def
_joinrealpath
(
path
,
rest
,
seen
):
def
_joinrealpath
(
path
,
rest
,
seen
):
if
isinstance
(
path
,
bytes
):
if
isinstance
(
path
,
bytes
):
...
...
Lib/test/test_codecs.py
Dosyayı görüntüle @
119e5022
...
@@ -2355,7 +2355,7 @@ class TypesTest(unittest.TestCase):
...
@@ -2355,7 +2355,7 @@ class TypesTest(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
decoder
,
"xxx"
)
self
.
assertRaises
(
TypeError
,
decoder
,
"xxx"
)
def
test_unicode_escape
(
self
):
def
test_unicode_escape
(
self
):
# Escape-decoding a unicode string is supported an
g
gives the same
# Escape-decoding a unicode string is supported an
d
gives the same
# result as decoding the equivalent ASCII bytes string.
# result as decoding the equivalent ASCII bytes string.
self
.
assertEqual
(
codecs
.
unicode_escape_decode
(
r"\u1234"
),
(
"
\u1234
"
,
6
))
self
.
assertEqual
(
codecs
.
unicode_escape_decode
(
r"\u1234"
),
(
"
\u1234
"
,
6
))
self
.
assertEqual
(
codecs
.
unicode_escape_decode
(
br
"
\u1234
"
),
(
"
\u1234
"
,
6
))
self
.
assertEqual
(
codecs
.
unicode_escape_decode
(
br
"
\u1234
"
),
(
"
\u1234
"
,
6
))
...
@@ -2762,7 +2762,7 @@ class TransformCodecTest(unittest.TestCase):
...
@@ -2762,7 +2762,7 @@ class TransformCodecTest(unittest.TestCase):
# type and a single str argument.
# type and a single str argument.
# Use a local codec registry to avoid appearing to leak objects when
# Use a local codec registry to avoid appearing to leak objects when
# registering multiple seach functions
# registering multiple sea
r
ch functions
_TEST_CODECS
=
{}
_TEST_CODECS
=
{}
def
_get_test_codec
(
codec_name
):
def
_get_test_codec
(
codec_name
):
...
...
Modules/_io/bytesio.c
Dosyayı görüntüle @
119e5022
...
@@ -551,12 +551,12 @@ _io.BytesIO.readinto
...
@@ -551,12 +551,12 @@ _io.BytesIO.readinto
Read up to len(buffer) bytes into buffer.
Read up to len(buffer) bytes into buffer.
Returns number of bytes read (0 for EOF), or None if the object
Returns number of bytes read (0 for EOF), or None if the object
is set not to block a
s
has no data to read.
is set not to block a
nd
has no data to read.
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
_io_BytesIO_readinto_impl
(
bytesio
*
self
,
Py_buffer
*
buffer
)
_io_BytesIO_readinto_impl
(
bytesio
*
self
,
Py_buffer
*
buffer
)
/*[clinic end generated code: output=a5d407217dcf0639 input=
71581f32635c3a31
]*/
/*[clinic end generated code: output=a5d407217dcf0639 input=
b52a8782706f0037
]*/
{
{
Py_ssize_t
len
,
n
;
Py_ssize_t
len
,
n
;
...
...
Modules/_io/clinic/bytesio.c.h
Dosyayı görüntüle @
119e5022
...
@@ -262,7 +262,7 @@ PyDoc_STRVAR(_io_BytesIO_readinto__doc__,
...
@@ -262,7 +262,7 @@ PyDoc_STRVAR(_io_BytesIO_readinto__doc__,
"Read up to len(buffer) bytes into buffer.
\n
"
"Read up to len(buffer) bytes into buffer.
\n
"
"
\n
"
"
\n
"
"Returns number of bytes read (0 for EOF), or None if the object
\n
"
"Returns number of bytes read (0 for EOF), or None if the object
\n
"
"is set not to block a
s
has no data to read."
);
"is set not to block a
nd
has no data to read."
);
#define _IO_BYTESIO_READINTO_METHODDEF \
#define _IO_BYTESIO_READINTO_METHODDEF \
{"readinto", (PyCFunction)_io_BytesIO_readinto, METH_O, _io_BytesIO_readinto__doc__},
{"readinto", (PyCFunction)_io_BytesIO_readinto, METH_O, _io_BytesIO_readinto__doc__},
...
@@ -419,4 +419,4 @@ _io_BytesIO___init__(PyObject *self, PyObject *args, PyObject *kwargs)
...
@@ -419,4 +419,4 @@ _io_BytesIO___init__(PyObject *self, PyObject *args, PyObject *kwargs)
exit:
exit:
return
return_value
;
return
return_value
;
}
}
/*[clinic end generated code: output=
500ccc149587fac4
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
164cf0e4117dadbe
input=a9049054013a1b77]*/
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