OcttKB/Wiki-OcttKB/tiddlers/Normal/_Python.tid

31 lines
1.7 KiB
Plaintext

created: 20221110120605389
creator: Octt
icon: 🐍
modified: 20230905212727053
modifier: Octt
page-cover: https://source.unsplash.com/random/?Python
tags: Development $:/i18n:en
title: Python
[[Python|https://www.python.org]] is a high-level, general-purpose, dynamically-typed, and garbage-collected programming language, with an extensive standard library and mandatory-indentation style.
<<^wikipediaframe Python>>
I hate that, while tab-indentation is practically supported by the interpreter, it's against the standard, and linters/editors hate you if you use tabs instead of spaces. `micro` just won't let you persist the option to keep tabs enabled instead of spaces across sessions...
---
* [[PocketPy|https://pocketpy.dev/]] - //C++17 header-only Python interpreter for game engines.// - <<[ "[[Git|https://github.com/blueloveTH/pocketpy]]">>
* <<httpL Python.helpful.codes>>
!! How to and troubleshooting
* [[Hex string to int|https://www.tutorialspoint.com/How-to-convert-hex-string-into-int-in-Python]] --- `int('6f637474', 16)`, `int('0x6f637474', 10)`
* [[How to copy files in Python?|https://stackoverflow.com/questions/123198/how-to-copy-files]] (with shutil)
!!! ''HTML things''
* [["html" std library|https://docs.python.org/3/library/html.html]], [[Beautiful Soup|https://www.crummy.com/software/BeautifulSoup/]]
* Escaping HTML: [[html.escape() in Python|https://www.educative.io/answers/what-is-htmlescape-in-python]], [[easiest way to escape HTML in Python|https://stackoverflow.com/questions/1061697/whats-the-easiest-way-to-escape-html-in-python]]
* Unescaping HTML: [[Decode HTML entities in Python string|https://stackoverflow.com/questions/2087370/decode-html-entities-in-python-string]]