wtfpython
rdm
Our great sponsors
wtfpython | rdm | |
---|---|---|
48 | 2 | |
34,944 | 105 | |
- | 0.0% | |
4.4 | 0.0 | |
about 2 months ago | over 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
rdm
-
Ask HN: How do you keep track of software requirements and test them?
Been working as a consultant and engineer on FDA regulated software for about 8 years now. I have seen strategies from startups to huge companies.
I have seen requirements captured in markdown files, spreadsheets, ticket management systems like Redmine, Pivotal, Jira, GitLab, Azure Devops, GitHub Issues, and home grown systems.
If I had to start a new medical device from scratch today, I would use Notion + https://github.com/innolitics/rdm to capture user needs, requirements, risks, and test cases. Let me know if there is interest and I can make some Notion templates public. I think the ability to easily edit relations without having to use IDs is nice. And the API makes it possible to dump it all to yaml, version control and generate documentation for e-signature when you need it. Add on top of that an easy place to author documentation, non-software engineer interoperability, discoverable SOPs, granular permissions, and I think you have a winning combination.
What are some alternatives?
deno - A modern runtime for JavaScript and TypeScript.
strictdoc - Software for technical documentation and requirements management.
wtfjs - 🤪 A list of funny and tricky JavaScript examples
pfFocus - Generate meaningful output from your pfSense configuration backup, like Markdown documentation.
setup.py - 📦 A Human's Ultimate Guide to setup.py.
macropy - Macros in Python: quasiquotes, case classes, LINQ and more!
awesome-python - An opinionated list of awesome Python frameworks, libraries, software and resources.
Pycco - Literate-style documentation generator.
Django - The Web framework for perfectionists with deadlines.
paperetl - 📄 ⚙️ ETL processes for medical and scientific papers
MkDocs - Project documentation with Markdown.
Think-Python-2E-My_solutions - My solutions to the exercises contained in the "Think Python 2nd Edition" book by Allen B. Downey.