机器狗已在公开发售,支持用 Python 对其编程… 原文: PyCoder’s Weekly - Issue #427 pycoder

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

  • PEP 622: 结构模式匹配
    • PYTHON.ORG This PEP proposes adding pattern matching—a sort of enhanced switch statement—to the Python language. Read the PEP at the link above and follow the discussion on Reddit. (是也乎:
def is_tuple(node: Node) -> bool:
    match node:
        case Node(children=[LParen(), RParen()]):
            return True
        case Node(children=[Leaf(value="("), Node(), Leaf(value=")")]):
            return True
        case _:
            return False

这非常 Elixir 了. )

讨论

Discussions

文章,教程和嗯哼

Articles, Tutorials and Talks

  • The Python heapq 模块: 使用 Heaps 和优先级队列
    • REAL PYTHON Explore the heap and priority queue data structures. You’ll learn what kinds of problems heaps and priority queues are useful for and how you can use the Python heapq module to solve them. (是也乎: heapq )
  • 在 Python 中仅一行就可以加速函数调用
    • HACKEREGG.GITHUB.IO The lru_cache decorator allows you to take advantage of memoization to optimize function calls.
  • Unicode 在 Python: 使用字符编码
    • REAL PYTHON In this course, you’ll get a Python-centric introduction to character encodings and Unicode. Handling character encodings and numbering systems can at times seem painful and complicated, but this guide is here to help with easy-to-follow Python examples. (是也乎: Unicode 用无线电载波来形容 Unicode 流程, 好赞. )
  • PEP 620: 从 C API 隐藏实现详细信息
    • PYTHON.ORG Author Victor Stinner argues that Python’s C API is too close to the CPython implementation, which limits available optimizations and hinders the addition of new features. PEP 622 proposes hiding implementation details from the C API.
  • 正则表达式/Pandas中的视图与副本等…
    • REAL PYTHON
    • podcast Have you wanted to learn Regular Expressions in Python, but don’t know where to start? Have you stumbled into the dreaded pink SettingWithCopyWarning in Pandas? Then check out this episode of the Real Python Podcast. (是也乎: podcast )
  • 测试发出 HTTP 请求的 Python 代码
    • ROMAN TOMJAK The Dependency Inversion Principle helps you design code that is more extensible and easier to test. You can use it to test code that makes HTTP requests without using mocks. (是也乎: 随着微服务的扩张, RPC 盛大回归, 基于 HTTP 的请求越来越少的了… )
  • Red Hat Enterprise Linux 8.2 带来更快的 Python 3.8 运行速度
    • TOMAS OROSAVA Red Hat explains how they compiled CPython with GCC’s -fno-semantic-interposition flag to get run time speed improvements up to 30% faster than normal.
  • 可变默认值: 可变默认参数的逆向视图
    • A. COADY
    • opinion Should you use mutable objects for default function arguments? Conventional wisdom says no, but has the risk been overstated?
  • Street Lanes Finder: 检测无人驾驶汽车的街道车道[2019]
    • GREG SURMA Learn how to use OpenCV to detect street lanes in an image of a road.

好物

Interesting Projects, Tools and Libraries, Projects & Code

📆🐍 活动/大会

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

  • ⋅ FlaskCon (Online)
    • July 4 to July 6, 2020
  • ⋅ SciPy 2020 (Online)
    • July 6 to July 13, 2020 (是也乎: 中国也已经接到有关通知, 允许线下集会申报了… 而且今年程序员节(10.24)可能有超级大会. )

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报) 101camp10py 开始报名 报名

课程规划:
    报名截止 2020.7.20
    正式开课 2020.7.26
    课程结束 2020.9.06

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

提醒: 首周报名再优惠 420 元.

PS


NN 4061 好文笔,感叹号年度配额: 1/3 投稿/反馈邮箱: [email protected] (邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越…)


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

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)
as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)

RPP