summaryrefslogtreecommitdiff
path: root/docs/src/reference/language_basics.rst
blob: bd8b1e38c9be9da2ba2d9cb3fbba218653e88d2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
.. highlight:: cython


***************
Language Basics
***************

.. note::

    The sections in this page were moved to the :ref:`language-basics` in the userguide.

=================
Cython File Types
=================

This section was moved to :ref:`cython_file_types`.

Implementation File
===================

What can it contain?
--------------------

What can't it contain?
----------------------

Definition File
===============

What can it contain?
--------------------

What can't it contain?
----------------------

What else?
----------

cimport
```````

compilation order
`````````````````

Include File
============

What can it contain?
--------------------

How do I use it?
----------------

====================
Declaring Data Types
====================

This section was moved to :ref:`declaring_data_types`.

The cdef Statement
==================

This section was moved to :ref:`c_variable_and_type_definitions`.

Grouping cdef Declarations
==========================

This section was moved to :ref:`c_variable_and_type_definitions`.

C types and Python classes
==========================

This section was moved to :ref:`types`.

Parameters
==========

This section was moved to :ref:`python_functions_vs_c_functions`.

Automatic Type Conversion
=========================

This section was moved to :ref:`type-conversion`.

Type Casting
============

This section was moved to :ref:`type_casting`.

Checked Type Casts
------------------

This section was moved to :ref:`checked_type_casts`.

==========================
Statements and Expressions
==========================

This section was moved to :ref:`statements_and_expressions`.

Differences Between Cython and C
================================

Scope Rules
===========

Built-in Constants
==================

Operator Precedence
===================

For-loops
==========

=====================
Functions and Methods
=====================

This section was moved to :ref:`python_functions_vs_c_functions`.


Callable from Python (def)
==========================

Callable from C (cdef)
======================

Callable from both Python and C (cpdef)
=======================================

Overriding
==========

This section was moved to :ref:`overriding_in_extension_types`.

Function Pointers
=================

Python Built-ins
================

This section was moved to :ref:`built_in_functions`.

Optional Arguments
==================

This section was moved to :ref:`optional_arguments`.

Keyword-only Arguments
=======================

This section was moved to :ref:`keyword_only_argument`.

============================
Error and Exception Handling
============================

This section was moved to :ref:`error_return_values`.

Checking return values for non-Cython functions..
=================================================

This section was moved to :ref:`checking_return_values_of_non_cython_functions`.

=======================
Conditional Compilation
=======================

This section was moved to :ref:`conditional_compilation`.

Compile-Time Definitions
=========================

Conditional Statements
=======================