pythonista-weekly : Pyw 421
欢迎阅读"pythonista周刊"第421期. Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-421 翻译:Dustyposa 来自赞助商 python开发者都需要的Vettery Vettery是一个招聘网站,它改变了人们应聘或者雇佣的方式. 准备好换工作地方了吗?免费制作简历,你的薪资你说了算,现在就和顶级雇主的HR联系吧! ...
欢迎阅读"pythonista周刊"第421期. Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-421 翻译:Dustyposa 来自赞助商 python开发者都需要的Vettery Vettery是一个招聘网站,它改变了人们应聘或者雇佣的方式. 准备好换工作地方了吗?免费制作简历,你的薪资你说了算,现在就和顶级雇主的HR联系吧! ...
可期仙器 ->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 ...
欢迎阅读"pythonista周刊"第420期. Let us start Pycon2020要来了! 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-420 翻译:Dustyposa 来自赞助商(PS:原文的赞助商) python开发者都需要的Vettery Vettery是一个招聘网站,它改变了人们应聘或者雇佣的方式. 准备好换工作地方了吗?免费制作简历,你的薪资你说了算,现在就和顶级雇主的HR联系吧! ...
最后一个官方 Py2 版本 2.7.17 发布 原文: PyCoder’s Weekly - Issue #391 191006 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 191006 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. Arduino 微控制嘼 + Python: 入门 REAL PYTHON Discover how to use Arduino microcontrollers with Python to develop your own electronic projects. You’ll learn how to set up circuits and write applications with the Firmata protocol. You’ll control Arduino inputs and outputs and integrate the board with higher-level apps. (是也乎: Arduino 比 树莓派 其实不差… 只是, 上手嵌入系统, 电工一系列工具就得先准备并熟练了.. ) 为 Python 编写个 LLVM 专业工具 STEPHEN DIEHL “We’re going to build a single module Numba-like compiler for Python. It won’t be nearly as featureful or complete, but should demonstrate how you can go about building your own little LLVM specializer for a subset of Python or your own custom DSL expression compiler; and integrating it with the standard NumPy/SciPy stack for whatever scientific computing domain you work.” Python 2.7.17 发布 PYTHON.ORG Python 2.7.17 is a bug fix release in the Python 2.7.x series. It is expected to be the penultimate release for Python 2.7. 详细变更说明…. Python 代码复杂性瀑布 NIKITA SOBOLEV What can be done to prevent your Python code from getting too complex? A good linter setup does much more than finding missing commas and bad quotes. A good linter allows you to rely on it with architecture decisions and help you with the refactoring process. (是也乎: 还是得靠 linter 工具, 因为工程师总是不自主的在工程中将代码越写越复杂… ) 在 Python 中重新实现 Solaris 命令使 C 语言的性能提高了17倍 DARREN MOFFAT “As a result of fixing a memory allocation issue in the /usr/bin/listusers command, that had caused issues when it was converted to 64 bit, I decided to investigate if this ancient C code could be improved by conversion to Python.” (是也乎: 涉及性能, 古老的锅/坑总是 C 挖的… 现在, Python 也有机会来填/挖了… ) Y组合器的简单本质(用Python解释) LIONEL PARREAUX “The Y combinator is a central concept in lambda calculus, which is the formal foundation of functional languages. Y allows one to define recursive functions without using self-referential definitions.” (是也乎: 经典思想总是值得反复嗯哼的… 反正无论怎么推导,虽然总是能成功, 但是, 就是无法相信自己的眼睛… 直觉上中间一定有谁偷走了什么… ) 大规模 Python: 严格的模块 CARL MEYER The Instagram engineering team is experimenting with a technique for writing Python modules that are side-effect-free on import to reduce server startup time and unexpected global state changes. (是也乎: 好吧, 什么事儿数量一多都不容易…. ) Python 属性访问和描述符协议 AMIR RACHUM A deep dive into Python attribute access and the descriptor protocol. What exactly happens when we say foo.bar? 讨论 Discussions ...