Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
31b7fc8e
Commit
31b7fc8e
authored
Mar 12, 2010
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backwards-compatability pxd files for CPython API
parent
19fa9fbf
Changes
33
Show whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
74 additions
and
5 deletions
+74
-5
Cython/Includes/python_bool.pxd
Cython/Includes/python_bool.pxd
+2
-0
Cython/Includes/python_buffer.pxd
Cython/Includes/python_buffer.pxd
+2
-0
Cython/Includes/python_bytes.pxd
Cython/Includes/python_bytes.pxd
+2
-0
Cython/Includes/python_cobject.pxd
Cython/Includes/python_cobject.pxd
+2
-0
Cython/Includes/python_complex.pxd
Cython/Includes/python_complex.pxd
+2
-0
Cython/Includes/python_dict.pxd
Cython/Includes/python_dict.pxd
+2
-0
Cython/Includes/python_exc.pxd
Cython/Includes/python_exc.pxd
+2
-0
Cython/Includes/python_float.pxd
Cython/Includes/python_float.pxd
+2
-0
Cython/Includes/python_function.pxd
Cython/Includes/python_function.pxd
+2
-0
Cython/Includes/python_getargs.pxd
Cython/Includes/python_getargs.pxd
+2
-0
Cython/Includes/python_instance.pxd
Cython/Includes/python_instance.pxd
+2
-0
Cython/Includes/python_int.pxd
Cython/Includes/python_int.pxd
+2
-0
Cython/Includes/python_iterator.pxd
Cython/Includes/python_iterator.pxd
+2
-0
Cython/Includes/python_list.pxd
Cython/Includes/python_list.pxd
+2
-0
Cython/Includes/python_long.pxd
Cython/Includes/python_long.pxd
+2
-0
Cython/Includes/python_mapping.pxd
Cython/Includes/python_mapping.pxd
+2
-0
Cython/Includes/python_mem.pxd
Cython/Includes/python_mem.pxd
+2
-0
Cython/Includes/python_method.pxd
Cython/Includes/python_method.pxd
+2
-0
Cython/Includes/python_module.pxd
Cython/Includes/python_module.pxd
+2
-0
Cython/Includes/python_number.pxd
Cython/Includes/python_number.pxd
+2
-0
Cython/Includes/python_object.pxd
Cython/Includes/python_object.pxd
+2
-0
Cython/Includes/python_oldbuffer.pxd
Cython/Includes/python_oldbuffer.pxd
+2
-0
Cython/Includes/python_pycapsule.pxd
Cython/Includes/python_pycapsule.pxd
+2
-0
Cython/Includes/python_ref.pxd
Cython/Includes/python_ref.pxd
+2
-0
Cython/Includes/python_sequence.pxd
Cython/Includes/python_sequence.pxd
+2
-0
Cython/Includes/python_set.pxd
Cython/Includes/python_set.pxd
+2
-0
Cython/Includes/python_string.pxd
Cython/Includes/python_string.pxd
+2
-0
Cython/Includes/python_tuple.pxd
Cython/Includes/python_tuple.pxd
+2
-0
Cython/Includes/python_type.pxd
Cython/Includes/python_type.pxd
+2
-0
Cython/Includes/python_unicode.pxd
Cython/Includes/python_unicode.pxd
+2
-0
Cython/Includes/python_version.pxd
Cython/Includes/python_version.pxd
+2
-0
Cython/Includes/python_weakref.pxd
Cython/Includes/python_weakref.pxd
+2
-0
tests/run/cython_includes.pyx
tests/run/cython_includes.pyx
+10
-5
No files found.
Cython/Includes/python_bool.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.bool
cimport
*
Cython/Includes/python_buffer.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.buffer
cimport
*
Cython/Includes/python_bytes.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.bytes
cimport
*
Cython/Includes/python_cobject.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.cobject
cimport
*
Cython/Includes/python_complex.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.complex
cimport
*
Cython/Includes/python_dict.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.dict
cimport
*
Cython/Includes/python_exc.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.exc
cimport
*
Cython/Includes/python_float.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.float
cimport
*
Cython/Includes/python_function.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.function
cimport
*
Cython/Includes/python_getargs.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.getargs
cimport
*
Cython/Includes/python_instance.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.instance
cimport
*
Cython/Includes/python_int.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.int
cimport
*
Cython/Includes/python_iterator.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.iterator
cimport
*
Cython/Includes/python_list.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.list
cimport
*
Cython/Includes/python_long.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.long
cimport
*
Cython/Includes/python_mapping.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.mapping
cimport
*
Cython/Includes/python_mem.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.mem
cimport
*
Cython/Includes/python_method.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.method
cimport
*
Cython/Includes/python_module.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.module
cimport
*
Cython/Includes/python_number.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.number
cimport
*
Cython/Includes/python_object.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.object
cimport
*
Cython/Includes/python_oldbuffer.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.oldbuffer
cimport
*
Cython/Includes/python_pycapsule.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.pycapsule
cimport
*
Cython/Includes/python_ref.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.ref
cimport
*
Cython/Includes/python_sequence.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.sequence
cimport
*
Cython/Includes/python_set.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.set
cimport
*
Cython/Includes/python_string.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.string
cimport
*
Cython/Includes/python_tuple.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.tuple
cimport
*
Cython/Includes/python_type.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.type
cimport
*
Cython/Includes/python_unicode.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.unicode
cimport
*
Cython/Includes/python_version.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.version
cimport
*
Cython/Includes/python_weakref.pxd
0 → 100644
View file @
31b7fc8e
# Present for backwards compatability
from
cpython.weakref
cimport
*
tests/run/cython_includes.pyx
View file @
31b7fc8e
from
libc.stdio
cimport
sprintf
from
libc.stdio
cimport
sprintf
from
python
cimport
PyType_Check
from
python
cimport
PyType_Check
from
cpython.type
cimport
PyType_Check
as
PyType_Check2
from
python_type
cimport
PyType_Check
as
PyType_Check2
from
cpython.type
cimport
PyType_Check
as
PyType_Check3
def
libc_imports
():
def
libc_
c
imports
():
"""
"""
>>> libc_imports()
>>> libc_
c
imports()
hello
hello
"""
"""
cdef
char
buf
[
10
]
cdef
char
buf
[
10
]
sprintf
(
buf
,
b'hello'
)
sprintf
(
buf
,
b'hello'
)
print
(
<
object
>
buf
).
decode
(
'ASCII'
)
print
(
<
object
>
buf
).
decode
(
'ASCII'
)
def
python_
imports
():
def
cpython_c
imports
():
"""
"""
>>> python_imports()
>>> cpython_cimports()
True
False
True
True
False
False
True
True
...
@@ -24,4 +27,6 @@ def python_imports():
...
@@ -24,4 +27,6 @@ def python_imports():
print
PyType_Check
([])
print
PyType_Check
([])
print
PyType_Check2
(
list
)
print
PyType_Check2
(
list
)
print
PyType_Check2
([])
print
PyType_Check2
([])
print
PyType_Check3
(
list
)
print
PyType_Check3
([])
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