diff --git a/README.md b/README.md index f7b6b48..db4e9d8 100644 --- a/README.md +++ b/README.md @@ -3525,15 +3525,15 @@ import * **Script needs to be saved with a `'pyx'` extension.** ```python -cdef [= ] -cdef [n_elements] [= ] -cdef ( ): ... +cdef [= ] +cdef [n_elements] [= ] +cdef ( ): ... ``` ```python cdef class : - cdef public - def __init__(self, ): + cdef public + def __init__(self, ): self. = ``` diff --git a/index.html b/index.html index e19d5f0..b22faa7 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@
- +
@@ -2867,15 +2867,15 @@ 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> [= <collection>]
-cdef <ctype/void> <func_name>(<ctype> <arg_name>): ...
+
cdef <ctype/type> <var_name> [= <obj>]
+cdef <ctype>[n_elements] <var_name> [= <coll_of_nums>]
+cdef <ctype/type/void> <func_name>(<ctype/type> <arg_name>): ...
 
cdef class <class_name>:
-    cdef public <ctype> <attr_name>
-    def __init__(self, <ctype> <arg_name>):
+    cdef public <ctype/type> <attr_name>
+    def __init__(self, <ctype/type> <arg_name>):
         self.<attr_name> = <arg_name>
 

Virtual Environments

System for installing libraries directly into project's directory.

$ python3 -m venv NAME      # Creates virtual environment in current directory.
@@ -2924,7 +2924,7 @@ $ deactivate                # Deactivates the active
  
 
   
- +
diff --git a/parse.js b/parse.js index f3bd889..fa5f100 100755 --- a/parse.js +++ b/parse.js @@ -320,14 +320,14 @@ const GROUPBY = const CYTHON_1 = - 'cdef <ctype> <var_name> [= <obj>]\n' + - 'cdef <ctype>[n_elements] <var_name> [= <collection>]\n' + - 'cdef <ctype/void> <func_name>(<ctype> <arg_name>): ...\n'; + 'cdef <ctype/type> <var_name> [= <obj>]\n' + + 'cdef <ctype>[n_elements] <var_name> [= <coll_of_nums>]\n' + + 'cdef <ctype/type/void> <func_name>(<ctype/type> <arg_name>): ...\n'; const CYTHON_2 = 'cdef class <class_name>:\n' + - ' cdef public <ctype> <attr_name>\n' + - ' def __init__(self, <ctype> <arg_name>):\n' + + ' cdef public <ctype/type> <attr_name>\n' + + ' def __init__(self, <ctype/type> <arg_name>):\n' + ' self.<attr_name> = <arg_name>\n'; const CYTHON_3 = @@ -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);