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
483405bc
Kaydet (Commit)
483405bc
authored
Şub 17, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22883: Got rid of outdated references to PyInt and PyString in comments.
üst
77c041ba
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
15 deletions
+12
-15
test_getargs2.py
Lib/test/test_getargs2.py
+2
-2
_iomodule.h
Modules/_io/_iomodule.h
+1
-1
_json.c
Modules/_json.c
+4
-4
connection.h
Modules/_sqlite/connection.h
+1
-1
fcntlmodule.c
Modules/fcntlmodule.c
+2
-5
itertoolsmodule.c
Modules/itertoolsmodule.c
+1
-1
ceval.c
Python/ceval.c
+1
-1
No files found.
Lib/test/test_getargs2.py
Dosyayı görüntüle @
483405bc
...
@@ -34,8 +34,8 @@ except ImportError:
...
@@ -34,8 +34,8 @@ except ImportError:
# > ** Changed from previous "range-and-a-half" to "none"; the
# > ** Changed from previous "range-and-a-half" to "none"; the
# > range-and-a-half checking wasn't particularly useful.
# > range-and-a-half checking wasn't particularly useful.
#
#
# Plus a C API or two, e.g. Py
Int_As
LongMask() ->
# Plus a C API or two, e.g. Py
Long_AsUnsigned
LongMask() ->
# unsigned long and Py
Int_As
LongLongMask() -> unsigned
# unsigned long and Py
Long_AsUnsigned
LongLongMask() -> unsigned
# long long (if that exists).
# long long (if that exists).
LARGE
=
0x7FFFFFFF
LARGE
=
0x7FFFFFFF
...
...
Modules/_io/_iomodule.h
Dosyayı görüntüle @
483405bc
...
@@ -69,7 +69,7 @@ extern int _PyIO_trap_eintr(void);
...
@@ -69,7 +69,7 @@ extern int _PyIO_trap_eintr(void);
* Offset type for positioning.
* Offset type for positioning.
*/
*/
/* Printing a variable of type off_t (with e.g., Py
String
_FromFormat)
/* Printing a variable of type off_t (with e.g., Py
Unicode
_FromFormat)
correctly and without producing compiler warnings is surprisingly painful.
correctly and without producing compiler warnings is surprisingly painful.
We identify an integer type whose size matches off_t and then: (1) cast the
We identify an integer type whose size matches off_t and then: (1) cast the
off_t to that integer type and (2) use the appropriate conversion
off_t to that integer type and (2) use the appropriate conversion
...
...
Modules/_json.c
Dosyayı görüntüle @
483405bc
...
@@ -827,7 +827,7 @@ bail:
...
@@ -827,7 +827,7 @@ bail:
static
PyObject
*
static
PyObject
*
_parse_array_unicode
(
PyScannerObject
*
s
,
PyObject
*
pystr
,
Py_ssize_t
idx
,
Py_ssize_t
*
next_idx_ptr
)
{
_parse_array_unicode
(
PyScannerObject
*
s
,
PyObject
*
pystr
,
Py_ssize_t
idx
,
Py_ssize_t
*
next_idx_ptr
)
{
/* Read a JSON array from Py
String
pystr.
/* Read a JSON array from Py
Unicode
pystr.
idx is the index of the first character after the opening brace.
idx is the index of the first character after the opening brace.
*next_idx_ptr is a return-by-reference index to the first character after
*next_idx_ptr is a return-by-reference index to the first character after
the closing brace.
the closing brace.
...
@@ -899,8 +899,8 @@ bail:
...
@@ -899,8 +899,8 @@ bail:
}
}
static
PyObject
*
static
PyObject
*
_parse_constant
(
PyScannerObject
*
s
,
char
*
constant
,
Py_ssize_t
idx
,
Py_ssize_t
*
next_idx_ptr
)
{
_parse_constant
(
PyScannerObject
*
s
,
c
onst
c
har
*
constant
,
Py_ssize_t
idx
,
Py_ssize_t
*
next_idx_ptr
)
{
/* Read a JSON constant
from PyString pystr
.
/* Read a JSON constant.
constant is the constant string that was found
constant is the constant string that was found
("NaN", "Infinity", "-Infinity").
("NaN", "Infinity", "-Infinity").
idx is the index of the first character of the constant
idx is the index of the first character of the constant
...
@@ -932,7 +932,7 @@ _match_number_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t start, Py_
...
@@ -932,7 +932,7 @@ _match_number_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t start, Py_
the number.
the number.
Returns a new PyObject representation of that number:
Returns a new PyObject representation of that number:
Py
Int, Py
Long, or PyFloat.
PyLong, or PyFloat.
May return other types if parse_int or parse_float are set
May return other types if parse_int or parse_float are set
*/
*/
void
*
str
;
void
*
str
;
...
...
Modules/_sqlite/connection.h
Dosyayı görüntüle @
483405bc
...
@@ -52,7 +52,7 @@ typedef struct
...
@@ -52,7 +52,7 @@ typedef struct
* first get called with count=0? */
* first get called with count=0? */
double
timeout_started
;
double
timeout_started
;
/* None for autocommit, otherwise a Py
String
with the isolation level */
/* None for autocommit, otherwise a Py
Unicode
with the isolation level */
PyObject
*
isolation_level
;
PyObject
*
isolation_level
;
/* NULL for autocommit, otherwise a string with the BEGIN statement; will be
/* NULL for autocommit, otherwise a string with the BEGIN statement; will be
...
...
Modules/fcntlmodule.c
Dosyayı görüntüle @
483405bc
...
@@ -152,11 +152,8 @@ fcntl_ioctl_impl(PyModuleDef *module, int fd, unsigned int code, PyObject *ob_ar
...
@@ -152,11 +152,8 @@ fcntl_ioctl_impl(PyModuleDef *module, int fd, unsigned int code, PyObject *ob_ar
/*[clinic end generated code: output=ad47738c118622bf input=a55a6ee8e494c449]*/
/*[clinic end generated code: output=ad47738c118622bf input=a55a6ee8e494c449]*/
{
{
#define IOCTL_BUFSZ 1024
#define IOCTL_BUFSZ 1024
/* We use the unsigned non-checked 'I'
/* We use the unsigned non-checked 'I' format for the 'code' parameter
format for the 'code' parameter because Python turns 0x8000000
because the system expects it to be a 32bit bit field value
into either a large positive number (PyLong or PyInt on 64-bit
platforms) or a negative number on others (32-bit PyInt)
whereas the system expects it to be a 32bit bit field value
regardless of it being passed as an int or unsigned long on
regardless of it being passed as an int or unsigned long on
various platforms. See the termios.TIOCSWINSZ constant across
various platforms. See the termios.TIOCSWINSZ constant across
platforms for an example of this.
platforms for an example of this.
...
...
Modules/itertoolsmodule.c
Dosyayı görüntüle @
483405bc
...
@@ -3874,7 +3874,7 @@ typedef struct {
...
@@ -3874,7 +3874,7 @@ typedef struct {
fast_mode: when cnt an integer < PY_SSIZE_T_MAX and no step is specified.
fast_mode: when cnt an integer < PY_SSIZE_T_MAX and no step is specified.
assert(cnt != PY_SSIZE_T_MAX && long_cnt == NULL && long_step==Py
Int
(1));
assert(cnt != PY_SSIZE_T_MAX && long_cnt == NULL && long_step==Py
Long
(1));
Advances with: cnt += 1
Advances with: cnt += 1
When count hits Y_SSIZE_T_MAX, switch to slow_mode.
When count hits Y_SSIZE_T_MAX, switch to slow_mode.
...
...
Python/ceval.c
Dosyayı görüntüle @
483405bc
...
@@ -4606,7 +4606,7 @@ ext_call_fail:
...
@@ -4606,7 +4606,7 @@ ext_call_fail:
return
result
;
return
result
;
}
}
/* Extract a slice index from a Py
Int or Py
Long or an object with the
/* Extract a slice index from a PyLong or an object with the
nb_index slot defined, and store in *pi.
nb_index slot defined, and store in *pi.
Silently reduce values larger than PY_SSIZE_T_MAX to PY_SSIZE_T_MAX,
Silently reduce values larger than PY_SSIZE_T_MAX to PY_SSIZE_T_MAX,
and silently boost values less than -PY_SSIZE_T_MAX-1 to -PY_SSIZE_T_MAX-1.
and silently boost values less than -PY_SSIZE_T_MAX-1 to -PY_SSIZE_T_MAX-1.
...
...
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