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
32a14662
Kaydet (Commit)
32a14662
authored
Eki 12, 2013
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge
üst
793d8478
d01d396e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
19 additions
and
13 deletions
+19
-13
asdl.h
Include/asdl.h
+2
-2
marshal.h
Include/marshal.h
+1
-1
test_marshal.py
Lib/test/test_marshal.py
+4
-4
NEWS
Misc/NEWS
+6
-0
asdl_c.py
Parser/asdl_c.py
+2
-2
Python-ast.c
Python/Python-ast.c
+0
-0
asdl.c
Python/asdl.c
+2
-2
ast.c
Python/ast.c
+0
-0
errors.c
Python/errors.c
+1
-1
fileutils.c
Python/fileutils.c
+1
-1
importlib.h
Python/importlib.h
+0
-0
marshal.c
Python/marshal.c
+0
-0
No files found.
Include/asdl.h
Dosyayı görüntüle @
32a14662
...
@@ -25,8 +25,8 @@ typedef struct {
...
@@ -25,8 +25,8 @@ typedef struct {
int
elements
[
1
];
int
elements
[
1
];
}
asdl_int_seq
;
}
asdl_int_seq
;
asdl_seq
*
asdl_seq_new
(
Py_ssize_t
size
,
PyArena
*
arena
);
asdl_seq
*
_Py_
asdl_seq_new
(
Py_ssize_t
size
,
PyArena
*
arena
);
asdl_int_seq
*
asdl_int_seq_new
(
Py_ssize_t
size
,
PyArena
*
arena
);
asdl_int_seq
*
_Py_
asdl_int_seq_new
(
Py_ssize_t
size
,
PyArena
*
arena
);
#define asdl_seq_GET(S, I) (S)->elements[(I)]
#define asdl_seq_GET(S, I) (S)->elements[(I)]
#define asdl_seq_LEN(S) ((S) == NULL ? 0 : (S)->size)
#define asdl_seq_LEN(S) ((S) == NULL ? 0 : (S)->size)
...
...
Include/marshal.h
Dosyayı görüntüle @
32a14662
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
#define Py_MARSHAL_VERSION
3
#define Py_MARSHAL_VERSION
4
PyAPI_FUNC
(
void
)
PyMarshal_WriteLongToFile
(
long
,
FILE
*
,
int
);
PyAPI_FUNC
(
void
)
PyMarshal_WriteLongToFile
(
long
,
FILE
*
,
int
);
PyAPI_FUNC
(
void
)
PyMarshal_WriteObjectToFile
(
PyObject
*
,
FILE
*
,
int
);
PyAPI_FUNC
(
void
)
PyMarshal_WriteObjectToFile
(
PyObject
*
,
FILE
*
,
int
);
...
...
Lib/test/test_marshal.py
Dosyayı görüntüle @
32a14662
...
@@ -262,11 +262,11 @@ class BugsTestCase(unittest.TestCase):
...
@@ -262,11 +262,11 @@ class BugsTestCase(unittest.TestCase):
def
test_bad_reader
(
self
):
def
test_bad_reader
(
self
):
class
BadReader
(
io
.
BytesIO
):
class
BadReader
(
io
.
BytesIO
):
def
read
(
self
,
n
=-
1
):
def
read
into
(
self
,
buf
):
b
=
super
()
.
read
(
n
)
n
=
super
()
.
readinto
(
buf
)
if
n
is
not
None
and
n
>
4
:
if
n
is
not
None
and
n
>
4
:
b
+=
b
' '
*
10
**
6
n
+=
10
**
6
return
b
return
n
for
value
in
(
1.0
,
1
j
,
b
'0123456789'
,
'0123456789'
):
for
value
in
(
1.0
,
1
j
,
b
'0123456789'
,
'0123456789'
):
self
.
assertRaises
(
ValueError
,
marshal
.
load
,
self
.
assertRaises
(
ValueError
,
marshal
.
load
,
BadReader
(
marshal
.
dumps
(
value
)))
BadReader
(
marshal
.
dumps
(
value
)))
...
...
Misc/NEWS
Dosyayı görüntüle @
32a14662
...
@@ -10,6 +10,12 @@ Projected release date: 2013-10-20
...
@@ -10,6 +10,12 @@ Projected release date: 2013-10-20
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #4555: All exported C symbols are now prefixed with either
"Py" or "_Py".
- Issue #19219: Speed up marshal.loads(), and make pyc files slightly
(5% to 10%) smaller.
- Issue #19221: Upgrade Unicode database to version 6.3.0.
- Issue #19221: Upgrade Unicode database to version 6.3.0.
- Issue #16742: The result of the C callback PyOS_ReadlineFunctionPointer must
- Issue #16742: The result of the C callback PyOS_ReadlineFunctionPointer must
...
...
Parser/asdl_c.py
Dosyayı görüntüle @
32a14662
...
@@ -519,9 +519,9 @@ class Obj2ModVisitor(PickleVisitor):
...
@@ -519,9 +519,9 @@ class Obj2ModVisitor(PickleVisitor):
self
.
emit
(
"}"
,
depth
+
1
)
self
.
emit
(
"}"
,
depth
+
1
)
self
.
emit
(
"len = PyList_GET_SIZE(tmp);"
,
depth
+
1
)
self
.
emit
(
"len = PyList_GET_SIZE(tmp);"
,
depth
+
1
)
if
self
.
isSimpleType
(
field
):
if
self
.
isSimpleType
(
field
):
self
.
emit
(
"
%
s = asdl_int_seq_new(len, arena);"
%
field
.
name
,
depth
+
1
)
self
.
emit
(
"
%
s =
_Py_
asdl_int_seq_new(len, arena);"
%
field
.
name
,
depth
+
1
)
else
:
else
:
self
.
emit
(
"
%
s = asdl_seq_new(len, arena);"
%
field
.
name
,
depth
+
1
)
self
.
emit
(
"
%
s =
_Py_
asdl_seq_new(len, arena);"
%
field
.
name
,
depth
+
1
)
self
.
emit
(
"if (
%
s == NULL) goto failed;"
%
field
.
name
,
depth
+
1
)
self
.
emit
(
"if (
%
s == NULL) goto failed;"
%
field
.
name
,
depth
+
1
)
self
.
emit
(
"for (i = 0; i < len; i++) {"
,
depth
+
1
)
self
.
emit
(
"for (i = 0; i < len; i++) {"
,
depth
+
1
)
self
.
emit
(
"
%
s value;"
%
ctype
,
depth
+
2
)
self
.
emit
(
"
%
s value;"
%
ctype
,
depth
+
2
)
...
...
Python/Python-ast.c
Dosyayı görüntüle @
32a14662
This diff is collapsed.
Click to expand it.
Python/asdl.c
Dosyayı görüntüle @
32a14662
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#include "asdl.h"
#include "asdl.h"
asdl_seq
*
asdl_seq
*
asdl_seq_new
(
Py_ssize_t
size
,
PyArena
*
arena
)
_Py_
asdl_seq_new
(
Py_ssize_t
size
,
PyArena
*
arena
)
{
{
asdl_seq
*
seq
=
NULL
;
asdl_seq
*
seq
=
NULL
;
size_t
n
=
(
size
?
(
sizeof
(
void
*
)
*
(
size
-
1
))
:
0
);
size_t
n
=
(
size
?
(
sizeof
(
void
*
)
*
(
size
-
1
))
:
0
);
...
@@ -33,7 +33,7 @@ asdl_seq_new(Py_ssize_t size, PyArena *arena)
...
@@ -33,7 +33,7 @@ asdl_seq_new(Py_ssize_t size, PyArena *arena)
}
}
asdl_int_seq
*
asdl_int_seq
*
asdl_int_seq_new
(
Py_ssize_t
size
,
PyArena
*
arena
)
_Py_
asdl_int_seq_new
(
Py_ssize_t
size
,
PyArena
*
arena
)
{
{
asdl_int_seq
*
seq
=
NULL
;
asdl_int_seq
*
seq
=
NULL
;
size_t
n
=
(
size
?
(
sizeof
(
void
*
)
*
(
size
-
1
))
:
0
);
size_t
n
=
(
size
?
(
sizeof
(
void
*
)
*
(
size
-
1
))
:
0
);
...
...
Python/ast.c
Dosyayı görüntüle @
32a14662
This diff is collapsed.
Click to expand it.
Python/errors.c
Dosyayı görüntüle @
32a14662
...
@@ -1014,7 +1014,7 @@ PyErr_SyntaxLocationEx(const char *filename, int lineno, int col_offset)
...
@@ -1014,7 +1014,7 @@ PyErr_SyntaxLocationEx(const char *filename, int lineno, int col_offset)
XXX The functionality of this function is quite similar to the
XXX The functionality of this function is quite similar to the
functionality in tb_displayline() in traceback.c. */
functionality in tb_displayline() in traceback.c. */
PyObject
*
static
PyObject
*
err_programtext
(
FILE
*
fp
,
int
lineno
)
err_programtext
(
FILE
*
fp
,
int
lineno
)
{
{
int
i
;
int
i
;
...
...
Python/fileutils.c
Dosyayı görüntüle @
32a14662
...
@@ -566,7 +566,7 @@ _Py_stat(PyObject *path, struct stat *statbuf)
...
@@ -566,7 +566,7 @@ _Py_stat(PyObject *path, struct stat *statbuf)
#endif
#endif
int
static
int
get_inheritable
(
int
fd
,
int
raise
)
get_inheritable
(
int
fd
,
int
raise
)
{
{
#ifdef MS_WINDOWS
#ifdef MS_WINDOWS
...
...
Python/importlib.h
Dosyayı görüntüle @
32a14662
This diff is collapsed.
Click to expand it.
Python/marshal.c
Dosyayı görüntüle @
32a14662
This diff is collapsed.
Click to expand it.
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