Issue 367

原文: PyCoder’s Weekly - Issue #367 这是 PyCon 2019 TWITTER.COM PyCon 2019 in Cleveland was an amazing experience! A big Thank You to all of the organizers and volunteers who made it happen! At the link above you’ll find a list of tweets from the conference to give you a sense of what it was like there. Also check out the talk recordings on YouTube. (是也乎: 今年大会是 Py2 在世最后一次了… 得看看, 大家怎么看 Py2 没有的世界… ) Guido 表示: 请职 BDFL 决定中 SNS 发挥了重要作用 TFIR.IO • Shared by revyuh.com video “I did not enjoy at all when the central developers were sending me hints on Twitter questioning my authority and the wisdom of my decisions, instead of telling me in my face and having an honest debate about things.” (是也乎: 网络暴力无论谁, 也无法真正无视… 因为人脑是自动化处理信息的, 主意识只能起个分流作用… garbage in garbage out ) 反思科学计算:调试,性能和信任 ITAMAR TURNER-TRAURING “You’ve run your batch process with your scientific model, and after hours and hours it spit out a result. And the result is wrong.” Itamar’s article has some valuable tips on how to debug this type of situation in your own Python programs. (是也乎: 如何避免长期运行后才有结果的程序, 给出错误结果… ) 通过 Vettery 找 Python 工作 VETTERY sponsor Vettery specializes in developer roles and is completely free for job seekers. Interested? Submit your profile, and if accepted, you can receive interview requests directly from top companies seeking Python devs. Get started → (是也乎: 想肉身翻越的可以一试… 另外 FCC 也是好渠道… ) 有关 PyPI “商业模式” 的讨论 DUSTIN INGRAM Challenges in making a package index turn a profit and what happened in the JavaScript community with NPM. Recommended reading! (是也乎: 这是向服务厂商进化的必然, 就看 PFP 是否够胆了… 否则, PyPi 永远无法成为生产线中的一环… ) Python 分析中的确定性和统计 GABRIELE TORNETTA • Shared by Gabriele Tornetta This post discusses some of the current profiling tools and techniques for Python apps: “The official documentation has a whole section on the subject, but we shall go beyond that and have a look at some alternative solutions, especially in the area of sampling profilers.” Nice read! (是也乎: 真心没那么简单,好在早已有方便工具: ) 用 Python 制作自己的 GeoIP API ENZO CALAMIA This article shows you how to maintain your own GeoIP database and how to implement an API around it. Very cool, I had no idea this data was available for free. Python 中的 sorted() vs sort() REAL PYTHON Learn how to sort various types of data in different data structures, customize the order, and work with two different ways of sorting in Python. (是也乎: 真蟒的插画真心可以出画册了.. ) 讨论 Discussions NIL ...

2019-05-08 · 5 min · 2089 words · ZoomQuiet

Issue 366

原文: PyCoder’s Weekly - Issue #366 如何充分利用 PyCon REAL PYTHON PyCon is about to kick off! Whether you’re a first-timer or a seasoned attendee, this guide will help you get ready to have a great PyCon. (是也乎: 简单说, 不一定要到现场, 认真复习一切就好 ) 在 PyCharm PyCon Booth 上结识 Python 内容创建者 PAUL EVERITT If you’re at PyCon this week come and meet yours truly, along with Michael Kennedy from the Talk Python podcast, Brian Okken from Test & Code, Miguel Grinberg, Chris Medina, PyBites, and the Real Python Team. Be sure to stop by and say hi :) 用 PyGame Zero 教孩子编码 MATT LAYMAN How can you excite a kid about computers? In this article the author shares his experience teaching his six year old son some programming using PyGame Zero. (是也乎: 一样是游戏创作, PyGame 比 Scratch 要靠谱的多… ) 用计算机视觉检测帕金森病 ADRIAN ROSEBROCK Learn how to use OpenCV and machine learning to automatically detect Parkinson’s disease in hand-drawn images of spirals and waves. (是也乎: 玩具级别… ) Mac Adware, à la Python OBJECTIVE-SEE.COM An examination of a malicious piece of macOS software (adware) which leverages Python and various levels of obfuscation to hinder analysis. 使用 Django 和 GeoDjango 制作基于位置的 Web 应用程序 REAL PYTHON video Learn how to use Django and GeoDjango to build a location-based web application from scratch. You’ll be building a simple nearby shops application that lists the shops closest to a user’s location, powered by PostgreSQL and PostGIS. (是也乎: GeoDjango ~ Django 的特化道路将不会停止, 本质上已经从框架厂商, 变成方案厂商了. ) 讨论 Discussions ...

2019-05-02 · 4 min · 1765 words · ZoomQuiet

Issue 365

原文: PyCoder’s Weekly - Issue #365 Requests III: HTTP同时为人类和机器 PYTHON-REQUESTS.ORG Requests is getting a makeover slated for release in 2020: asyncio, HTTP/2, connection pooling, timeouts, Python 3.6+, and more. Python 学习路径 REAL PYTHON Step-by-Step Python learning paths and study plans for beginner, intermediate, and advanced Python developers. (是也乎: 俺就赞个图, 真正的自学路径, 不可能按照这种来的… 入门, 其实就一瞬间…建立/有意识的知道如何建立任意命题的 MVP 就 KO 80% 问题了. ) 在您组织内打包 Python 嗯哼 STEFAN SCHERFKE What do you do when your organization uses Python for in-house development and you can’t (or don’t want to) make everything Open Source? Where do you store and manage your code? How do you distribute your packages? Stefan lays out his approach in this detailed article. (是也乎: gitlab+conda ? 有趣的经验… $ ownconda –help Usage: ownconda [OPTIONS] COMMAND [ARGS]… Support tools for local development, CI/CD and Conda packaging. Options: –help Show this message and exit. Commands: build Build all recipes in RECIPE_ROOT in the correct… check-for-updates Update check for external packages in RECIPE_ROOT. ci Run a GitLab CI pipeline locally. completion Print Bash or ZSH completion activation script. dep-graph Create a dependency graph from a number of Conda… develop Install PATHS in develop/editable mode. gitlab Run a task on a number of GitLab projects. lint Run pylint for PATHS. make-docs Run sphinx-build and upload generated html… prune-index Delete old packages from the local Conda index at… pylintrc Print the built-in pylintrc to stdout. pypi-recipe Create or update recipes for PyPI packages. sec-check Run some security checks for PATHS. show-updated-recipes Show updated recipes in RECIPE_ROOT. test Run tests in PATHS. update-recipes Update Conda recipes in RECIPE_ROOT. upload Upload Conda packages in PKG_DIR. validate-recipes Check if recipes in RECIPE_ROOT are valid. 原来是 ownconda 的广告. ) 通过 Vettery 找 Python 相关工作 VETTERY sponsor Vettery specializes in developer roles and is completely free for job seekers. Interested? Submit your profile, and if accepted, you can receive interview requests directly from top companies seeking Python devs. Get started → (是也乎: 有远程 SOHO 的, 但是, 首先能用英文流畅的交流是个关键门槛. ) Flask vs Django: 选择你的 Python Web 框架 DAMIAN HITES What are the main differences between Django and Flask? What are their respective strengths and weaknesses? Read Damian’s article to find out. (是也乎: 不涉及复杂功能, 数据库… 俺用 Bottle ) 基于 NASA Image Search API 造作个 Python GUI 应用 MIKE DRISCOLL Learn how to build a Python GUI app for browsing the NASA image library from scratch using the wxPython toolkit. (是也乎: wxPython … 上古神品…在 Qt 开源后, 几乎无人讨论了… ) Python 仅位置参数 JAKE EDGE Inside baseball about PEP 570. (是也乎: 前几周已经嗯哼过几篇了.. ) 讨论 Discussions ...

2019-04-24 · 4 min · 1882 words · ZoomQuiet

Issue 364

原文: PyCoder’s Weekly - Issue #364 尝试 Python 3 用 asyncio 来并发 REAL PYTHON video Learn how to speed up your Python 3 programs using concurrency and the asyncio module in the standard library. See step-by-step how to leverage concurrency and parallelism in your own programs, all the way to building a complete HTTP downloader example app using asyncio and aiohttp. (是也乎: 叕一则, REAL PYTHON 的嗯哼, 难道, 周刊已经被收购了? ) Python 用于拍摄黑洞照片 MIKE DRISCOLL “Scientists have used a new algorithm to take a photo of a black hole. One of the most exciting parts about it to me is that they used a lot of Python libraries to do the magic.” (是也乎: 虽然 Python 慢, 但是, 想看到黑洞, 还是靠咱… ) Django: 保持逻辑模板(和视图) BLOT.IM Solid advice! Keep your Django templates and views clean by moving application logic into model methods and model managers. 如何不停机在 Django 中重建索引 REAL PYTHON In this step-by-step Python tutorial, you’ll get a solid understanding of the limitations of Django migrations by tackling a well known problem: creating an index in Django without downtime. (是也乎: ) 在 PyCharm的 PyCon Booth 上与 Python 内容创建者们见面 JETBRAINS.COM I’ll be there, the Real Python team will be there, and so will Mike Kennedy from Talk Python, Brian Okken from Test & Code, Matt Harrison, the PyBites team, Chris Medina, and Miguel Grinberg. Be sure to stop by and say hi :) Thanks JetBrains! list.sort() 嗯哼 sorted(list) FLORIAN DAHLITZ Taking a closer look at Python’s built-in list sorting methods with regards to memory consumption and time efficiency. Nice writeup! PyCon 2019 接近售磬 PYCON.BLOGSPOT.COM Get your ticket before it’s too late :) 讨论 Discussions ...

2019-04-17 · 4 min · 1671 words · ZoomQuiet