原文: PyCoder’s Weekly - Issue #371 realpython

  • Python 中的指针: 有什么意义?
    • REAL PYTHON Get a clearer understanding of Python’s object model and learn why pointers don’t really exist in Python. You’ll also cover ways to simulate pointers in Python without the memory-management nightmare. (是也乎: Point 这个插图真心没 got 到技术点儿… )
  • Python 和并发: CSP 和协同程序
    • YING WANG Nice overview of “communicating sequential processes” (CSP), a concurrency model similar to the notion of actor models, and how it can be implemented in Python. (是也乎: 珢神很久没嗯哼点儿什么了… 等等, 嚓同音, 不是珢神… 简单说, 并行计算在 Py 中不是难事儿, 困难的只是在生产环境中稳定嗯哼起来? 反正作为学术问题, 这个方向还够养活几个博士的… )
  • CNNs,第2部分:训练卷积神经网络
    • VICTOR ZHOU A nice walkthrough of deriving backpropagation for CNNs and implementing it from scratch in Python.
  • 重写 Slack Python SDK
    • RODNEY URQUHART The lead maintainer of the Slack Python SDK gives a retrospective about refactoring the current SDK and migrating it from Python 2 to Python 3. (是也乎: 嗯哼? 应该喜大普奔嘛? Py2->py3 )
  • Python 的 Caduceus 综合症
    • VICKI BOYKIS “Which of the two should the ecosystem tackle as a priority? Should they clean up all backwards compatibility first? (that would be PEP 594, ‘removing dead batteries from the standard library’) Should they focus on moving everyone over to the new features?” (是也乎: Caduceus Py2/3 变成现实中纠缠态事务,难以决策 )
  • PyPI 现在支持双因素身份验证
    • ERNEST W. DURBIN III Protect your PyPI login with two-factor authentication using Time-based One-time Password (TOTP) app. (是也乎: 但是, 镜像也就越来越困难… )
  • Language Summit 闪电演讲(摘要)
    • A. JESSE JIRYU DAVIS
    • • Shared by Ricky White Summaries of the lightning talks presented at the Python Language Summit at PyCon 2019. (是也乎: 其实, 闪电演讲才是一个大会的灵魂. )
  • PSF Q2 2019 筹款活动
    • PYTHON.ORG Support the Python Software Foundation by donating in the quarterly donation drive. Your donations help fund Python conferences, workshops, user groups, community web services, and more.

讨论

Discussions

  • Python 3.8 性能新闻
    • RAYMOND HETTINGER “Today, code was checked in that substantially sped-up global lookups and builtin lookups. They are still slower than accessing locals and non-locals but only modestly so.”
  • 是否有人在生产中使用PyPy?
    • REDDIT (是也乎: 好问题…其实, 一直有, 只是公司都没成功… )

文章,教程和嗯哼

Articles, Tutorials and Talks

  • 算法作为对象
    • ANDY G
    • • Shared by Python Bytes “We usually think of an algorithm as a single function with inputs and outputs. [… ] This is fine until one actually attempts to implement it as a single function; all the little details add up until you’re left with a gigantic, monolithic function.”
  • 用 Python 嗯哼 HTTP 请求
    • REAL PYTHON video The “requests” library is the de facto standard for making HTTP requests in Python. It abstracts the complexities of making requests behind a beautiful, simple API so that you can focus on interacting with services and consuming data in your application. This course shows you how to work effectively with “requests”, from start to finish. (是也乎: “requests” 没毛病的模块, 问题是可能永远进入不了内建模块… )
  • OOP 在 Python 和 Java
    • REAL PYTHON Learn about the practical differences in Python vs Java for object-oriented programming. By the end, you’ll be able to apply your knowledge to Python, understand how to reinterpret your understanding of Java objects to Python, and use objects in a Pythonic way. (是也乎: OOP 等等, 为什么是印度MM ? )
  • 准确性:从分类到聚类评估
    • STANISLAS MORBIEU
    • • Shared by Stanislas Morbieu Accuracy is often used to measure the quality of a classification. It is also used for clustering. However, the scikit-learn accuracy_score function only provides a lower bound of accuracy for clustering. This blog post explains how accuracy should be computed for clustering.
  • Python函数解包(* args和** kwargs)
    • CARLOS BALDERAS
    • • Shared by Carlos Balderas 15 quick examples to get a new Python coder comfortable with *args and **kwargs as parameters.
  • 为业务安利 Python
    • CHRIS MOFFITT “Five to 10 years ago, it might have been quite an uphill battle to try to bring Python into your organization to solve your business problems. With the rise of Python’s popularity in the Data Science world, you will have a much smaller hill to climb.” (是也乎: 隔壁 Rubista 在反思 Ruby 还有希望嘛? Python 则依然在向商界推广… )
  • Dataclasses and Attrs: 何时以及为何
    • FLAVIO CURELLA Python 3.7 introduced dataclasses, which design is based on the attrs library. This article shows the way the author uses dataclasses and attrs, why they think you should use both, and why attrs is still very relevant.
  • 将数据验证用于鲁棒 API
    • ENZO CALAMIA How using schema-based data validation tools can help you write more robust web APIs. (是也乎: 鲁棒的接口… )
  • Python’s Datatable Package 概述
    • PARUL PANDEY Datatable is a Python library for efficient multi-threaded data processing, with the support for out-of-memory datasets. (是也乎: 专注嗯哼超过内存支持规范的大数据包 )
  • 面向 Python 开发人员的Git和GitHub简介s
    • REAL PYTHON video What is Git, what is GitHub, and what’s the difference? Learn the basics of Git and GitHub from the perspective of a Pythonista in this step-by-step course. (是也乎: GitHub.py 很用心, 只是, Pythoneer 有不用 github 的嘛? )
  • 在 Heroku 上部署 Django 生产系统
    • TESTDRIVEN.IO How to simplify the process of deploying, maintaining, and scaling a production-grade Django app on Heroku.

好物

Interesting Projects, Tools and Libraries, Projects & Code

📆🐍 活动/大会

Events

DAMA

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

  • 蟒营 Python 入门班
    • 已开班, 进入 ch08
    • 下期可能 7月1 PyScaffold ~ helps you setup a new Python project
  • What Can I Do With Python? – Real Python
    • FAQ (是也乎: Do With Py 总是永远有人问这个问题… 当然, 这个问题任何一个技术社区都有人在问… 其实, 本质上并不是对应技术是否有什么能力, 而是相反… )

Jobs

是也乎

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