wtfpython
setup.py
Our great sponsors
wtfpython | setup.py | |
---|---|---|
48 | 5 | |
34,944 | 5,065 | |
- | - | |
4.4 | 0.0 | |
about 2 months ago | about 1 year ago | |
Python | Python | |
Do What The F*ck You Want To Public License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wtfpython
-
Wat
https://github.com/satwikkansal/wtfpython
"Mutating the immutable" is my personal favourite - the second line of code fails with an exception despite having already succeeded:
>>> t = ([1, 2], 5, 6)
-
Ask HN: What are the best tutorial sites for Python?
All these are neither recent (they are updated though) nor AI related. Here you go :
If you are new to dev, I like "think python"
If you are already into programming, I personally find sifting through organized small code snippets helpful for learning a new language :
https://github.com/jackzhenguo/python-small-examples
https://github.com/satwikkansal/wtfpython/blob/master/README...
https://www.30secondsofcode.org/python/p/1
Finally, "The Hitchhiker’s Guide to Python" is good for everything configuration, and usage.
- abmagick – abuse ImageMagick to create arbitrary files
-
WTFPython: Exploring and understanding Python through surprising snippets
Mutable default arguments is the one I see most likely to come up regularly, it's gotten us a few times: https://github.com/satwikkansal/wtfpython#-beware-of-default...
-
Understanding all of Python, through its builtins
In a similar vein you may like "WTF Python: Exploring and understanding Python through surprising snippets":
https://github.com/satwikkansal/wtfpython
HN thread: https://news.ycombinator.com/item?id=26097732 (163 comments)
PS: found with a site I'm building: https://discussions.xojoc.pw/?q=Understanding+Python+through...
-
3 > 2 > 1 == True in Python But 3 >2 >1 == false in JavaScript.
https://github.com/satwikkansal/wtfpython as well
-
Python for Lisp Programmers (2000)
> But most "wtfpython" things don't actually affect people using the language
Plenty do though. I've passed that page onto co-workers a lot, back when the list was smaller, and almost every time they've found something on the page that explains a bit of weirdness with Python that they'd just dismissed as buggy behavior and avoided touching.
The ones I remember them mentioning:
https://github.com/satwikkansal/wtfpython#-mutating-the-immu...
https://github.com/satwikkansal/wtfpython#-beware-of-default...
And I multiple times I've had to explain the difference between references / shallow copy / deep copy to bootcampers, which falls under https://github.com/satwikkansal/wtfpython#-a-tic-tac-toe-whe...
Python had their smearing campaign claiming TIOOWTDI against Perl's TIMTOWTDI, and dubious claim's of sigils (`@$`) hurt readability. But once Python had the ecosystem going, it brought back `@`, `{}`, numerous `_`, fanciful `:=`. And, of course, there always is more than one way to do it in Python.
Python's "easy to use" is just a lie, https://github.com/satwikkansal/wtfpython
The common lisp CFFI module is nothing short of Python's.
But, I know, people hate to put their `(` in front of their function names, and people hate to omit `,` between there function arguments.
-
Python strings are immutable, but only sometimes
For interesting behaviour see https://github.com/satwikkansal/wtfpython
setup.py
-
I am frustrated with packaging python, please educate me.
Here is a wonderful setup.py template I like to use: https://github.com/navdeep-G/setup.py. But to be fair, I have also switched to poetry in the last year.
-
What the Fu-k Python?
* Popular libraries for various use cases (i.e. Django/Flask for web applications)
setup.py (for humans) - https://github.com/navdeep-G/setup.py
What are some alternatives?
deno - A modern runtime for JavaScript and TypeScript.
versioningit - Versioning It with your Version In Git
wtfjs - 🤪 A list of funny and tricky JavaScript examples
pfFocus - Generate meaningful output from your pfSense configuration backup, like Markdown documentation.
macropy - Macros in Python: quasiquotes, case classes, LINQ and more!
pex - A tool for generating .pex (Python EXecutable) files, lock files and venvs.
awesome-python - An opinionated list of awesome Python frameworks, libraries, software and resources.
pip-tools - A set of tools to keep your pinned Python dependencies fresh.
Pycco - Literate-style documentation generator.
Django - The Web framework for perfectionists with deadlines.
rdm - Our regulatory documentation manager. Streamlines 62304, 14971, and 510(k) documentation for software projects.
Think-Python-2E-My_solutions - My solutions to the exercises contained in the "Think Python 2nd Edition" book by Allen B. Downey.