Difference between revisions of "Python"

From jWiki
Jump to navigationJump to search
 
(6 intermediate revisions by the same user not shown)
Line 36: Line 36:
== Explanations ==
== Explanations ==


* [https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html Why you shouldn't invoke setup.py directly]
* [https://chriswarrick.com/blog/2018/09/04/python-virtual-environments/ Python Virtual Environments in Five Minutes]
* [https://chriswarrick.com/blog/2018/09/04/python-virtual-environments/ Python Virtual Environments in Five Minutes]
* [https://nedbatchelder.com/text/names1.html Python Names and Values] - a discussion of how name resolution works in Python (e.g. why Python doesn't have "variables")
* [https://nedbatchelder.com/text/names1.html Python Names and Values] - a discussion of how name resolution works in Python (e.g. why Python doesn't have "variables")
Line 42: Line 43:
* [https://web.archive.org/web/20190117151243/https://effbot.org/zone/call-by-object.htm Python's calling model is "Call By Object"] <!-- (mirror: https://jamesgerity.com/backup/call-by-object.htm) -->
* [https://web.archive.org/web/20190117151243/https://effbot.org/zone/call-by-object.htm Python's calling model is "Call By Object"] <!-- (mirror: https://jamesgerity.com/backup/call-by-object.htm) -->
* [http://simeonfranklin.com/blog/2012/jul/1/python-decorators-in-12-steps/ Understanding Python Decorators in 12 Easy Steps!]
* [http://simeonfranklin.com/blog/2012/jul/1/python-decorators-in-12-steps/ Understanding Python Decorators in 12 Easy Steps!]
* [https://realpython.com/python-memory-management/ Memory Management in Python] - an overview of memory management in CPython
* [https://lwn.net/Articles/725508/ Memory use in CPython and MicroPython] - a comparison of memory management in CPython and MicroPython, based on [https://www.youtube.com/watch?v=d7qEzpnkWaY Kavya Joshi's PyCon 2017 talk]


== Interesting libraries ==
== Interesting libraries ==
Line 59: Line 62:
== Misc. ==
== Misc. ==


* [https://sinoroc.gitlab.io/kb/python/packaging_tools_comparisons.html Packaging tools comparisons] (note: slightly out of date in Jan 2024, but still a nice set of tables)
* [https://mayeut.github.io/manylinux-timeline/ `manylinux` timeline] - visualizations of supported manylinux standards/glibc versions in PyPI packages over time
* [https://blog.glyph.im/2023/08/get-your-mac-python-from-python-dot-org.html "Get Your Mac Python From Python.org"] - An excellent summary of the various ways to get a Python installation. Written with MacOS in mind, but much of what it says generalizes to other platforms.
* [https://github.com/nedbat/pkgsample Ned Batchelder's sample package]
* [https://rahul.gopinath.org/post/2019/12/08/python-controlflow/ The Python Control Flow Graph] - Article showing how to build a tool to visualize the CFG of a Python program
* [https://rahul.gopinath.org/post/2019/12/08/python-controlflow/ The Python Control Flow Graph] - Article showing how to build a tool to visualize the CFG of a Python program
* [https://discuss.python.org/t/adopting-recommending-a-toml-parser/4068/67 Mailing list discussion of adding a TOML parser to the standard library] - tl;dr it's still a mess, `toml` isn't maintained enough, `tomlkit` does too much. `tomli` seems to be the leading favorite.
* [https://discuss.python.org/t/adopting-recommending-a-toml-parser/4068/67 Mailing list discussion of adding a TOML parser to the standard library] - tl;dr it's still a mess, `toml` isn't maintained enough, `tomlkit` does too much. `tomli` seems to be the leading favorite.
Line 70: Line 77:
* [https://automatetheboringstuff.com/ Automate the Boring Stuff with Python]
* [https://automatetheboringstuff.com/ Automate the Boring Stuff with Python]
* [http://lucumr.pocoo.org/2015/11/18/pythons-hidden-re-gems/ Python's Hidden Regular Expression Gems] (particularly nice because of the `Scanner` class therein)
* [http://lucumr.pocoo.org/2015/11/18/pythons-hidden-re-gems/ Python's Hidden Regular Expression Gems] (particularly nice because of the `Scanner` class therein)
* [https://betterprogramming.pub/animating-regular-expressions-with-python-and-graphviz-e0df447b827a Animating Regular Expressions With Python and Graphviz]
* [https://www.heurekadevs.com/a-brief-look-at-cpython-string A Brief Look at Cpython String]

Latest revision as of 00:40, 12 January 2024


🐍🐍🐍

Official documentation

Python Enhancement Proposals (PEPs)

Here in no particular order are some PEPs I find to be interesting reading

Talks

Explanations

Interesting libraries

SciPy stack

Misc.