Updated version number. Changed tables in special_methods.rst to deal with Sphinx...
authorggellner@encolpuis <none@none>
Sat, 10 Jan 2009 04:22:18 +0000 (23:22 -0500)
committerggellner@encolpuis <none@none>
Sat, 10 Jan 2009 04:22:18 +0000 (23:22 -0500)
conf.py
docs/special_methods.rst
sphinxext/cython_highlighting.py
sphinxext/cython_highlighting.pyc
sphinxext/ipython_console_highlighting.pyc

diff --git a/conf.py b/conf.py
index a86633d472fa28da65415a7db4076a95b5e7601c..014df99d919099f2af112b76905f77a53f891a16 100644 (file)
--- a/conf.py
+++ b/conf.py
@@ -48,9 +48,9 @@ copyright = '2008, Stefan Behnel, Robert Bradshaw, Grew Ewing, William Stein, Ga
 # other places throughout the built documents.
 #
 # The short X.Y version.
-version = '0.9.8.1'
+version = '0.10'
 # The full version, including alpha/beta/rc tags.
-release = '0.9.8.1.1'
+release = '0.10.3'
 
 # There are two options for replacing |today|: either, you set today to some
 # non-false value, then it is used:
index f49d6a58ef277f344379e151158583180e36cd82..d1866e2500de870ed0aa87399c563e9a8974b37b 100644 (file)
@@ -149,11 +149,12 @@ with no type specified in the table are generic Python objects.
 You don't have to declare your method as taking these parameter types. If you
 declare different types, conversions will be performed as necessary.
  
+General
+^^^^^^^
+
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | Name                         | Parameters                            | Return type |         Description                                 |
-+-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
-| General                                                                                                                           |
-+-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
++=======================+=======================================+=============+=====================================================+
 | __cinit__             |self, ...                              |             | Basic initialisation (no direct Python equivalent)  |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __init__              |self, ...                              |             | Further initialisation                              |
@@ -180,8 +181,13 @@ declare different types, conversions will be performed as necessary.
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __delattr__           |self, name                             |             | Delete attribute                                    |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
-| Arithmetic operators                                                                                                              |
+
+Arithmetic operators
+^^^^^^^^^^^^^^^^^^^^
+
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
+| Name                         | Parameters                            | Return type |         Description                                 |
++=======================+=======================================+=============+=====================================================+
 | __add__               | x, y                                         | object      | binary `+` operator                                 |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __sub__              | x, y                                  | object      | binary `-` operator                                 |
@@ -220,8 +226,13 @@ declare different types, conversions will be performed as necessary.
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __xor__              | x, y                                  | object      | `^` operator                                        |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
-| Numeric conversions                                                                                                               |
+
+Numeric conversions
+^^^^^^^^^^^^^^^^^^^
+
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
+| Name                         | Parameters                            | Return type |         Description                                 |
++=======================+=======================================+=============+=====================================================+
 | __int__              | self                                  | object      | Convert to integer                                  |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __long__             | self                                  | object      | Convert to long integer                             |
@@ -234,8 +245,13 @@ declare different types, conversions will be performed as necessary.
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __index__ (2.5+ only)        | self                                  | object      | Convert to sequence index                           |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
-| In-place arithmetic operators                                                                                                     |
+
+In-place arithmetic operators
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
+| Name                         | Parameters                            | Return type |         Description                                 |
++=======================+=======================================+=============+=====================================================+
 | __iadd__             | self, x                               | object      | `+=` operator                                       |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __isub__             | self, x                               | object      | `-=` operator                                       |
@@ -262,8 +278,13 @@ declare different types, conversions will be performed as necessary.
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __ixor__             | self, x                               | object      | `^=` operator                                       |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
-| Sequences and mappings                                                                                                            |
+
+Sequences and mappings
+^^^^^^^^^^^^^^^^^^^^^^
+
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
+| Name                         | Parameters                            | Return type |         Description                                 |
++=======================+=======================================+=============+=====================================================+
 | __len__              | self  int                             |             | len(self)                                           |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __getitem__          | self, x                               | object      | self[x]                                             |
@@ -280,12 +301,22 @@ declare different types, conversions will be performed as necessary.
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __contains__                 | self, x                               | int         | x in self                                           |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
-| Iterators                                                                                                                         |
+
+Iterators
+^^^^^^^^^
+
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
+| Name                         | Parameters                            | Return type |         Description                                 |
++=======================+=======================================+=============+=====================================================+
 | __next__             | self                                  | object      | Get next item (called next in Python)               |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
-| Buffer interface  (no Python equivalents - see note 1)                                                                            |
+
+Buffer interface  (no Python equivalents - see note 1)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
+| Name                         | Parameters                            | Return type |         Description                                 |
++=======================+=======================================+=============+=====================================================+
 | __getreadbuffer__    | self, int i, void `**p`               |             |                                                     | 
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __getwritebuffer__   | self, int i, void `**p`               |             |                                                     |
@@ -294,8 +325,13 @@ declare different types, conversions will be performed as necessary.
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __getcharbuffer__    | self, int i, char `**p`               |             |                                                     |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
-| Descriptor objects  (see note 2)                                                                                                  |
+
+Descriptor objects (see note 2)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
+| Name                         | Parameters                            | Return type |         Description                                 |
++=======================+=======================================+=============+=====================================================+
 | __get__              | self, instance, class                 | object      |         Get value of attribute                      |
 +-----------------------+---------------------------------------+-------------+-----------------------------------------------------+
 | __set__              | self, instance, value                 |             |     Set value of attribute                          |
index 615aab4e81b94f6c8db5fba2368b72320821cfa6..c86d99723e217695c60406c4425d4531229e734d 100644 (file)
@@ -156,6 +156,7 @@ class CythonLexer(RegexLexer):
         ],
     }
 
+    ##TODO: fix this, as shebang lines don't make sense for cython.
     def analyse_text(text):
         return shebang_matches(text, r'pythonw?(2\.\d)?')
 
index e026e9ebd69510c615e074cfa3dfaa5d95d81034..d80f201a13019d4bbc9de6c3d78d5dad8045883a 100644 (file)
Binary files a/sphinxext/cython_highlighting.pyc and b/sphinxext/cython_highlighting.pyc differ
index 4c0dea0f8b1090adde91b3328241530fb0816e11..9d8a8c1cadb325e4232a5295c3b8020ccc5f850d 100644 (file)
Binary files a/sphinxext/ipython_console_highlighting.pyc and b/sphinxext/ipython_console_highlighting.pyc differ