pythonista-weekly : Pyw 420

欢迎阅读"pythonista周刊"第420期. Let us start Pycon2020要来了! 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-420 翻译:Dustyposa 来自赞助商(PS:原文的赞助商) python开发者都需要的Vettery Vettery是一个招聘网站,它改变了人们应聘或者雇佣的方式. 准备好换工作地方了吗?免费制作简历,你的薪资你说了算,现在就和顶级雇主的HR联系吧! ...

2019-10-27 · 8 min · 3924 words · ZoomQuiet

Issue 391

最后一个官方 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 ...

2019-10-23 · 4 min · 1980 words · ZoomQuiet

pythonista-weekly : Pyw 419

欢迎阅读"pythonista周刊"第419期. Let us start 安全领域如何玩转 Python 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-419 翻译:Dustyposa 来自赞助商(PS:原文的赞助商) 使用 Datadog 监控你的python指标,日志,集群分析. 使用Datadog的应用分析,可以深入任何纬度并且能找到你所需要的信息,来进行动态诊断和快速故障排除. 马上跟踪你的python应用吧!免费试用14天哦! 文章,教程与话题 Dropbox 是如何构建威胁检测和安全事件响应工具的. 一般情况下,最常见的构建威胁检测和响应工具的方法是解耦自动化和检测部分. 根据我们的经验,这会导致大量的内存溢出. 在Dropbox中, 我们已经为我们的日志构建了一个公共的抽象底层,通过Alertbox,Covenant和Forerunner在安全响应周期内的不同阶段都可以使用. 集成并利用强大的开源工具能使我们快速地探索我们的数据并自动警报. 我们就可以专注于解决更复杂的威胁. ...

2019-10-22 · 8 min · 3552 words · ZoomQuiet

Issue 390

VSCode 支持直接 Jupyter Notebook 编辑了 原文: PyCoder’s Weekly - Issue #390 191006 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 191006 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄. CPython 3.8.0 发布 PYTHON.ORG Assignment expressions, positional-only arguments, = specifier in f-strings, and more. Click the link for the full changelog and download links. Python 3.8 的超酷新功能 REAL PYTHON What does Python 3.8 bring to the table? Learn about some of the biggest changes and see you how you can best make use of them. (是也乎: Python 也跟上了刷版本号并追加特性来刷声望的节奏… 大约 2027 年就能用上 Python 42.0.0 了 ) 由于 Python 的误解, 成千上万的科学论文可能无效 MIKE DRISCOLL Developers assumed that glob.glob() returns a sorted list of files, but it doesn’t. And this led to a number of statistical errors and data discrepancies in several published scientific papers. (是也乎: 一个内建函式误解导致的血案… 只能说大家相互抄的忒勤快了… ) Python range() 函式 REAL PYTHON video In this step-by-step course, you’ll master the Python range() function, learn how its implementation differs in Python 3 vs 2, and see how you can use it to write faster and more Pythonic code. (是也乎: 真蟒 的插图是真心走心了… ) 元编程在 Python SAURABH KUKADE “Meta-programming is an act of building functions and classes who can manipulate code by modifying, wrapping existing code or generating code.” (是也乎: 叕一则 元编程 体验… 只是, 这根本是语言自身表达能力不足时, 开放自省接口给用户来扩展表述的哪… 当然, 这么一来, 语言本身不稳定的锅就可以愉快的丢给用户了. ) Django 3.0 Beta 1 发布 DJANGOPROJECT.COM See the release notes for a list of changes and new features. PyPy V7.2 发布 MOREPYPY.BLOGSPOT.COM ARM aarch64 support, new JSON decoder, sandboxing makes a return, … 讨论 Discussions ...

2019-10-16 · 3 min · 1412 words · ZoomQuiet