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
4f23cabc
Kaydet (Commit)
4f23cabc
authored
May 08, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Corrections for a/an in code comments and documentation
üst
f2f1c57b
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
19 additions
and
19 deletions
+19
-19
index.html
Demo/metaclasses/index.html
+1
-1
string.rst
Doc/c-api/string.rst
+1
-1
codecs.rst
Doc/library/codecs.rst
+1
-1
ctypes.rst
Doc/library/ctypes.rst
+1
-1
imageop.rst
Doc/library/imageop.rst
+1
-1
stdtypes.rst
Doc/library/stdtypes.rst
+1
-1
memoryobject.h
Include/memoryobject.h
+1
-1
pythonrun.h
Include/pythonrun.h
+1
-1
Tkinter.py
Lib/lib-tk/Tkinter.py
+1
-1
test_imageop.py
Lib/test/test_imageop.py
+1
-1
README
Mac/README
+1
-1
cheatsheet
Misc/cheatsheet
+1
-1
audioop.c
Modules/audioop.c
+3
-3
floatobject.c
Objects/floatobject.c
+1
-1
formatter.h
Objects/stringlib/formatter.h
+2
-2
pyconfig.h
PC/pyconfig.h
+1
-1
No files found.
Demo/metaclasses/index.html
Dosyayı görüntüle @
4f23cabc
...
@@ -222,7 +222,7 @@ then used as a (normal, non-meta) class; instantiation of the class
...
@@ -222,7 +222,7 @@ then used as a (normal, non-meta) class; instantiation of the class
means calling the metainstance, and this will return a real instance.
means calling the metainstance, and this will return a real instance.
And what class is that an instance of? Conceptually, it is of course
And what class is that an instance of? Conceptually, it is of course
an instance of our metainstance; but in most cases the Python runtime
an instance of our metainstance; but in most cases the Python runtime
system will see it as an instance of a
a
helper class used by the
system will see it as an instance of a helper class used by the
metaclass to implement its (non-meta) instances...
metaclass to implement its (non-meta) instances...
<P>
Hopefully an example will make things clearer. Let's presume we
<P>
Hopefully an example will make things clearer. Let's presume we
...
...
Doc/c-api/string.rst
Dosyayı görüntüle @
4f23cabc
...
@@ -88,7 +88,7 @@ called with a non-string parameter.
...
@@ -88,7 +88,7 @@ called with a non-string parameter.
| :attr:`%%` | *n/a* | The literal % character. |
| :attr:`%%` | *n/a* | The literal % character. |
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%c` | int | A single character, |
| :attr:`%c` | int | A single character, |
| | | represented as a
n C int.
|
| | | represented as a
C int.
|
+-------------------+---------------+--------------------------------+
+-------------------+---------------+--------------------------------+
| :attr:`%d` | int | Exactly equivalent to |
| :attr:`%d` | int | Exactly equivalent to |
| | | ``printf("%d")``. |
| | | ``printf("%d")``. |
...
...
Doc/library/codecs.rst
Dosyayı görüntüle @
4f23cabc
...
@@ -909,7 +909,7 @@ particular, the following variants typically exist:
...
@@ -909,7 +909,7 @@ particular, the following variants typically exist:
* an ISO 8859 codeset
* an ISO 8859 codeset
* a Microsoft Windows code page, which is typically derived from a 8859 codeset,
* a Microsoft Windows code page, which is typically derived from a
n
8859 codeset,
but replaces control characters with additional graphic characters
but replaces control characters with additional graphic characters
* an IBM EBCDIC code page
* an IBM EBCDIC code page
...
...
Doc/library/ctypes.rst
Dosyayı görüntüle @
4f23cabc
...
@@ -1873,7 +1873,7 @@ Utility functions
...
@@ -1873,7 +1873,7 @@ Utility functions
allows specifying the size of the array if the length of the string should not
allows specifying the size of the array if the length of the string should not
be used.
be used.
If the first parameter is a 8-bit string, it is converted into a unicode string
If the first parameter is a
n
8-bit string, it is converted into a unicode string
according to ctypes conversion rules.
according to ctypes conversion rules.
...
...
Doc/library/imageop.rst
Dosyayı görüntüle @
4f23cabc
...
@@ -49,7 +49,7 @@ The module defines the following variables and functions:
...
@@ -49,7 +49,7 @@ The module defines the following variables and functions:
.. function:: grey2mono(image, width, height, threshold)
.. function:: grey2mono(image, width, height, threshold)
Convert a 8-bit deep greyscale image to a 1-bit deep image by thresholding all
Convert a
n
8-bit deep greyscale image to a 1-bit deep image by thresholding all
the pixels. The resulting image is tightly packed and is probably only useful
the pixels. The resulting image is tightly packed and is probably only useful
as an argument to :func:`mono2grey`.
as an argument to :func:`mono2grey`.
...
...
Doc/library/stdtypes.rst
Dosyayı görüntüle @
4f23cabc
...
@@ -2749,7 +2749,7 @@ is generally interpreted as simple bytes.
...
@@ -2749,7 +2749,7 @@ is generally interpreted as simple bytes.
.. attribute:: shape
.. attribute:: shape
A tuple of integers the length of :attr:`ndim` giving the shape of the
A tuple of integers the length of :attr:`ndim` giving the shape of the
memory as a N-dimensional array.
memory as a
n
N-dimensional array.
.. attribute:: ndim
.. attribute:: ndim
...
...
Include/memoryobject.h
Dosyayı görüntüle @
4f23cabc
...
@@ -33,7 +33,7 @@ PyAPI_FUNC(PyObject *) PyMemoryView_GetContiguous(PyObject *base,
...
@@ -33,7 +33,7 @@ PyAPI_FUNC(PyObject *) PyMemoryView_GetContiguous(PyObject *base,
original buffer if a copy must be made. If buffertype is
original buffer if a copy must be made. If buffertype is
PyBUF_WRITE and the buffer is not contiguous an error will
PyBUF_WRITE and the buffer is not contiguous an error will
be raised. In this circumstance, the user can use
be raised. In this circumstance, the user can use
PyBUF_SHADOW to ensure that a
a
writable temporary
PyBUF_SHADOW to ensure that a writable temporary
contiguous buffer is returned. The contents of this
contiguous buffer is returned. The contents of this
contiguous buffer will be copied back into the original
contiguous buffer will be copied back into the original
object after the memoryview object is deleted as long as
object after the memoryview object is deleted as long as
...
...
Include/pythonrun.h
Dosyayı görüntüle @
4f23cabc
...
@@ -155,7 +155,7 @@ PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
...
@@ -155,7 +155,7 @@ PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
/* Stack size, in "pointers" (so we get extra safety margins
/* Stack size, in "pointers" (so we get extra safety margins
on 64-bit platforms). On a 32-bit platform, this translates
on 64-bit platforms). On a 32-bit platform, this translates
to a 8k margin. */
to a
n
8k margin. */
#define PYOS_STACK_MARGIN 2048
#define PYOS_STACK_MARGIN 2048
#if defined(WIN32) && !defined(MS_WIN64) && defined(_MSC_VER) && _MSC_VER >= 1300
#if defined(WIN32) && !defined(MS_WIN64) && defined(_MSC_VER) && _MSC_VER >= 1300
...
...
Lib/lib-tk/Tkinter.py
Dosyayı görüntüle @
4f23cabc
...
@@ -1252,7 +1252,7 @@ class Misc:
...
@@ -1252,7 +1252,7 @@ class Misc:
# time field: "valid for events that contain a time field"
# time field: "valid for events that contain a time field"
# width field: Configure, ConfigureRequest, Create, ResizeRequest,
# width field: Configure, ConfigureRequest, Create, ResizeRequest,
# and Expose events only
# and Expose events only
# x field: "valid for events that contain a x field"
# x field: "valid for events that contain a
n
x field"
# y field: "valid for events that contain a y field"
# y field: "valid for events that contain a y field"
# keysym as decimal: KeyPress and KeyRelease events only
# keysym as decimal: KeyPress and KeyRelease events only
# x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress,
# x_root, y_root fields: ButtonPress, ButtonRelease, KeyPress,
...
...
Lib/test/test_imageop.py
Dosyayı görüntüle @
4f23cabc
...
@@ -121,7 +121,7 @@ def test_main():
...
@@ -121,7 +121,7 @@ def test_main():
print
'grey2rgb'
print
'grey2rgb'
image
=
imageop
.
grey2rgb
(
greyimage
,
width
,
height
)
image
=
imageop
.
grey2rgb
(
greyimage
,
width
,
height
)
# Convert a 8-bit deep greyscale image to a 1-bit deep image by
# Convert a
n
8-bit deep greyscale image to a 1-bit deep image by
# thresholding all the pixels. The resulting image is tightly packed
# thresholding all the pixels. The resulting image is tightly packed
# and is probably only useful as an argument to mono2grey.
# and is probably only useful as an argument to mono2grey.
if
verbose
:
if
verbose
:
...
...
Mac/README
Dosyayı görüntüle @
4f23cabc
...
@@ -125,7 +125,7 @@ values are available:
...
@@ -125,7 +125,7 @@ values are available:
To build a universal binary that includes a 64-bit architecture, you must build
To build a universal binary that includes a 64-bit architecture, you must build
on a system running OS X 10.5 or later. The ``all`` and ``64-bit`` flavors can
on a system running OS X 10.5 or later. The ``all`` and ``64-bit`` flavors can
only be built with a
n
10.5 SDK because ``ppc64`` support was only included with
only be built with a 10.5 SDK because ``ppc64`` support was only included with
OS X 10.5. Although legacy ``ppc`` support was included with Xcode 3 on OS X
OS X 10.5. Although legacy ``ppc`` support was included with Xcode 3 on OS X
10.6, it was removed in Xcode 4, versions of which were released on OS X 10.6
10.6, it was removed in Xcode 4, versions of which were released on OS X 10.6
and which is the standard for OS X 10.7. To summarize, the
and which is the standard for OS X 10.7. To summarize, the
...
...
Misc/cheatsheet
Dosyayı görüntüle @
4f23cabc
...
@@ -1053,7 +1053,7 @@ type(obj) types.StringType: print 'It is a string'NB: it is
...
@@ -1053,7 +1053,7 @@ type(obj) types.StringType: print 'It is a string'NB: it is
recommanded to use the following form:if isinstance(x,
recommanded to use the following form:if isinstance(x,
types.StringType): etc...
types.StringType): etc...
unichr(code) code.
unichr(code) code.
unicode(string[, Creates a Unicode string from a 8-bit string, using
unicode(string[, Creates a Unicode string from a
n
8-bit string, using
encoding[, error thegiven encoding name and error treatment ('strict',
encoding[, error thegiven encoding name and error treatment ('strict',
]]]) 'ignore',or 'replace'}.
]]]) 'ignore',or 'replace'}.
Without arguments, returns a dictionary correspondingto the
Without arguments, returns a dictionary correspondingto the
...
...
Modules/audioop.c
Dosyayı görüntüle @
4f23cabc
...
@@ -55,7 +55,7 @@ fbound(double val, double minval, double maxval)
...
@@ -55,7 +55,7 @@ fbound(double val, double minval, double maxval)
*/
*/
#define BIAS 0x84
/* define the add-in bias for 16 bit samples */
#define BIAS 0x84
/* define the add-in bias for 16 bit samples */
#define CLIP 32635
#define CLIP 32635
#define SIGN_BIT (0x80)
/* Sign bit for a A-law byte. */
#define SIGN_BIT (0x80)
/* Sign bit for a
n
A-law byte. */
#define QUANT_MASK (0xf)
/* Quantization field mask. */
#define QUANT_MASK (0xf)
/* Quantization field mask. */
#define SEG_SHIFT (4)
/* Left shift for segment number. */
#define SEG_SHIFT (4)
/* Left shift for segment number. */
#define SEG_MASK (0x70)
/* Segment field mask. */
#define SEG_MASK (0x70)
/* Segment field mask. */
...
@@ -229,8 +229,8 @@ static PyInt16 _st_alaw2linear16[256] = {
...
@@ -229,8 +229,8 @@ static PyInt16 _st_alaw2linear16[256] = {
};
};
/*
/*
* linear2alaw() accepts a
n
13-bit signed integer and encodes it as A-law data
* linear2alaw() accepts a 13-bit signed integer and encodes it as A-law data
* stored in a unsigned char. This function should only be called with
* stored in a
n
unsigned char. This function should only be called with
* the data shifted such that it only contains information in the lower
* the data shifted such that it only contains information in the lower
* 13-bits.
* 13-bits.
*
*
...
...
Objects/floatobject.c
Dosyayı görüntüle @
4f23cabc
...
@@ -407,7 +407,7 @@ float_str(PyFloatObject *v)
...
@@ -407,7 +407,7 @@ float_str(PyFloatObject *v)
* may lose info from fractional bits. Converting the integer to a double
* may lose info from fractional bits. Converting the integer to a double
* also has two failure modes: (1) a long int may trigger overflow (too
* also has two failure modes: (1) a long int may trigger overflow (too
* large to fit in the dynamic range of a C double); (2) even a C long may have
* large to fit in the dynamic range of a C double); (2) even a C long may have
* more bits than fit in a C double (e.g., on a
a
64-bit box long may have
* more bits than fit in a C double (e.g., on a 64-bit box long may have
* 63 bits of precision, but a C double probably has only 53), and then
* 63 bits of precision, but a C double probably has only 53), and then
* we can falsely claim equality when low-order integer bits are lost by
* we can falsely claim equality when low-order integer bits are lost by
* coercion to double. So this part is painful too.
* coercion to double. So this part is painful too.
...
...
Objects/stringlib/formatter.h
Dosyayı görüntüle @
4f23cabc
...
@@ -995,7 +995,7 @@ format_float_internal(PyObject *value,
...
@@ -995,7 +995,7 @@ format_float_internal(PyObject *value,
if
(
precision
<
0
)
if
(
precision
<
0
)
precision
=
default_precision
;
precision
=
default_precision
;
/* Cast "type", because if we're in unicode we need to pass a
/* Cast "type", because if we're in unicode we need to pass a
n
8-bit char. This is safe, because we've restricted what "type"
8-bit char. This is safe, because we've restricted what "type"
can be. */
can be. */
buf
=
PyOS_double_to_string
(
val
,
(
char
)
type
,
precision
,
flags
,
buf
=
PyOS_double_to_string
(
val
,
(
char
)
type
,
precision
,
flags
,
...
@@ -1175,7 +1175,7 @@ format_complex_internal(PyObject *value,
...
@@ -1175,7 +1175,7 @@ format_complex_internal(PyObject *value,
if
(
precision
<
0
)
if
(
precision
<
0
)
precision
=
default_precision
;
precision
=
default_precision
;
/* Cast "type", because if we're in unicode we need to pass a
/* Cast "type", because if we're in unicode we need to pass a
n
8-bit char. This is safe, because we've restricted what "type"
8-bit char. This is safe, because we've restricted what "type"
can be. */
can be. */
re_buf
=
PyOS_double_to_string
(
re
,
(
char
)
type
,
precision
,
flags
,
re_buf
=
PyOS_double_to_string
(
re
,
(
char
)
type
,
precision
,
flags
,
...
...
PC/pyconfig.h
Dosyayı görüntüle @
4f23cabc
...
@@ -368,7 +368,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
...
@@ -368,7 +368,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
# define SIZEOF_FPOS_T 8
# define SIZEOF_FPOS_T 8
# define SIZEOF_HKEY 4
# define SIZEOF_HKEY 4
# define SIZEOF_SIZE_T 4
# define SIZEOF_SIZE_T 4
/* MS VS2005 changes time_t to a
n
64-bit type on all platforms */
/* MS VS2005 changes time_t to a 64-bit type on all platforms */
# if defined(_MSC_VER) && _MSC_VER >= 1400
# if defined(_MSC_VER) && _MSC_VER >= 1400
# define SIZEOF_TIME_T 8
# define SIZEOF_TIME_T 8
# else
# else
...
...
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