Issue 371

原文: PyCoder’s Weekly - Issue #371 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. (是也乎: 这个插图真心没 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 ...

2019-06-05 · 5 min · 2151 words · ZoomQuiet

Issue 370

原文: PyCoder’s Weekly - Issue #370 PEP 594: 从标准库中删除死电池 PYTHON.ORG “This PEP proposed a list of standard library modules to be removed from the standard library. The modules are mostly historic data formats (e.g. Commodore and SUN file formats), APIs and operating systems that have been superseded a long time ago (e.g. Mac OS 9), or modules that have security implications and better alternatives (e.g. password and login).” (是也乎: 死电池… ) 将数学结构转换为 Java,Python,Haskell 和 Racket 示例代码 MATT MIGHT Nice guide to translating the common discrete mathematical structures, such as sets, sequences, functions, disjoint unions, relations and syntax, into working code in Java, Python, Racket and Haskell. Python Logging: 漫步源代码 REAL PYTHON In this step-by-step tutorial, you’ll learn about how the Python logging package is designed from an OOP perspective. You’ll walk line by line down the package’s core module and become better equipped to know what your code is doing. (是也乎: 真蟒 ~ 看来是要上市了? 每周这么多好文章发布… ) 在生产中运用 Poetry MISHA BEHERSKY • Shared by Misha Behersky “In this article I want to share my experience of using the Poetry dependency manager in production environment.” (是也乎: Poetry 叕一个想替代 Pyenv/pipenv 的嗯哼 ) Keras: 深度学习提取大数据集特征 ADRIAN ROSEBROCK In this tutorial you will learn how to use Keras feature extraction on large image datasets with Deep Learning. We’ll also learn how to use incremental learning to train your image classifier on top of the extracted features. 在 Python 中从头实现卷积神经网络 VICTOR ZHOU A simple but detailed guide to what CNNs are, how they work, and how to build one from scratch in Python. (是也乎: 够硬核 ) 使用 GDB (GNU调试器) 探索Python EVAN BRODER “In order to demonstrate some of GDB’s flexibility, and show some of the steps involved in practical GDB work, we’ve put together a brief example of debugging Python with GDB.” (是也乎: 可能是复杂工程调试的最佳助推器 ) 1884年皇家天文学会告诉我们今天的 Python 开发者 SCOTT KILPATRICK Or: Why dealing with time zones is hard. (是也乎: 为什么处理时区很难… ) 为什么 Python 类语法这么不同 NED BATCHELDER Interesting language design discussion about Python’s class syntax and how it could be made more regular and beginner friendly. 讨论 Discussions ...

2019-05-31 · 4 min · 1709 words · ZoomQuiet

Issue 369

原文: PyCoder’s Weekly - Issue #369 和 Bokeh 用 Python 进行交互式数据可视化 REAL PYTHON video This course will get you up and running with the Bokeh library, using examples and a real-world dataset. You’ll learn how to visualize your data, customize and organize your visualizations, and add interactivity. (是也乎: 没说的…这真的是一种设计精良, 输出又实用的数据可视化模块 ) 使用 Nvidia Jetson Nano 和 Python 以150美元的价格构建基于硬件的人脸识别系统 ADAM GEITGEY “With the Nvidia Jetson Nano, you can build stand-alone hardware systems that run GPU-accelerated deep learning models on a tiny budget. It’s just like a Raspberry Pi, but a lot faster.” 接受PEP 581(使用CPython的GitHub问题) PYTHON.ORG CPython’s issue tracker will be migrated from Roundup to GitHub issues. (是也乎: 顺应民意… ) 虽然内建电池, 可丫们都漏汤了 PYFOUND.BLOGSPOT.COM “Amber Brown of the Twisted project shared her criticisms of the Python standard library [at PyCon 2019]. This proved to be the day’s most controversial talk; Guido van Rossum stormed from the room during Q & A.” Related discussion on Hacker News (是也乎: Twisted 的确有资格蔑视一切网络库. ) Python 中的 Unicode 和字符编码: 无痛指南 REAL PYTHON 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. (是也乎: 其实, 最简单的对策: 不写中文… ) 值得学习的 Python 内建函式 TREY HUNNER “Which built-ins should you know about? I estimate most Python developers will only ever need about 30 built-in functions, but which 30 depends on what you’re actually doing with Python.” 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 ...

2019-05-22 · 4 min · 1516 words · ZoomQuiet

Issue 368

原文: PyCoder’s Weekly - Issue #368 CPython 3.8.0a4 已可测试 PYTHON.ORG Among the new major new features and changes so far: Assignment expressions (PEP 572), Positional-only arguments (PEP 570), multiprocessing can now use shared memory to avoid pickling, typed_ast is back. 用 Python 播放和录制声音 REAL PYTHON In this tutorial, you’ll learn about libraries that can be used for playing and recording sound in Python, such as PyAudio and python-sounddevice. You’ll also see code snippets for playing and recording sound files and arrays, as well as for converting between different sound file formats. (是也乎: 总之有太多模块可以使用, 但是, 没有完美解决所有问题的… 所以, 要组合来嗯哼… 推荐外部专用软件来嗯哼, python 就进行管理就好. ) Dropbox 客户端如何用 Python ANVILVENTURES.COM “This blog post talks about reverse engineering the Dropbox client, breaking its obfuscation mechanisms, de-compiling it to Python code as well as modifying the client in order to use debug features which are normally hidden from view.” (是也乎: 终于有人站出来分析靠谱的 py 客户端技巧了… 虽然有麻烦, 但是, 都能嗯哼掉 ) Python GIL 是否已 Slain? ANTHONY SHAW A discussion of PEP554 (subinterpreters) and how it relates to the global interpreter lock (GIL) in CPython. (是也乎: 有关 PEP 的讨论越来越公开了… 毕竟, BDLF 退位了, 大家终于能愉快的吵架了… ) PEP 554 将终结 GIL 嘛? PYTHON BYTES podcast Another discussion of subinterpreters (PEP 554) and how they will allow true in-process parallelism. 可能不会在 Python 3 中使用的, 但, 应该 VINKO KODŽOMAN (是也乎: 叕一则鼓动使用 py3 新特性的文章… 问题是, 用 py2 的经验来写 py3 并无太大不同哪… ) 讨论 Discussions ...

2019-05-15 · 4 min · 1633 words · ZoomQuiet