541-540¶
Issue #541 Writing Code Completers, String Methods, Dragon Fractals, and More Sept. 6, 2022¶
Cite
Do You Still Buy/Read Technical Books?
HACKER NEWS
相比于谷歌和在线教程,书籍可以提供更加连贯的知识和更加深入的知识。尽管相比于谷歌,书籍中的内容可能会过期, 尤其是互联网行业,不过解决问题的思路和方法还是很有借鉴意义
Cite
Some Ways to Get Better at Debugging
A short summary of a couple of academic papers on how to improve your debugging skills, broken down into: learn the codebase, learn the system, learn your tools, learn strategies, and gain experience.
JULIA EVANS
可以说毫无用处,还不如给个github的工具链接
Cite
python-codext: Encode/Decode Anything
GITHUB.COM/DHONDTA
支持了超级多的编码,可能要对比的时候用比较舒服
Issue #542 List Comprehensions, CodeWhisperer, DoS Exposure, and More Sept. 13, 2022¶
Cite
docquery: Extract Information From Documents
GITHUB.COM/IMPIRA
好像NLP都整上去了
Issue #543 Build an Alexa, SQLite Recipes, Customizing Lists, and More Sept. 20, 2022¶
Cite
Lazy Imports for Python
A short article discussing PEP 690 which proposes support for lazy imports in Python, followed by an in-depth discussion by the LWN community.
LWN.NET
惰性导入包,pep是 https://peps.python.org/pep-0690/ 出发点是非常好的,非常棒的pep,就是看怎么实现吧
Cite
What’s the Best Source Code You’ve Read?
HACKER NEWS
围观
Cite
Why You Should Use Data Classes in Python
Know what a Data Class is? Do you know how to use one? Know the differences from regular classes? This article answers these questions and more.
GIULIANO PERTILE • Shared by Giuliano Pertile
用之前觉得没啥用,用了之后觉得真香
Issue #544 Python as Mechanical Engineer, Heroku Alternatives, Django on Kubernetes, and More Sept. 27, 2022¶
Cite
Python 3.12 Goals: Faster-CPython Ideas Wiki
A summary of the goals for the Faster CPython initiative within the Python 3.12 release. Includes trace optimizations, shrinking object sizes, improving memory management overhead, and more. See also the associated Workflow for 3.12 cycle checklist.
GITHUB.COM/FASTER-CPYTHON
https://github.com/faster-cpython/ideas 加速加速加速
Cite
Meta-Programming in Python
“Just like metadata is data about data, meta-programming is writing programs that manipulate programs.” Learn about the structures used to do meta-programming in Python and common use cases.
IBM.COM
主要讲了MetaClass
Issue #545 Django and WebSockets, QR Codes, Ninja, and More Oct. 4, 2022¶
Cite
PEP 698: Override Decorator for Static Typing
This Python Enhancement Proposal describes the use of a new decorator, @override, which would be used as a type-hint for methods in a sub-class that override a parent’s method. This type hint would introduce a level of safety if the parent method is refactored without corresponding changes to the child method.
PYTHON.ORG
好东西,我现在就被mypy这里困扰,这个功能就应该跟type hint一起出来才好。看能不能被accept了,不过估计用上怕是要到python3.12了
Cite
isort: Sort Your Imports
GITHUB.COM/PYCQA
功能就是把py文件里的import按照pep要求的顺序写。 本来觉得没啥用,因为IDE里一般都自带了这个功能。但是了看了项目的README,说让去给历史巨大的代码仓库的import排序,这个功能就很有用了
Issue #546 Python Memory Profiling, Dangerous Assert, Semaphores, and More Oct. 11, 2022¶
Cite
The Dangers of assert in Python
Did you know Python’s assert statement can lead to runtime security vulnerabilities? While there are safe ways to use assert, there are lots of unsafe ways to use it that can lead to a variety of convoluted problems.
DHRUV PATEL • Shared by Randall Degges
通过设置__debug__可以控制代码中的assert要不要执行
Cite
Discover SQLAlchemy: A Beginner Tutorial With Examples
In this SQLAlchemy tutorial, you will learn to access and run SQL queries on all types of relational databases using Python objects.
ABID ALI AWAN
SQLAlchemy和Flask-SQLAlchemy相比用起来还是有点僵硬的
Issue #547 Chatbots, Testing in ML, Python Dev Survey, and More Oct. 18, 2022¶
Cite
pyscript Now Has a REPL
PYSCRIPT.NET
交换式解释器
Cite
panel: A High-Level App and Dashboarding Solution for Python
GITHUB.COM/HOLOVIZ
整挺好,花里胡哨的画图工具小组件
Issue #548 Python 3.11 Released, Dry Run Mode in Django, Defensive Coding, and More Oct. 25, 2022¶
Cite
Python 3.11: Cool New Features for You to Try
Python 3.11 is out! In this article, you’ll explore what Python 3.11 brings to the table. You’ll learn how Python 3.11 is the fastest and most user-friendly version of CPython yet, and learn about improvements to the typing system and to the asynchronous features of Python.
REAL PYTHON
更好的错误信息显示还是很棒的
Issue #549 First Match in a List, Memes With Pillow, When to Upgrade to 3.11, and More Nov. 1, 2022¶
Cite
inline-sql: Inline SQL in Any Python Program
GITHUB.COM/EKZHANG
这个inline感觉意义不大,徒增学习成本,还不如用ORM,框架还能帮忙优化一下啥的
Issue #550 Python 3.11's Speedup, Scopes, Google APIs, and More Nov. 8, 2022¶
Cite
Web Automation: Don’t Use Selenium, Use Playwright
Playwright is an open source alternative to Selenium created by Microsoft. It includes click-and-record functionality that directly generates a Python script. Read on for why Shantnu recommends it.
SHANTNU TIWARI
- 微软出品,质量和更新有保障
- 不用像Selenium一样编写复杂的脚本,Playwright可以直接录制你在浏览器上的操作,然后生成对应的代码,极大的加快了开发速度