Issue 431

5个有趣的 Python 模块 原文: PyCoder’s Weekly - Issue #431 200729 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200729 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python Packages: 五个真爱 REAL PYTHON In this tutorial, several Real Python authors share Python packages we like to use as alternatives to modules in the standard library. You’ll get to know a number of useful packages, including pudb, requests, parse, dateutil, and typer. (是也乎: typer 是 FastAPI 的 CLI 包装,太帅了. 而且可以无缝使用 Click 的所有嗯哼. ) 初学者抽象指南 JESSE DUFFIELD To abstract or not to abstract. Is that the question? (是也乎: 走神?抽象? 又是 OOP 的伪装. ) XSS 开发在 Django 应用 ANTHONY SHAW Django does a lot to protect applications from cross-site scripting (XSS) attacks, but it isn’t perfect. Learn about 7 ways that Django is still vulnerable and how to protect Django applications from XSS attacks. Sans-I/O: 当 Rubber 遇到困难时 AYMERIC AUGUSTIN • Shared by Florimond Manca The creator of the websockets library shares pain points encountered and lessons learned while porting websockets to a Sans-I/O design. 用 Python 激发欢乐 MAXWELL FORBES After a fling with TypeScript, one Python programmer shares some thoughts on keeping the flame alive with Python. (是也乎: 一位 TypeScript 程序猿的 Pythonic 向往. ) Python 3.8.5 作为安全修补发布 PYTHON.ORG Python 3.9.0b5, the last beta before 3.9.0, is also available. Abigail Dogbe 荣获PSF社区 2020一季度 服务奖 CHARLES FREEBORN One woman’s passion and dedication have helped transform PyLadies in Ghana, leading to over 500 women joining the organization. (是也乎: 通过 PyLadies 活动, 引导 500+ 女士 皈依了 Python. ) 讨论 Discussions ...

2020-07-29 · 4 min · 1686 words · ZoomQuiet

Issue 430

Flask 这10年 原文: PyCoder’s Weekly - Issue #430 200722 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200722 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Flask 这10年: 和创造者 Armin Ronacher 的对话 REAL PYTHON podcast Armin Ronacher is a guest on the Real Python Podcast to talk about the first 10 years of Flask. You’ll hear about the origins of Flask and the components that make up the framework. Armin also talks about what goes into documenting a framework or API, and the community working on the ongoing development of the Flask project. (是也乎: 联合 Django 挤杀其它框架的10年… ) 在 Python 中使用 Interfaces, Mixins 以及构建强大的自定义数据结构 REDOWAN DELOWAR • Shared by Redowan Delowar How to supercharge Python’s built-in data structures and build powerful custom data structures with mixin classes. Profile, Understand & Optimize Code Performance You can’t improve what you can’t measure. Install in minutes. Profile and understand code’s behavior and performance (Wall-time, I/O, CPU, HTTP requests, SQL queries). Browse through appealing graphs → BLACKFIREsponsor Python 3中的面向对象编程 (OOP) REAL PYTHON In this tutorial, you’ll learn all about object-oriented programming (OOP) in Python. You’ll learn the basics of the OOP paradigm and cover concepts like classes and inheritance. You’ll also see to how instantiate an object from a class. (是也乎: 一个 OOP 养活了多少作家哪… 沉思吧, 少年, 到底何时值得用 OOP. ) 为什么不该从 PyPI 中删除软件包 GONÇALO VALÉRIO What to do if you need to deprecate a Python package that’s been published on the PyPI package repository. (是也乎: 其实, 每年各种 Python 基础教材/图书, 都在引诱初学者海量制造垃圾模块发布. 但是, PyPI 中没有自己属名的东西… ) Pandas Project: 与 Pandas 共事 REAL PYTHON With this follow-along Python project, you’ll build a script to calculate grades for a class using pandas. The script will quickly and accurately calculate grades from a variety of data sources. You’ll see examples of loading, merging, and saving data with pandas, as well as plotting some summary statistics. (是也乎: ) 用 Python 了解和解码 JPEG 图像 YASOOB KHALID Learn about the JPEG compression algorithm in this comprehensive guide to decoding JPEGs with Python. (是也乎: 所以, 为什么不是 webp ? 等等, ECUG 第4届大会, 有强人用3小时捋过 JPEG 压缩算法源代码的… 录音在: Index of /Erloung2ECUG/ErloungIV-091107-8hz {gen. by gen4idx.py v13.4.18 from Zoom.Quiet} ) Django 3.1 RC 1 发布 DJANGO SOFTWARE FOUNDATION Django 3.1 release candidate 1 is the final opportunity for you to try out the potpourri of new features before Django 3.1 is released. 讨论 Discussions ...

2020-07-22 · 4 min · 1774 words · ZoomQuiet

Issue 429

Python 3.8.4 可用ed 原文: PyCoder’s Weekly - Issue #429 200715 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200715 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python Print 打印语句的(非)返回 JAKE EDGE Guido van Rossum recently proposed re-introducing the Python print statement. He was completely serious and even though the idea didn’t gain traction, it’s interesting to know why he made the proposal. (是也乎: 无法再基础的内建函式了, 但是, 一样有坑, 一定要认真学习. ) 通过 13 个中级项目构想增加 Python 实力 REAL PYTHON course Get started on 13 Python project ideas that are just right for intermediate Python developers. They’ll challenge you enough to help you become a better Pythonista but will still be doable! (是也乎: MVP 永远是最给力的成长加速器. ) Python 机器人编程入门指南 NICK MCCREA Get a crash course in programming autonomous robots with Python. Don’t have a robot laying around? No problem! Use this open-source simulator to get started. (是也乎: 良心好文, 指出了核心问题, 以及坑位, 还有对应资源. ) 如何快速实现JIT编译器: PyPy,LuaJIT,Graal等 CAROL CHEN Have you ever wondered how JIT compilers like PyPy work? Learn the basics by looking at a number of JITs including PyPy, LuaJIT, and Graal. (是也乎: 注意作者->陈冠希 ) Hashing 丫的 AKSHAY RAVIKUMAR Take a deep dive into Python dictionaries by looking at four problems and considering their solutions. Python import : 高级技术和技巧 REAL PYTHON The Python import system is as powerful as it is useful. In this in-depth tutorial, you’ll learn how to harness this power to improve the structure and maintainability of your code. (是也乎: 太 docker 了. ) 不断增长的 Python 恶意软件 AUSTIN JACKSON Python’s low barrier to entry, enormous ecosystem, and rapid development process has made it one of he most desired programming languages for millions of developers around he globe—including malicious actors. Read the article at the link above and follow the discussion on Hacker News. (是也乎: 就象当年的 VB. ) Python 版本 3.8.0 至 3.8.3 中的零日漏洞导致哈希冲突并导致 DoS VIJAY PRABHU Python 3.8.4 现在可用 PYTHON.ORG Pytest 6.0.0rc1 发布 TWITTER.COM/NICODDEMUS (是也乎: pytest 应该统一 TDD 市场了? ) 讨论 Discussions ...

2020-07-15 · 4 min · 1989 words · ZoomQuiet

Issue 428

Pylance/ VSCode 全新 Python 支持扩展 原文: PyCoder’s Weekly - Issue #428 200708 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200708 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 发布 Pylance: Visual Studio Code 对 Python 快速/功能丰富的语言支持 SAVANNAH OSTROWSKI Pylance is a new Python language server for VS Code based on Microsoft’s Pyright static type checking tool. With Pylance, you get type information in function signatures and when hovering on symbols, auto import suggestions, type checking diagnostics, and so much more! (是也乎: 官方推出更加强大的 Python 支持扩展, 更多的分析, 更多的提示, 以及更多的内存抢占…. 俺是什么 Py 支持扩展都不安装的. ) ...

2020-07-08 · 5 min · 2195 words · ZoomQuiet