pythonista-weekly : Pyw 519

欢迎阅读《pythonista周刊》第519期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-519 翻译:Dustyposa 来自赞助商(PS:原文的赞助商) Your Python Code: Powerful and Secure SonarQube offers Python static analysis that’s powerful, fast, and accurate - out of the box! Find and review Security Hotspots and automatically detect Vulnerabilities in your code. Get started analyzing your Python projects today! Start for free. 文章、教程与话题 用 Python & FastAPI 搭建一个区块链应用 了解如何使用 Python 构建区块链,然后使用 FastAPI 构建的 API 访问它。 Python 幕后 #13: GIL及其对Python多线程的影响 这篇文章谈论的是 GIL 的非显而易见的影响。在此过程中,我们将讨论 GIL 到底是什么,它为什么存在,它如何工作,以及它将如何影响 Python 未来的并发性。 用 spaCy & Python 做自然语言处理 在这个 spaCy 教程中,你将学习所有关于自然语言处理的知识,以及如何使用 Python spaCy 库将其应用于现实世界的问题。 New Testing Features in Django 4.0 Django 4.0 上周发布了第一个 alpha 版本,最终版本应该会在12月发布。它包含了大量的新功能,你可以在发布说明中查看。在这篇文章中,我们将更深入地研究测试方面的变化。 三种用Python测试你的API的方法 单元测试可能令人退缩,但这些 Python 模块将使你的生活更加轻松。 Fetch the Flag CTF at SnykCon | Oct 5 | Register for free Ready to take your security skills to the next level? Compete in 20 hands-on hacking challenges & win prizes at Fetch the Flag CTF at SnykCon on Oct 5. Register for free.SPONSOR 条件表达式 在这篇文章中,学习如何使用 Python 的条件表达式。 Pixel Shuffle Super Resolution with TensorFlow, Keras, and Deep Learning 了解 Pixel Shuffle Super Resolution 以及如何在自己的项目和代码中使用 Pixel Shuffle Super Resolution。 Python: 深浅拷贝对象 在这篇文章中,你将学习 Python 中深度拷贝和浅度拷贝对象的区别,以及如何用拷贝库来完成这两件事。 解读数据结构显示 Python: 在Kubernetes上用DevSpace进行Flask开发 关于PyPI,教程没有告诉你的4件事 类型检查你的 Django Application ...

2021-10-01 · 2 min · 942 words · ZoomQuiet

PyCoder 492

Django 4.0 来了 原文: PyCoder’s Weekly - Issue #492 210929 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210929 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 背景: GIL 以及其对 Python Multithreading 的影响 VICTOR SKVORTSOV GIL stands for the Global Interpreter Lock, and its job is to make the CPython interpreter thread-safe. This post tells you more about non-obvious effects of the GIL. Along the way, you’ll see what the GIL really is, why it exists, how it works, and how it’s going to affect Python concurrency in the future. (是也乎: 沈游侠也曰过类似的断言, 毕竟 Guido 老爹不傻… ) Django 模板语言: 标签和过滤器 REAL PYTHON Django templates use their own mini-language that’s inspired by Python. This tutorial covers Django template tags and filters, explaining how to compile and use templates. It covers conditional blocks, looping, and inheritance in tags as well as filters for strings and filters for lists. (是也乎: ) Django 4.0 中的新测试功能 ADAM JOHNSON Django 4.0 had its first alpha release last week and the final release should be out in December. It contains an abundance of new features, which you can check out in the release notes. This post looks at the changes to testing in a bit more depth. (是也乎: 就象 Py3 ? ) 教程中有关 PyPI 从不说的4件事儿 PAOLOA AMOROSO “Although it’s well known PyPI is unforgiving for good reasons, the package publishing process is not as straightforward as the tutorials make it seem. I run into a few unexpected minor bumps none of the guides mention.” (是也乎: PyPI 公开的机密 ) Django 4.0 Alpha 1 发布 DJANGO SOFTWARE FOUNDATION See the full changelog here. scikit-learn 1.0 发布亮点 SCIKIT-LEARN.ORG (是也乎: 竟然出 1.0 了… 好象永远不发布1.0 的才是最Nb 的? ) 探讨/吐糟 Discussions ...

2021-09-29 · 4 min · 1936 words · ZoomQuiet

pythonista-weekly : Pyw 518

欢迎阅读《pythonista周刊》第518期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-518 翻译:Dustyposa 来自赞助商(PS:原文的赞助商) Deliver Cleaner and Safer Python Code in Your IDE Working in VS Code, PyCharm, Visual Studio, or Eclipse? SonarLint is a free and Open Source IDE extension that helps you find & fix quality and security issues in your Python codebase! Discover More 新闻 Django 4.0 will include a built-in Redis cache backend ...

2021-09-24 · 3 min · 1376 words · ZoomQuiet

PyCoder 491

slippers ~ 低代码新思路 原文: PyCoder’s Weekly - Issue #491 210922 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210922 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 结构模式匹配在 Python 3.10 BEN HOYT “Python 3.10, which is due out in early October 2021, will include a large new language feature called structural pattern matching. This article is a critical but (hopefully) informative presentation of the feature, with examples based on real-world code.” (是也乎: LISP/Erlang 在 Python 世界的恢复… ) 用 Django 和 Python 建立个人日记 REAL PYTHON In this beginner-friendly tutorial, you’ll build a personal diary app in Django. You’ll use the strengths of the Django web framework and learn the basics of web development with Python. (非) 解开生成器表达式 BRETT CANNON What does that look like if you take away the Python “magic” of generator expressions and unravel them down to their core Python semantics? Python 反模式: 使用可变的默认值作为参数 VALI VOICU A debugging post-mortem. 更好的 Pypy JIT 支持自动生成的Python代码 CARL FRIEDRICH BOLZ-TEREICK (是也乎: PyPy 在 CPython 的平行宇宙玩出了自己的道路… ) 通过在断点开始 REPL 来调试很有趣 JULIA EVANS (是也乎: 断点进入现场 REPL 进行交互探索, 低配版 IDE ) Django 4.0 获得内置 Redis Cache 后端 GITHUB.COM/DJANGO (是也乎: 没办法了, 只能先 redis 了 ) 探讨/吐糟 Discussions ...

2021-09-22 · 5 min · 2111 words · ZoomQuiet