原文: PyCoder's Weekly - Issue #371

realpython


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 到技术点儿...

)

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 中不是难事儿, 困难的只是在生产环境中稳定嗯哼起来?

反正作为学术问题, 这个方向还够养活几个博士的...

)

A nice walkthrough of deriving backpropagation for CNNs and implementing it from scratch in Python.

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

)

"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 变成现实中纠缠态事务,难以决策

)

Protect your PyPI login with two-factor authentication using Time-based One-time Password (TOTP) app.

(是也乎:

但是, 镜像也就越来越困难...

)

Summaries of the lightning talks presented at the Python Language Summit at PyCon 2019.

(是也乎:

其实, 闪电演讲才是一个大会的灵魂.

)

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

"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."

(是也乎:

好问题...其实, 一直有, 只是公司都没成功...

)

文章,教程和嗯哼

Articles, Tutorials and Talks

"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."

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"

没毛病的模块, 问题是可能永远进入不了内建模块...

)

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 ? )

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.

15 quick examples to get a new Python coder comfortable with args and *kwargs as parameters.

"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 则依然在向商界推广...

)

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.

How using schema-based data validation tools can help you write more robust web APIs.

(是也乎:

鲁棒的接口...

)

Datatable is a Python library for efficient multi-threaded data processing, with the support for out-of-memory datasets.

(是也乎:

专注嗯哼超过内存支持规范的大数据包

)

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 的嘛?

)

How to simplify the process of deploying, maintaining, and scaling a production-grade Django app on Heroku.

好物

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

PugSQL

是 clj HugSQL 的 Python 再制;

用自然的 Python 代码, 生成标准的 SQL 语句, 来执行 DB 嗯哼...

)

(是也乎:

rtv

还以为是 redis 的可视化 CLI 工具... 结果...

)

(是也乎:

时序处理越来越重要了...对应生态也在自然高速成长中

)

(是也乎:

好东西, 毕竟, 配置 Jupyter 嗯哼并行计算,还是比较麻烦...

parsl

所以, 直接在 Jupyter 之上加强了...

)

(是也乎:

其实, Py2/3 最大的冲突,不在语法, 而在生态体系哪...

很多优秀模块根本就没迁移/兼容到 py3;

所以, 这种混合新老代码, 想在一起自动和谐运行, 实在是对运行时环境的极大嗯哼

)

(是也乎:

叕一个 TF 周边...只是 Pythonic 的话, 不是应该多嗯哼 PyTorch? )

(是也乎:

sheep

叕一只微框架...

完全 bottle 样, 只是用了 py 3 的糖:

import asyncio
from blacksheep.client import ClientSession


async def client_example(loop):
    async with ClientSession() as client:
        response = await client.get('https://docs.python.org/3/')

        assert response is not None
        text = await response.text()
        print(text)


loop = asyncio.get_event_loop()
loop.run_until_complete(client_example(loop))

)

(是也乎:

真蟒 的各种文章/教程, 对应的代码.

)

📆🐍 活动/大会

Events

DAMA

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

PyScaffold

~ helps you setup a new Python project

(是也乎:

Do With Py

总是永远有人问这个问题... 当然, 这个问题任何一个技术社区都有人在问...

其实, 本质上并不是对应技术是否有什么能力, 而是相反...

)

Jobs:

...

是也乎

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

Comments


大妈的多重宇宙 - YouTube

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

任何问题

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

-->