用 Python 分析 Python 代码

原文: PyCoder's Weekly - Issue #434

pycoder

  • 200819 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 200819 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

Django 3.1 introduced support for asynchronous views, middleware, and tests. This tutorial shows you how to get started with async views.

In this tutorial, you’ll learn all about web scraping in Python. You’ll see how to parse data from websites and interact with HTML forms using tools such as Beautiful Soup and MechanicalSoup.

(是也乎:

Web

美汤 -> '呆汤'

都没说无头浏览器的... )

Delegation is often considered one of the three pillars of object-oriented programming. Learn how to use this powerful concept in Python.

Proposed by Quantsight Labs, and with initial sponsors including Intel, Microsoft, and Google Research, the consortium aims to tackle fragmentation across libraries by developing API standards for n-dimensional arrays and dataframes.

(是也乎:

Standards

Python 数据接口标准, 果然在 Google 发布前, 大家先抱团了.

)

Take a dip into static code analysis using abstract syntax trees and Python’s built-in ast modue.

(是也乎:

这非常 PyPy

ast

很少有语言能象 Python 这样内置语法解析器的, AST 的功能远远没有发挥出来呢.

)

Now supports Python 3.9!

(是也乎:

为什么俺见 IDE 就脑仁儿痛?

)

(是也乎:

嗯哼? 也学习 Django 分功能领域来分形升级了?

)

讨论

Discussions

Honestly, some of these ideas are good for any beginning Pythonista!

(是也乎:

太多了, 从身边具体问题开始.

当然, 多数图书都是以游戏为开始,其实, 这并不 COOL.

zoomquiet/ 1 point

专门去吐个糟

)

Maybe someone needs to start a Python reading club…

(是也乎:

即: 如何形成码感?

Raymond Hettinger - Beyond PEP 8 -- Best practices for beautiful intelligible code - PyCon 2015

以及: vinta/awesome-python: A curated list of awesome Python frameworks, libraries, software and resources

)

文章,教程和嗯哼

Articles, Tutorials and Talks

See how one Redditor taught themselves robotics by building a miniature version of a Boston Dynamic’s robot dog “Spot” using a Raspberry Pi, C++, and Python.

(是也乎:

Boston

Q 的...

)

In this video course, you’ll see common examples of invalid syntax in Python and learn how to resolve the issue. If you’ve ever received a SyntaxError when trying to run your Python code, then this is the guide for you!

(是也乎:

Syntax

初学时, 最难以忍受的错误...

)

Learn how to implement Prim’s algorithm for finding a minimum spanning tree of a network from scratch and then visualize the algorithm using the NetworkX and Matplotlib libraries.

(是也乎:

总之 Graphviz 永远伟大.

)

This article shows how to create and implement a row level security policy with Django middleware and Django signals, giving database administrators a way to limit the rows a user can access, adding an extra layer of data protection.

(是也乎:

行级安全...哗...

)

Bruno Oliveira is a core developer for pytest, the Python testing library. In this interview, we cover migrating a large codebase from C++ to Python, how to get started with pytest, and his love of Dark Souls.

(是也乎:

Community

何时能有中国社区访问?

嗯哼, 还有中国Py社区嘛?

)

With Man Group’s PartialTesting tool, you can speed up build-times and reduce compute requirements by running only the tests that matter and ignoring those that don’t!

Learn how to use Nix to create highly reproducible Python builds that are aware of native dependencies.

(是也乎:

叕一个尝试脱离 PyPi 的方案 -> Nixpkgs;

可惜无论从形式上还是兼容性上, 都不是有足够吸引力的样子.

)

好物

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

Python 实现 mac 驻留应用好案例.

urlify

作者使用的版本形式非常同意.

)

(是也乎:

放心, 多数对于我们并不存在...

)

(是也乎:

真正 Py 原生 SQL 解析模块.

)

(是也乎:

哈? 好象代码都是原子化的一样...

)

(是也乎:

嗯哼? poetry 有次级市场了? )

(是也乎:

对 pyproject.toml 的深度包装.

和 pipenv 类似, 都是对包依赖的自动化管理, 但是, 也都没涉及到运行时环境的备份/迁移/恢复/...

)

(是也乎:

嗯哼? 最小后效能呢? 人家上亿参数, 最小后....

)

📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

101camp11py 报名最后4天

报名

课程规划:

    报名截止 2020.08.23
    正式开课 2020.08.30
    课程结束 2020.10.11

详情 => 蟒营™ Python 入门班第11

PS:


好文笔,感叹号年度配额: 1/3

投稿/反馈邮箱:

askdama@googlegroups.com

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)

NN 4110

RPP


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...

任何问题

随时邮件提问可也:
askdama@googlegroups.com

-->