diff --git a/README.md b/README.md index ee97bd5..f7b6b48 100644 --- a/README.md +++ b/README.md @@ -3525,8 +3525,8 @@ import * **Script needs to be saved with a `'pyx'` extension.** ```python -cdef = -cdef [n_elements] = [, , ...] +cdef [= ] +cdef [n_elements] [= ] cdef ( ): ... ``` diff --git a/index.html b/index.html index 12fba52..e19d5f0 100644 --- a/index.html +++ b/index.html @@ -2867,8 +2867,8 @@ px.line(df, x='Date', y=Definitions:
  • All 'cdef' definitions are optional, but they contribute to the speed-up.
  • Script needs to be saved with a 'pyx' extension.
  • -
cdef <ctype> <var_name> = <obj>
-cdef <ctype>[n_elements] <var_name> = [<el_1>, <el_2>, ...]
+
cdef <ctype> <var_name> [= <obj>]
+cdef <ctype>[n_elements] <var_name> [= <collection>]
 cdef <ctype/void> <func_name>(<ctype> <arg_name>): ...
 
diff --git a/parse.js b/parse.js index 0107a32..f3bd889 100755 --- a/parse.js +++ b/parse.js @@ -320,8 +320,8 @@ const GROUPBY = const CYTHON_1 = - 'cdef <ctype> <var_name> = <obj>\n' + - 'cdef <ctype>[n_elements] <var_name> = [<el_1>, <el_2>, ...]\n' + + 'cdef <ctype> <var_name> [= <obj>]\n' + + 'cdef <ctype>[n_elements] <var_name> [= <collection>]\n' + 'cdef <ctype/void> <func_name>(<ctype> <arg_name>): ...\n'; const CYTHON_2 = @@ -851,7 +851,7 @@ function fixHighlights() { $(`code:contains(samples_f = (sin(i *)`).html(AUDIO_2); $(`code:contains(collections, dataclasses, enum, io, itertools)`).html(MARIO); $(`code:contains(>>> gb = df.groupby)`).html(GROUPBY); - $(`code:contains(cdef = )`).html(CYTHON_1); + $(`code:contains(cdef [= ])`).html(CYTHON_1); $(`code:contains(cdef class :)`).html(CYTHON_2); $(`code:contains(cdef enum : , , ...)`).html(CYTHON_3); $(`ul:contains(Only available in)`).html(INDEX);