Issue 394

俺的 Python 开发环境 2020 版 原文: PyCoder’s Weekly - Issue #394 191113 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 191113 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. PSF 寻求开发商以提高 pip 品质 PYFOUND.BLOGSPOT.COM • Shared by Brian Rutledge The Python Software Foundation Packaging Working Group is receiving funding to work on the design, implementation, and rollout of pip’s next-generation dependency resolver. Funding has been allocated to secure a senior developer and an intermediate developer, starting in December 2019 or January 2020. RFP open now through November 22. 俺的Python开发环境,2020版 JACOB KAPLAN-MOSS The co-creator of Django explains his Python environment: “My setup pieces together pyenv, poetry, and pipx. It’s probably a tad more complex than is ideal for most Python users, but for the things I need, it’s perfect.” Related discussion on Hacker News. (是也乎: 来了, 又来了, 每年更新最具有引战体质话题… pipenv 被弃用非常明智… ) 何时在Python中使用列表推导 REAL PYTHON Python list comprehensions make it easy to create lists while performing sophisticated filtering, mapping, and conditional logic on their members. In this tutorial, you’ll learn when to use a list comprehension in Python and how to create them effectively. (是也乎: 最讨巧也最容易滥用的技巧… 简单说: 在应该使用时 ) Python中的"解析" ASTHASR.GITHUB.IO “Don’t be afraid to create new, more specific data types for your specific use cases. It’s okay to represent different data, used for different purposes, with different data structures, and makes later generalization easier!” (是也乎: 毕竟 Python 内置的, 而对其它对象的分析, Python 生态中工具也是最多的… 所以, 嫑怕, 放心定制自己舒服的… ) 使用 Keras 和深度学习发现自然灾害 ADRIAN ROSEBROCK In this tutorial, you will learn how to automatically detect natural disasters (earthquakes, floods, wildfires, cyclones/hurricanes) with up to 95% accuracy using Keras, Computer Vision, and Deep Learning. Python 成为 GitHub 第二受欢迎的语言 DEVELOPER-TECH.COM GitHub has published its latest State of the Octoverse report which provides fascinating insights into the development industry. (是也乎: 第一当然是 JAVA 了, 报告中还有其它有趣的结论: 谁是增长最快的语言? 哪个编辑器最受欢迎… 当然, 无论调查如何, 自己舒服的才是最好的. ) 简单便携式 Python 解释器的复杂路径 GLAUBER COSTA “We needed a Python interpreter that can be shipped everywhere. You won’t believe what happened next!” (是也乎: 简单说, 用专用工具来完成…别自己乱来… ) 那些最为低估的 Python 软件包 EYAL TRABELSI (是也乎: 除了 this 模块之外, 在各种领域都散落有官方一直没注意到的神奇模块, 当然, 多数都是和大数据相关的, pandas 插件, 数据清理/探索, 以及性能检测什么的… 值得逐一尝试体验… ) 停止使用 utcnow 以及 utcfromtimestamp PAUL GANSSLE (是也乎: 简单说 datetime 才是最好的选择. ) 讨论 Discussions NIL ...

2019-11-13 · 4 min · 1911 words · ZoomQuiet

Issue 395

激萌模块->用表情符编写Python程序 原文: PyCoder’s Weekly - Issue #395 191120 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 191120 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. Python 中咯线程 REAL PYTHON video Learn how to use threading in your Python programs. You’ll see how to create threads, how to coordinate and synchronize them, and how to handle common problems that arise in threading. (是也乎: 基础而又不简单的嗯哼… ) 加载较少数据来减少 Pandas 内存用量 ITAMAR TURNER-TRAURING How to reduce the memory your DataFrame uses at the time it is initially loaded: by dropping columns, lower-range numerical dtypes, and categoricals. Python 字典"加法"的回归 JAKE EDGE An interesting summary of discussions around PEP 584 (“Add + and += operators to the built-in dict class”). 为什么向 Python 3 迁移需要这么长时间? VICKI BOYKIS (是也乎: 因为, 多数项目没法儿迁移… ) Related discussion on Hacker News. Django 3.0 RC 1 可用矣 DJANGOPROJECT.COM PyCon 2020 Tutorial 提案截止日期临近 PYCON.BLOGSPOT.COM 讨论 Discussions ...

2019-11-13 · 4 min · 1851 words · ZoomQuiet

Issue 393

DROPBOX 官方致谢老爹6年贡献, 对比… 原文: PyCoder’s Weekly - Issue #393 191106 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 191106 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. Python 采用了12个月发布周期(PEP 602) (PEP 602) LWN.NET The CPython team moves to a consistent annual release schedule. More info here in PEP 602. 用 Kivy Python 框架构建移动应用 REAL PYTHON Learn how to build a mobile application with Python and the Kivy GUI framework. You’ll discover how to develop an application that can run on your desktop as well as your phone. Then, you’ll package your app for iOS, Android, Windows, and macOS. (是也乎: 讲真, 用 QPython 更加简洁 ) 2019 Python 开发者调查表 PSF BLOG “[We] aim to identify how the Python development world looks today and how it compares to the last two years. The results of the survey will serve as a major source of knowledge about the current state of the Python community and how it is changing over the years, so we encourage you to participate and make an invaluable contribution to this community resource. The survey takes approximately 10 minutes to complete.” (是也乎: 官方构建的, 想更多引发对中国程序猿的注意, 大家多去填写吧 ) 您不必迁移到 Python 3 SEBASTIAN WITOWSKI “Python 3 is great! But not every Python 2 project has to be migrated. There are different ways how you can prepare for the upcoming Python 2 End of Life.” (是也乎: 无法同意更多, 绝大多数应用并没到只有 Py3 能承载的分儿上 ) 为毛要使用python -m pip BRETT CANNON Arguments for why you should always use python -m pip over pip/pip3 to control exactly which Python environment is used. Thank You, Guido DROPBOX.COM “After six and a half years, Guido van Rossum, the creator of Python, is leaving Dropbox and heading into retirement.” (是也乎: 老爹, 多谢哉. –> DROPBOX 官方致谢, 当然, 当年 Google 并没感谢过, 毕竟…你懂的 ) 讨论 Discussions NIL ...

2019-11-06 · 3 min · 1383 words · ZoomQuiet

Issue 392

可期仙器 ->removestar ->自动替换*导入为显式导入 原文: PyCoder’s Weekly - Issue #392 191030 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 191030 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. Black 19.10b0 发布 GITHUB.COM/PSF I’ve been using Black to automatically format most of my Python code since it came out last year, and it’s been an incredibly helpful tool. Stable release coming soon. More about how to use Black here. (是也乎: 不妥协的…何时 VSCode 们, 内置了 Black 才算得果位哪. ) Python 和 PyQt: 构建GUI桌面计算器 REAL PYTHON In this step-by-step tutorial, you’ll learn how to create Graphical User Interface (GUI) applications with Python and PyQt. Once you’ve covered the basics, you’ll build a fully-functional desktop calculator that can respond to user events with concrete actions. (是也乎: 真正上手就会发现, QtDesigner 生成的代码不如手工写的… 以及, 问题在 GUI 软件现在基本都向 WAP 转化了… Electorn 面前, 以及 Flutter 的目标, 都是没 Qt 什么事儿的哪… ) Python 3.8 中 System V式 共享内存性能 VENKATESH-PRASAD RANGANATH “To evaluate the performance gains from shared memory, I ran the following simple test—create a list of integers and double each integer in the list in parallel by chunking the list and processing each chunk in parallel.” Surprising results! 何时切换为 Python 3.8 PYTHONSPEED.COM A quick rundown of the problems you might encounter when switching major Python versions. (是也乎: 迁移不是问题, 问题是不兼容… ) 考虑使用 memoryview 和 bytearray 进行有字节零复制交互 BRETT SLATKIN 用 Python 处理 TTF 字体文件 READEVALPRINT.COM 讨论 Discussions NIL ...

2019-10-30 · 4 min · 1534 words · ZoomQuiet