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
03124946
Kaydet (Commit)
03124946
authored
Haz 10, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove last traces of cStringIO.
üst
b1ef6735
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
7 additions
and
119 deletions
+7
-119
csv.rst
Doc/library/csv.rst
+2
-2
email.message.rst
Doc/library/email.message.rst
+1
-1
pickle.rst
Doc/library/pickle.rst
+1
-1
cStringIO.h
Include/cStringIO.h
+0
-70
test_sys.py
Lib/test/test_sys.py
+1
-1
Setup.dist
Modules/Setup.dist
+0
-3
pythoncore.vcproj
PC/VS8.0/pythoncore.vcproj
+0
-4
config.c
PC/os2emx/config.c
+0
-2
python26.def
PC/os2emx/python26.def
+0
-3
config.c
PC/os2vacpp/config.c
+0
-2
makefile
PC/os2vacpp/makefile
+1
-16
makefile.omk
PC/os2vacpp/makefile.omk
+1
-10
pythoncore.vcproj
PCbuild/pythoncore.vcproj
+0
-4
No files found.
Doc/library/csv.rst
Dosyayı görüntüle @
03124946
...
...
@@ -484,7 +484,7 @@ For all other encodings the following :class:`UnicodeReader` and
parameter in their constructor and make sure that the data passes the real
reader or writer encoded as UTF-8::
import csv, codecs,
cStringIO
import csv, codecs,
io
class UTF8Recoder:
"""
...
...
@@ -524,7 +524,7 @@ reader or writer encoded as UTF-8::
def __init__(self, f, dialect=csv.excel, encoding="utf-8", **kwds):
# Redirect output to a queue
self.queue =
cStringIO
.StringIO()
self.queue =
io
.StringIO()
self.writer = csv.writer(self.queue, dialect=dialect, **kwds)
self.stream = f
self.encoder = codecs.getincrementalencoder(encoding)()
...
...
Doc/library/email.message.rst
Dosyayı görüntüle @
03124946
...
...
@@ -48,7 +48,7 @@ Here are the methods of the :class:`Message` class:
:class:`Generator` instance and use its :meth:`flatten` method directly.
For example::
from
cStringIO
import StringIO
from
io
import StringIO
from email.generator import Generator
fp = StringIO()
g = Generator(fp, mangle_from_=False, maxheaderlen=60)
...
...
Doc/library/pickle.rst
Dosyayı görüntüle @
03124946
...
...
@@ -555,7 +555,7 @@ the referenced object.
Here's a silly example that *might* shed more light::
import pickle
from
cStringIO
import StringIO
from
io
import StringIO
src = StringIO()
p = pickle.Pickler(src)
...
...
Include/cStringIO.h
deleted
100644 → 0
Dosyayı görüntüle @
b1ef6735
#ifndef Py_CSTRINGIO_H
#define Py_CSTRINGIO_H
#ifdef __cplusplus
extern
"C"
{
#endif
/*
This header provides access to cStringIO objects from C.
Functions are provided for calling cStringIO objects and
macros are provided for testing whether you have cStringIO
objects.
Before calling any of the functions or macros, you must initialize
the routines with:
PycString_IMPORT
This would typically be done in your init function.
*/
#define PycString_IMPORT \
PycStringIO = (struct PycStringIO_CAPI*)PyCObject_Import("cStringIO", \
"cStringIO_CAPI")
/* Basic functions to manipulate cStringIO objects from C */
static
struct
PycStringIO_CAPI
{
/* Read a string from an input object. If the last argument
is -1, the remainder will be read.
*/
int
(
*
cread
)(
PyObject
*
,
char
**
,
Py_ssize_t
);
/* Read a line from an input object. Returns the length of the read
line as an int and a pointer inside the object buffer as char** (so
the caller doesn't have to provide its own buffer as destination).
*/
int
(
*
creadline
)(
PyObject
*
,
char
**
);
/* Write a string to an output object*/
int
(
*
cwrite
)(
PyObject
*
,
const
char
*
,
Py_ssize_t
);
/* Get the output object as a Python string (returns new reference). */
PyObject
*
(
*
cgetvalue
)(
PyObject
*
);
/* Create a new output object */
PyObject
*
(
*
NewOutput
)(
int
);
/* Create an input object from a Python string
(copies the Python string reference).
*/
PyObject
*
(
*
NewInput
)(
PyObject
*
);
/* The Python types for cStringIO input and output objects.
Note that you can do input on an output object.
*/
PyTypeObject
*
InputType
,
*
OutputType
;
}
*
PycStringIO
;
/* These can be used to test if you have one */
#define PycStringIO_InputCheck(O) \
(Py_TYPE(O)==PycStringIO->InputType)
#define PycStringIO_OutputCheck(O) \
(Py_TYPE(O)==PycStringIO->OutputType)
#ifdef __cplusplus
}
#endif
#endif
/* !Py_CSTRINGIO_H */
Lib/test/test_sys.py
Dosyayı görüntüle @
03124946
...
...
@@ -297,7 +297,7 @@ class SysModuleTest(unittest.TestCase):
self
.
assert_
(
isinstance
(
vi
[
4
],
int
))
def
test_43581
(
self
):
# Can't use sys.stdout, as this is a
c
StringIO object when
# Can't use sys.stdout, as this is a StringIO object when
# the test runs under regrtest.
self
.
assertEqual
(
sys
.
__stdout__
.
encoding
,
sys
.
__stderr__
.
encoding
)
...
...
Modules/Setup.dist
Dosyayı görüntüle @
03124946
...
...
@@ -339,9 +339,6 @@ _symtable symtablemodule.c
# Fred Drake's interface to the Python parser
#parser parsermodule.c
# cStringIO
#cStringIO cStringIO.c
# Lee Busby's SIGFPE modules.
# The library to link fpectl with is platform specific.
...
...
PC/VS8.0/pythoncore.vcproj
Dosyayı görüntüle @
03124946
...
...
@@ -690,10 +690,6 @@
RelativePath=
"..\..\Include\complexobject.h"
>
</File>
<File
RelativePath=
"..\..\Include\cStringIO.h"
>
</File>
<File
RelativePath=
"..\..\Include\datetime.h"
>
...
...
PC/os2emx/config.c
Dosyayı görüntüle @
03124946
...
...
@@ -50,7 +50,6 @@ extern void init_symtable();
extern
void
init_weakref
();
extern
void
initarray
();
extern
void
initbinascii
();
extern
void
initcStringIO
();
extern
void
initcollections
();
extern
void
initcmath
();
extern
void
initdatetime
();
...
...
@@ -110,7 +109,6 @@ struct _inittab _PyImport_Inittab[] = {
{
"_weakref"
,
init_weakref
},
{
"array"
,
initarray
},
{
"binascii"
,
initbinascii
},
{
"cStringIO"
,
initcStringIO
},
{
"collections"
,
initcollections
},
{
"cmath"
,
initcmath
},
{
"datetime"
,
initdatetime
},
...
...
PC/os2emx/python26.def
Dosyayı görüntüle @
03124946
...
...
@@ -1218,9 +1218,6 @@ EXPORTS
; "initcPickle"
; "fast_save_leave"
; From python26_s.lib(cStringIO)
; "initcStringIO"
; From python26_s.lib(_csv)
; "init_csv"
...
...
PC/os2vacpp/config.c
Dosyayı görüntüle @
03124946
...
...
@@ -34,7 +34,6 @@ extern void init_socket(void);
extern
void
initstruct
(
void
);
extern
void
inittime
(
void
);
extern
void
init_thread
(
void
);
extern
void
initcStringIO
(
void
);
extern
void
initpcre
(
void
);
#ifdef WIN32
extern
void
initmsvcrt
(
void
);
...
...
@@ -78,7 +77,6 @@ struct _inittab _PyImport_Inittab[] = {
#ifdef WITH_THREAD
{
"_thread"
,
init_thread
},
#endif
{
"cStringIO"
,
initcStringIO
},
{
"pcre"
,
initpcre
},
#ifdef WIN32
{
"msvcrt"
,
initmsvcrt
},
...
...
PC/os2vacpp/makefile
Dosyayı görüntüle @
03124946
...
...
@@ -180,7 +180,6 @@ MODULES = \
$(PATHOBJ)
\A
rrayModule.obj
\
$(PATHOBJ)
\B
inAscii.obj
\
$(PATHOBJ)
\C
MathModule.obj
\
$(PATHOBJ)
\c
StringIO.obj
\
$(PATHOBJ)
\E
rrnoModule.obj
\
$(PATHOBJ)
\G
CModule.obj
\
$(PATHOBJ)
\G
etBuildInfo.obj
\
...
...
@@ -440,7 +439,7 @@ cmathmodule.obj: $(PY_INCLUDE)\abstract.h $(PY_INCLUDE)\ceval.h \
cpickle.obj
:
$(PY_INCLUDE)
\a
bstract.h $(PY_INCLUDE)
\c
eval.h $(PY_INCLUDE)
\c
lassobject.h
\
$(PY_INCLUDE)
\c
object.h $(PY_INCLUDE)
\c
omplexobject.h pyconfig.h
\
$(PY_INCLUDE)
\
c
stringio.h $(PY_INCLUDE)
\
d
ictobject.h $(PY_INCLUDE)
\f
ileobject.h
\
$(PY_INCLUDE)
\d
ictobject.h $(PY_INCLUDE)
\f
ileobject.h
\
$(PY_INCLUDE)
\f
loatobject.h $(PY_INCLUDE)
\f
uncobject.h $(PY_INCLUDE)
\i
mport.h
\
$(PY_INCLUDE)
\i
ntobject.h $(PY_INCLUDE)
\i
ntrcheck.h $(PY_INCLUDE)
\l
istobject.h
\
$(PY_INCLUDE)
\l
ongobject.h $(PY_INCLUDE)
\m
ethodobject.h
\
...
...
@@ -466,20 +465,6 @@ cryptmodule.obj: $(PY_INCLUDE)\abstract.h $(PY_INCLUDE)\ceval.h \
$(PY_INCLUDE)
\s
tringobject.h $(PY_INCLUDE)
\s
ysmodule.h $(PY_INCLUDE)
\t
raceback.h
\
$(PY_INCLUDE)
\t
upleobject.h
cstringio.obj
:
$(PY_INCLUDE)
\a
bstract.h $(PY_INCLUDE)
\c
eval.h $(PY_INCLUDE)
\c
lassobject.h
\
$(PY_INCLUDE)
\c
object.h $(PY_INCLUDE)
\c
omplexobject.h pyconfig.h
\
$(PY_INCLUDE)
\c
stringio.h $(PY_INCLUDE)
\d
ictobject.h $(PY_INCLUDE)
\f
ileobject.h
\
$(PY_INCLUDE)
\f
loatobject.h $(PY_INCLUDE)
\f
uncobject.h $(PY_INCLUDE)
\i
mport.h
\
$(PY_INCLUDE)
\i
ntobject.h $(PY_INCLUDE)
\i
ntrcheck.h $(PY_INCLUDE)
\l
istobject.h
\
$(PY_INCLUDE)
\l
ongobject.h $(PY_INCLUDE)
\m
ethodobject.h
\
$(PY_INCLUDE)
\m
odsupport.h $(PY_INCLUDE)
\m
oduleobject.h $(PY_INCLUDE)
\m
ymalloc.h
\
$(PY_INCLUDE)
\m
yproto.h $(PY_INCLUDE)
\o
bject.h $(PY_INCLUDE)
\o
bjimpl.h
\
$(PY_INCLUDE)
\p
ydebug.h $(PY_INCLUDE)
\p
yerrors.h $(PY_INCLUDE)
\p
yfpe.h
\
$(PY_INCLUDE)
\p
ystate.h $(PY_INCLUDE)
\p
ython.h $(PY_INCLUDE)
\p
ythonrun.h
\
$(PY_INCLUDE)
\r
angeobject.h $(PY_INCLUDE)
\s
liceobject.h
\
$(PY_INCLUDE)
\s
tringobject.h $(PY_INCLUDE)
\s
ysmodule.h $(PY_INCLUDE)
\t
raceback.h
\
$(PY_INCLUDE)
\t
upleobject.h
cursesmodule.obj
:
$(PY_INCLUDE)
\a
bstract.h $(PY_INCLUDE)
\c
eval.h
\
$(PY_INCLUDE)
\c
lassobject.h $(PY_INCLUDE)
\c
object.h $(PY_INCLUDE)
\c
omplexobject.h
\
pyconfig.h $(PY_INCLUDE)
\d
ictobject.h $(PY_INCLUDE)
\f
ileobject.h
\
...
...
PC/os2vacpp/makefile.omk
Dosyayı görüntüle @
03124946
...
...
@@ -142,7 +142,6 @@ MODULES = \
ArrayModule.obj
\
BinAscii.obj
\
CMathModule.obj
\
cStringIO.obj
\
ErrnoModule.obj
\
GetBuildInfo.obj
\
GetPathP.obj
\
...
...
@@ -379,7 +378,7 @@ cmathmodule.obj: abstract.h ceval.h classobject.h cobject.h complexobject.h \
stringobject.h sysmodule.h traceback.h tupleobject.h
cpickle.obj
:
abstract.h ceval.h classobject.h cobject.h complexobject.h
\
pyconfig.h
cstringio.h
dictobject.h fileobject.h floatobject.h
\
pyconfig.h dictobject.h fileobject.h floatobject.h
\
funcobject.h import.h intobject.h intrcheck.h listobject.h
\
longobject.h methodobject.h modsupport.h moduleobject.h mymalloc.h
\
mymath.h myproto.h object.h objimpl.h pydebug.h pyerrors.h pyfpe.h
\
...
...
@@ -394,14 +393,6 @@ cryptmodule.obj: abstract.h ceval.h classobject.h cobject.h complexobject.h \
pythonrun.h rangeobject.h sliceobject.h stringobject.h sysmodule.h
\
traceback.h tupleobject.h
cstringio.obj
:
abstract.h ceval.h classobject.h cobject.h complexobject.h
\
pyconfig.h cstringio.h dictobject.h fileobject.h floatobject.h
\
funcobject.h import.h intobject.h intrcheck.h listobject.h
\
longobject.h methodobject.h modsupport.h moduleobject.h mymalloc.h
\
myproto.h object.h objimpl.h pydebug.h pyerrors.h pyfpe.h
\
pystate.h python.h pythonrun.h rangeobject.h sliceobject.h
\
stringobject.h sysmodule.h traceback.h tupleobject.h
cursesmodule.obj
:
abstract.h ceval.h classobject.h cobject.h
\
complexobject.h pyconfig.h dictobject.h fileobject.h floatobject.h
\
funcobject.h import.h intobject.h intrcheck.h listobject.h
\
...
...
PCbuild/pythoncore.vcproj
Dosyayı görüntüle @
03124946
...
...
@@ -694,10 +694,6 @@
RelativePath=
"..\Include\complexobject.h"
>
</File>
<File
RelativePath=
"..\Include\cStringIO.h"
>
</File>
<File
RelativePath=
"..\Include\datetime.h"
>
...
...
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