Issue 389

Rust 来解决 Python 环境管理问题->pyflow 原文: PyCoder’s Weekly - Issue #389 191006 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 191006 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. Django 入门: 构建投资组合应用程序 REAL PYTHON video In this course, you’ll learn the basics of creating powerful web applications with Django, a Python web framework. You’ll build a portfolio website to showcase your web development projects, complete with a fully functioning blog. (是也乎: 好象今年开始, 真蟒 已经占据主要周刊内容了… ) 适用于 Python 的自动格式化程序 KEVIN PETERS • Shared by Kevin Peters An auto formatter is a tool that will format your code in a way it complies with the tool or any other standard it set. But which auto formatter should you use with Python code? (是也乎: 这种事儿叫用户选择会出人命的, 学习 golang, 及时官方钦定一个并内建才对 ) 用 Datadog 分布式跟踪和 APM 监视您的 Python 应用程序 DATADOG sponsor Debug and optimize your code by tracing requests across web servers, databases, and services in your environment—and seamlessly correlate those traces with metrics and logs to troubleshoot issues. Try Datadog in your environment with a free 14-day trial → (是也乎: 非常实诚的好服务 ) Timsort: 从未听说过的最快排序算法 BRANDON SKERRITT CPython uses Timsort for sorting containers. Timsort is a fast O(n log n) stable sorting algorithm built for the real world — not constructed in academia. PyPy 的新 JSON 解析器 PYPY STATUS BLOG PyPy has a new and faster JSON parser implementation. This post covers the design decisions that were made to develop the new and improved parser. (是也乎: 好象只有 PyPy 还在继续 Pythonic 之旅 ) 用 %autoreload 自动重新加载 Python 模块 SEBASTIAN WITOWSKI Tired of having to reload a module each time you change it? IPython’s %autoreload to the rescue! 教程中不常用的 六个 Django 模板标签 MEDIUM.COM/@HIGHCENBURG {% for … %} {% empty %} {% endfor %} anyone? (是也乎: 为什么不常用? 原因很明显了哪 ) (浮点) 数字, 丫们说谎 GLYPH LEFKOWITZ When and why 2 + 2 = 4.00000000000000000001… (是也乎: 老爹当年一闪神, 到今反复嗯哼永不断 ) Python 2.7 退休倒计时:〜2.5个月 PYTHONCLOCK.ORG (是也乎: 放心万里长城永不倒 ) 讨论 Discussions ...

2019-10-08 · 4 min · 1829 words · ZoomQuiet

Issue 388

NASA实锤对比Py和多种主力数据科学语言 原文: PyCoder’s Weekly - Issue #388 191006 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 191006 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. Python 中如何用 Generators 和 Yield REAL PYTHON Learn about generators and yielding in Python. You’ll create generator functions and generator expressions using multiple Python yield statements. You’ll also see how to build data pipelines that take advantage of these Pythonic tools. (是也乎: 可以说, 真蟒, 一己之力, 将 Python 领域所有值得嗯哼的事儿, 这几年全部重新嗯哼了一遍… 这是为了获得完全自主产权的教材, 来构筑课程池? ) 对比 Python, Julia, Matlab, IDL 以及 Java NASA.GOV “We use simple test cases to compare various high level programming languages. We implement the test cases from an angle of a novice programmer who is not familiar with the optimization techniques available in the languages. The goal is to highlight the strengths and weaknesses of each language but not to claim that one language is better than the others.” (是也乎: 实锤了…. 没有一枝独秀, 只有相对优势. 如果自己用 Python 没毛病, 如果公司来, Java 永远正确. ) 正则表达式在 Python 中的性能 JUN WU “Working with regex, you have to understand what you are doing: the regex engine for Python, the type of statement you are writing, and alternative tools that are available for your purposes. Yes, there are instances when the re package may not be the best tool to use.” PEG 在 Core Developer Sprint GUIDO VAN ROSSUM “Every year for the past four years a bunch of Python core developers get together for a week-long sprint at an exotic location. These sprints are sponsored by the PSF as well as by the company hosting the sprint.” (是也乎: 老爹真的开始放飞了, 敢于放权给大家玩内核了… ) Mypy 0.730 发布 MYPY-LANG.BLOGSPOT.COM Mypy 0.730 is out, with prettier, colored output and error code support, along with many other fixes and improvements. (是也乎: 兼容 Py2 的生态圈已经正式起航…再次. ) Django Bugfix 发布: 2.2.6, 2.1.13 and 1.11.25 DJANGOPROJECT.COM 讨论 Discussions ...

2019-10-06 · 4 min · 1642 words · ZoomQuiet

Issue 387

原文: PyCoder’s Weekly - Issue #387 190925 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 190925 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. 用 pdb 调试 Python REAL PYTHON video Learn the basics of using pdb, Python’s interactive source code debugger. pdb is a great tool for tracking down hard-to-find bugs, and it allows you to fix faulty code more quickly. (是也乎: 这是屠龙技,轻易用不上, 真要用上了, 也说明已经身陷焦油坑, 难以逃离了… ) H如何验证 PyPI 是否信任? BRETT CANNON “A co-worker of mine attended a technical talk about how Go’s module mirror works and he asked me whether there was something there that Python should do.” (是也乎: 这真心是件基础又忧心的事儿… 好在, 一直有标准精良自检方案 ) PSF 中的 requests 所有权已转移给新维护者 GITHUB.COM/PSF Also see the related discussion on Reddit. (是也乎: 多年媳妇, 熬成??? 叕一例… ) What’s in a Name? Tales of Python, Perl, and the GIMP SVEN GREGORI Fun read about the challenges of naming and renaming open-source projects. PyCascades 2020 CFP PAPERCALL.IO Portland The PyCascades call for proposals is open until October 1st. 讨论 Discussions ...

2019-09-25 · 4 min · 1819 words · ZoomQuiet

Issue 386

原文: PyCoder’s Weekly - Issue #386 190918 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 190918 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. Call for Proposals for PyCon 2020 Is Open PYCON.BLOGSPOT.COM The submission deadlines are: Tutorial proposals are due November 22, 2019. Talk, Charlas, Poster, and Education Summit proposals are due December 20, 2019. (是也乎: 对比 PyCon China 2019 我们才开始, 人家已经面向 2020 了… 其实, 这才是应该的节奏; 不过, 今年 PyCon19中国, 扩张到6个城市, 也是世界之最了. 欢迎来嗯哼, 俺也去其中一个, 猜, 哪个? ) Python vs C++: Selecting the Right Tool for the Job REAL PYTHON Explore the similarities and differences you’ll find when comparing Python vs C++. You’ll learn about memory management, virtual machines, object-oriented programming differences, and much more. (是也乎: 其实, C++ 是创始人都在警告: 想想瓦萨号 的一种失控语言 ) PEP 603: Adding a frozenmap Type to collections PYTHON.ORG A draft PEP that proposes adding a new fully persistent and immutable mapping type called frozenmap to the collections module in the Python standard library. (是也乎: 不可变量是系统安全的基础, 可惜… ) Java Primer for Python Developers MAX MAUTNER “There are large distinctions between the two programming languages, but I’ll try to give the most notable that I encountered–as I approached Java from a Python-heavy background.” The Boring Technology Behind a One-Person Internet Company WENBING FANG The Python-powered tech stack of a one-person company (ListenNotes podcast search engine). (是也乎: 单人企业就得优先选择 无聊技术栈; 终于, Python 从 PHP 手中抢走了这一称号. ) Types for Python HTTP APIs ANIRUDH PADMARAO (INSTAGRAM) How Instagram uses types to document and enforce a contract for their Python HTTP APIs. 讨论 Discussions ...

2019-09-18 · 3 min · 1428 words · ZoomQuiet