You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1013,10 +1013,10 @@
1013
1013
<li><strong>Function field() is needed because <codeclass="python hljs"><spanclass="hljs-string">'<attr_name>: list = []'</span></code> would make a list that is shared among all instances.</strong></li>
1014
1014
<li><strong>Default_factory can be any <ahref="#callable">callable</a>.</strong></li>
<div><h3id="slots">Slots</h3><p><strong>Mechanism that restricts objects to attributes listed in 'slots' and significantly reduces their memory footprint.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-class"><spanclass="hljs-keyword">class</span><spanclass="hljs-title">MyClassWithSlots</span>:</span>
1022
1022
__slots__ = [<spanclass="hljs-string">'a'</span>]
@@ -1905,7 +1905,7 @@
1905
1905
param_kinds = [a.kind <spanclass="hljs-keyword">for</span> a <spanclass="hljs-keyword">in</span> <sig>.parameters.values()]
1906
1906
</code></pre></div>
1907
1907
1908
-
<div><h2id="metaprograming"><ahref="#metaprograming" name="metaprograming">#</a>Metaprograming</h2><p><strong>Code that generates code.</strong></p><div><h3id="type-1">Type</h3><p><strong>Type is the root class. If only passed an object it returns its type (class). Otherwise it creates a new class.</strong></p><pre><codeclass="python language-python hljs"><codeclass="python language-python hljs"><class> = type(<spanclass="hljs-string">'<class_name>'</span>, <parents_tuple>, <attributes_dict>)</code></code></pre></div></div>
1908
+
<div><h2id="metaprograming"><ahref="#metaprograming" name="metaprograming">#</a>Metaprograming</h2><p><strong>Code that generates code.</strong></p><div><h3id="type-1">Type</h3><p><strong>Type is the root class. If only passed an object it returns its type (class). Otherwise it creates a new class.</strong></p><pre><codeclass="python language-python hljs"><class> = type(<spanclass="hljs-string">'<class_name>'</span>, <parents_tuple>, <attributes_dict>)</code></pre></div></div>
$ pyinstaller script.py <spanclass="hljs-comment"># Compiles into './dist/script' directory.</span>
2949
2949
$ pyinstaller script.py --onefile <spanclass="hljs-comment"># Compiles into './dist/script' console app.</span>
2950
2950
$ pyinstaller script.py --windowed <spanclass="hljs-comment"># Compiles into './dist/script' windowed app.</span>
2951
2951
$ pyinstaller script.py --add-data '<path>:.' <spanclass="hljs-comment"># Adds file to the root of the executable.</span>
2952
-
</code></code></pre></div>
2952
+
</code></pre></div>
2953
2953
2954
2954
<ul>
2955
2955
<li><strong>File paths need to be updated to <codeclass="python hljs"><spanclass="hljs-string">'os.path.join(sys._MEIPASS, <path>)'</span></code>.</strong></li>
<li><strong>Only available in <ahref="https://transactions.sendowl.com/products/78175486/4422834F/view">PDF</a>.</strong></li>
2986
+
<div><h2id="index"><ahref="#index" name="index">#</a>Index</h2><ul><li><strong>Only available in <ahref="https://transactions.sendowl.com/products/78175486/4422834F/view">PDF</a>.</strong></li>
2988
2987
<li><strong>Ctrl+F / ⌘F is usually sufficient.</strong></li>
2989
2988
<li><strong>Searching <codeclass="python hljs"><spanclass="hljs-string">'#<title>'</span></code> will limit the search to the titles.</strong></li>
'$ pyinstaller script.py --add-data \'<path>:.\' <span class="hljs-comment"># Adds file to the root of the executable.</span>\n'+
75
-
'</code>'
71
+
'$ pyinstaller script.py --add-data \'<path>:.\' <span class="hljs-comment"># Adds file to the root of the executable.</span>\n';
72
+
73
+
constINDEX=
74
+
'<li><strong>Only available in <a href="https://transactions.sendowl.com/products/78175486/4422834F/view">PDF</a>.</strong></li>\n'+
75
+
'<li><strong>Ctrl+F / ⌘F is usually sufficient.</strong></li>\n'+
76
+
'<li><strong>Searching <code class="python hljs"><span class="hljs-string">\'#<title>\'</span></code> will limit the search to the titles.</strong></li>\n';
0 commit comments