Issue 435

千万嫑在 下载 中运行Python 原文: PyCoder’s Weekly - Issue #435 200826 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200826 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用 Python 和 DVC 进行数据版本控制 REAL PYTHON In this tutorial, you’ll learn to use DVC, a powerful tool that solves many problems encountered in machine learning and data science. You’ll find out how data version control helps you to track your data, share development machines with your team, and create easily reproducible experiments! (是也乎: 简单说, 就是将数据集的索引用 git 追踪, 数据集本身不用专门空间来管理… 如果 6G 普及后, 无论数据集在哪儿都可以比硬盘读取速度要快的下载, 那么, 也就不用这么折腾了… ) 深入研究 Python 官方 Docker 映像 ITAMAR TURNER-TRAURING Take a stroll through the Dockerfile for the official Python Docker image. Along the way you’ll see how the image uses a custom Python build and always includes the latest version of pip. 千万嫑在 下载文件夹 中运行Python GLYPH LEFKOWITZ Learn about security issues that exploit how Python interacts with PATH and why you should always think twice about your current working directory. Ask for Forgiveness or Look Before You Leap? SEBASTIAN WITOWSKI Is it faster to “ask for forgiveness” or “look before you leap” in Python? And when is it better to use one over the other? 常见 Python 包错误 JOHN WODDER Learn about common mistakes made in creating and building a Python package and how to avoid them. 讨论 Discussions ...

2020-08-26 · 4 min · 1920 words · ZoomQuiet

Issue 434

用 Python 分析 Python 代码 原文: PyCoder’s Weekly - Issue #434 200819 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200819 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 异步视图在 Django 3.1 TESTDRIVEN.IO • Shared by Michael Herman Django 3.1 introduced support for asynchronous views, middleware, and tests. This tutorial shows you how to get started with async views. Python 网络爬取实用指北 REAL PYTHON In this tutorial, you’ll learn all about web scraping in Python. You’ll see how to parse data from websites and interact with HTML forms using tools such as Beautiful Soup and MechanicalSoup. (是也乎: 从 美汤 -> ‘呆汤’ 都没说无头浏览器的… ) Delegation: OOP 中的组合和继承 LEONARDO GIORDANI Delegation is often considered one of the three pillars of object-oriented programming. Learn how to use this powerful concept in Python. Python 数据API标准联盟官宣 RALF GOMMERS Proposed by Quantsight Labs, and with initial sponsors including Intel, Microsoft, and Google Research, the consortium aims to tackle fragmentation across libraries by developing API standards for n-dimensional arrays and dataframes. (是也乎: Python 数据接口标准, 果然在 Google 发布前, 大家先抱团了. ) 用 Python 分析 Python 代码 ROTEM TAMIR Take a dip into static code analysis using abstract syntax trees and Python’s built-in ast modue. (是也乎: 这非常 PyPy 很少有语言能象 Python 这样内置语法解析器的, AST 的功能远远没有发挥出来呢. ) Python 3.9.0rc1 现已可用 CPYTHON DEV BLOG Wing Python IDE 7.2.4 发布 WINGWARE.COM Now supports Python 3.9! (是也乎: 为什么俺见 IDE 就脑仁儿痛? ) Python 3.7.9 and 3.6.12 安全更新现已发布 CPYTHON DEV BLOG (是也乎: 嗯哼? 也学习 Django 分功能领域来分形升级了? ) 讨论 Discussions ...

2020-08-19 · 4 min · 1835 words · ZoomQuiet

Issue 433

如何安全运行用户上传代码? 原文: PyCoder’s Weekly - Issue #433 200812 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200812 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 什么是 Python Wheels 以及为何应该关心? REAL PYTHON In this tutorial, you’ll learn what Python wheels are and why you should care as both a developer and end user of Python packages. You’ll see how the wheel format has gained momentum over the last decade and how it has made the package installation process faster and more stable. (是也乎: 从 egg 到 Wheel … ) Name 中有什么: ShopRunner Python 数据科学库 2.0 NICOLE CARLSON • Shared by Nicole Carlson ShopRunner’s data science team decided to rename their open-source libraries after their namesake’s creator made comments that didn’t align with the group’s values. This article makes a great case study on how to rename projects while minimizing developer impact. (是也乎: 硬分叉后的必须手尾. ) Django 幸存之道(如果关心数据的话) DANIELE VARRAZO opinion Many developers view Django’s “database agnosticism” as one of the framework’s strengths. Daniele Varrazzo, on the other hand, believes this approach potentially handcuffs the developer from taking advantage of database-specific features. Read Daniele’s detailed opinion and follow the discussion on Hacker News. 在 Python 传参: 背景和最佳做法 REAL PYTHON In this tutorial, you’ll explore the concept of passing by reference and learn how it relates to Python’s own system for handling function arguments. You’ll look at several use cases for passing by reference and learn some best practices for implementing pass-by-reference constructs in Python. (是也乎: 其实, 用最无聊的形式来最好. ) 从头构造隐性关注分析 ANDREW HEALEY There are a number of reasons websites want to collect data about how users use their website. But how this works is often a controversial topic. Learn how tracking works by building a privacy-focused tracking system from scratch. (是也乎: pixel.gif 技巧总是可用的… ) 虚拟活动资源 PYTHON.ORG Thinking about hosting a virtual Python conference or meetup? The PSF compiled a list of tools and resources to help you be successful! Oh, and they’ll be re-launching their grant program soon! (是也乎: 关键在网络活动的免费平台, 国外有很多, 国内呵呵… ) Q3 PSF成员提名截止日期为8月20日 TWITTER.COM/THEPSF Do you know someone who deserves to be a PSF fellow? Why not nominate them? 讨论 Discussions ...

2020-08-12 · 5 min · 2137 words · ZoomQuiet

Issue 432

如何安全运行用户上传代码? 原文: PyCoder’s Weekly - Issue #432 200805 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200805 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 仍缺失 4 种强大功能 SERDAR YEGULAP Python doesn’t have true constants, nor does it implement features like tail recursion optimization that many compiled languages employ. Find out what other features Python is “missing” when compared to other languages, and why the core developers haven’t added these features to the language. (是也乎: 哪四大? 真常量; 真重载和泛型; 尾递归优化; 多行λ. 简单说, 就是 真LISP 化. ) 用 Python 自定义 Django Admin REAL PYTHON In this tutorial, you’ll learn how to customize Django’s admin with Python. You’ll use AdminModel objects to add display columns, calculate values, link to referring objects, and search and filter results. You’ll also use template overriding to gain full control over the admin’s HTML. (是也乎: 当一件软件系统功能已经无比坚固时, 对其样式进行魔改就变成了显学. ) 用 BERT 进行多类文本 深度学习分类 SUSAN LI Want to optimize your chances of getting a conference proposal accepted? A little deep learning might do the trick! 用 Rust 编写/发布 Python 模块 WILLIAM WOODRUFF And without any Rust dependencies! (是也乎: 来了, 终于来了, 今年,类似嗯哼, 一定是爆发式的. ) Python 中处理文件的实用课程 REAL PYTHON course In this course, you’ll learn how you can work with files in Python by using built-in modules to perform practical tasks that involve groups of files, like renaming them, moving them around, archiving them, and getting their metadata. (是也乎: 这在 Python 无比自然. ) 异步 Python 中一次完全初始化 CHRIS WELLONS How do you asynchronously initialize a resource in Python? Read the article to learn how to solve this problem and then follow the discussion on Hacker News. Django Bugfix 发行版本: 3.0.9 + 2.2.15 DJANGO SOFTWARE FOUNDATION Django 3.1 发布 DJANGO SOFTWARE FOUNDATION pip 20.2 发布 PYTHON.ORG • Shared by Sumana Harihareswara (是也乎: pip 作为唯一可用 Python 模块管理工具, 现在的升级越来越快了. ) 讨论 Discussions ...

2020-08-05 · 4 min · 1625 words · ZoomQuiet