原文: PyCoder's Weekly - Issue #402html
最後的 Python 2.7 維護版本計劃2020四月發佈git
Python 2.7 is retired and became EOL on Jan 1, 2020. The last 2.7 release will be in April 2020.github
Ubuntu 20.04 LTS 明確移除其 Python 2 依賴web
「With Python 2 having reached end-of-life at the start of 2020, Ubuntu and Debian developers continue their work on removing Python 2 at least from the base OS. Work continues on transitioning packages to Python 3 or otherwise ultimately dropping unmaintained packages.」編程
(是也乎:
segmentfault
第一個重量級正式呼應.緩存
)數據結構
Learn how to use args and kwargs in Python to add more flexibility to your functions. You’ll also take a closer look at the single and double-asterisk unpacking operators, which you can use to unpack any iterable object in Python.框架
(是也乎:
這麼複雜的東西, 只能投降了...
)
「So for you developers of async libraries here is a new year’s resolution for you: give back pressure and flow control the importance they deserve in documentation and API.」
Who is Python being designed for? CPython core dev Nick Coghlan discusses Python’s and PyPI’s target audience and design philosophy. Recommended reading.
DjangoCon Europe 2020 will take place in Porto, Portugal from May 27–31, 2020.
(是也乎:
今年是 葡萄牙...
)
Discussions
ast.literal_eval() vs functools.lru_cache() vs pdb.pm() vs reprlib.recursive_repr() – Which one is your favorite?
(是也乎:
必不可缺又無人知曉的 Python 工具...
)
Articles, Tutorials and Talks
「Quite often, I see people being wrong on the internet about Python packaging. But the way in which they’re wrong is subtle, and often passes unnoticed. The issue with much of the discussion is in conflating multiple different things under the term ‘packaging’, and failing to be clear exactly which of them is being discussed or criticized.」
(是也乎:
Python 包的三合一聖訟精神
)
In this step-by-step tutorial, you’ll learn how to start exploring a dataset with Pandas and Python. You’ll learn how to access specific rows and columns to answer questions about your data. You’ll also see how to handle missing values and prepare to visualize your dataset in a Jupyter notebook.
(是也乎:
萌即正義..
)
Counting Queries: Django 中的基本性能測試
「Testing application performance is hard and time consuming, but there’s a type of test that is both easy to do and has a great impact in performance. In this blog post we will show how to unit test the number of queries to the database your application is making.」
NumPy supports different ways of generating arrays, and this tutorial is going to explore one way of do so, using the np.linspace() function. It returns evenly-spaced numbers and can generate arrays of any dimensionality.
Tips that make your testing experience more enjoyable and more efficient, like filtering warnings, testing stdout/stderr, and parametrization.
(是也乎:
pytest 終於坐穩 TDD.py 首選了..
)
This article is about building a computer vision model to automatically grade handwritten mathematical worksheets using Python.
「First rule of optimization is to not do it. But, if you really have to, then I hope these few tips help you with that.」
How PyDist achieves zero-downtime deploys without a typical load balancer and blue/green server infrastructure.
(是也乎:
所謂蘭綠機制的部署管理..
)
如何用 Pyramid 和 Cornice 編寫 Python Web API
Using Pyramid and Cornice to build and document scalable RESTful web services.
(是也乎:
很久沒見 Pyramid 相關文章了...又復活了?
)
(是也乎:
退休後, 老爹反而忙起來的樣子...
)
2019年 StackOverflow 上 20 個最受好評的 Python 問題
(是也乎:
俺來看看前10都是什麼
0: 爲毛 Python 無窮散列數字中有個 π? - [236/3] 1: 有沒有更優雅的表達方式(((x == a and y == b) 和 (x == b and y == a))? 2: 爲毛在 for 循環中能夠用列表索引做爲索引變量? -[92/6] 3: 爲毛 (inf + 0j)*1 等於 inf + nanj? - [93/4] 4: 爲毛帶 f字符串的 f'{{{74}}}' 與 f'{{74}}'相同? -[88/1] 5: 爲毛 b 爲列表時 b+=(4,) 能夠, 而 b = b + (4,) 不行? - [75/7] 6: 爲毛 Python 從末尾索引列表時是從 -1(而不是0)開始? -[79/7] 7: 爲何 TensorFlow 2 比 TensorFlow 1 慢得多? -[104/2] 8: Python 的隨機性 -[70/4] 9: 爲毛 Python容許序列使用超出範圍的切片索引? -[72/2] ...
都很毛...
)
(是也乎:
這個能夠有
)
Interesting Projects, Tools and Libraries, Projects & Code
cachew: 持久性緩存/序列化 Powered by Type Hints
(是也乎:
組合解決各類場景/平臺中視頻經常使用處理流水的框架...
所圖乃大哪...
)
sheetfu: 與 Google Sheets V4 API 交互的 Python 庫
(是也乎:
叕一個 docs.google 次生態做品, 固然, 對於咱們不存在的...
)
ElasticBatch: Easy Elasticsearch Inserts for Data Processing Workflows
switchenv: Python-Based 工具, 用於管理Bash環境
(是也乎:
將 Pyenv 的技巧, 單純抽象爲管理系統環境變量,
自動化批量切換不一樣運行場景時的一組環境變量..
)
(是也乎:
叕一個計時器, 不過,這個項目使用了 真蟒 插圖, 也不知道是否受權...
from codetiming import Timer
As a class:
t = Timer(name="class") t.start() # Do something t.stop()
As a context manager:
with Timer(name="context manager"): # Do something
As a decorator:
@Timer(name="decorator") def stuff(): # Do something
)
Events, MeetUp 真的是全球線下活動組織中心
⋅ pyCologne User Group Treffen
❤️ Happy Pythonic ;-(
大媽私人無責任播報
)
(( ̄▽ ̄)
:
第4期立刻結業:
200112 按時結束
年後第5期就來:
20.2.3 能夠上線 20.3.1 正式開課
)
(是也乎:
網紅小視頻也出現了...
最後3秒, Python 瘋狂反轉一切.
)
NN 3886
Powered by: Zoom.Quiet / 昧因科技®
本文由博客一文多發平臺 OpenWrite 發佈!