原文: PyCoder’s Weekly - Issue #372 realpython

  • Python 预测未来4年将超越 C 和 Java
    • ZDNET.COM “Python’s ascent continues among software developers, bolstered by its usability compared with Java and C.” (是也乎: Go 在 10年前就预测过自己将在10年以内超越 JAVA )
  • CPython 3.8.0b1 可用于测试
    • PYTHON.ORG New features include: f-string debugging, “async REPL” mode, AsyncMock in unittest.mock, async-support for unittest, math.comb added, Python embedding got better, and more.
  • 如何用 Tweepy 制作 Python Twitter 机器人
    • REAL PYTHON Learn how to make a Twitter bot in Python with Tweepy, which is a package that provides a very convenient way to use the Twitter API. You can use your Twitter bot to automate all or part of your Twitter activity. (是也乎: Tweepy 等等, 为什么那么多教程都在尝试向一个不存在的网站自动化收发不存在的嗯哼? )
  • 2019 目前 Python 打包势态
    • STEFANO BORINI “In this post, I will try to explain the intricate details of Python packaging. I spent the best part of my evenings in the past two months to gather as much information as possible about the problem, the current solutions, what is legacy and what is not.” Related discussion on Hacker News (是也乎: Poetry 硬广, 但是, 也揭示至今, 有关部署 Py 环境, 还是没有统一靠谱方案. )
  • macOS 未来版本将不包括 Python 2.7
    • MICHAEL TSAI The next macOS release deprecates built-in Python 2.7 and other system scripting languages, such as Ruby. The system scripting languages on macOS have always lagged behind the latest releases, for example, the macOS system Python is still on 2.7. You’ll still be able to install Python 2 or Python 3 as you would most likely anyway today. (是也乎: 虽然从来不用系统内置的 Python, 但是, 这又是一个不买新 MBP 的理由了… )
  • 解决 Python 编程难题 ~> 循序渐进
    • DONNACHA OISÍN KIDNEY “This post is a write-up of a solution to part of a programming puzzle I did yesterday. It’s a little different than the usual ‘solution + theory’ approach, though: I’m going to talk about the actual steps you’d need to take to get to the solution (i.e. what to google, what intermediate code looks like, etc.).”
  • 为 PyTorch 编写玩具后端编译器
    • BRAM WASTI “This tutorial is designed as an end-to-end walkthrough detailing all that is necessary for building and integrating a compiler into PyTorch’s JIT.”

讨论

Discussions

  • “谁在我们的交换机上安装了 Python?”
    • TWITTER.COM/PROGRAMERHUMOR (是也乎: Switch 上次相同图片标题是: 真实 Python 升级 )
  • 为毛 dict() 和 {} 竟然并不等同?
    • REDDIT (是也乎: 简单说历史梗: dict() 是函式嗯哼, 而 {} 则是语法解析.

      import dis def a(): … b = dict() dis.dis(a) 2 0 LOAD_GLOBAL 0 (dict) 2 CALL_FUNCTION 0 4 STORE_FAST 0 (b) 6 LOAD_CONST 0 (None) 8 RETURN_VALUE def c(): … d = {} … dis.dis(c) 2 0 BUILD_MAP 0 2 STORE_FAST 0 (d) 4 LOAD_CONST 0 (None) 6 RETURN_VALUE )

文章,教程和嗯哼

Articles, Tutorials and Talks

  • Python中的OOP方法类型:@classmethod vs @staticmethod vs Instance Methods
    • REAL PYTHON video What’s the difference between @classmethod, @staticmethod, and “plain/regular” instance methods in Python? You’ll know the answer after watching this video series and playing with the accompanying code examples. (是也乎: OOP 不得不说, 真蟒 被蟒周刊发现后, 插图丰富了很多… OOP 在编程实践中的确非常象用来陈列的精致画框… )
  • 中世纪手稿中的杀手兔
    • OPENCULTURE.COM Why so many drawings in the margins depict bunnies going bad… (是也乎: Killer Rabbits 等等,这和 Python 有什么关系?

…一个历史问题仍然没有答案:他们在多大程度上影响了现代电影喜剧,Monty Python和圣杯的创作? ರ_ರ…看来 蟒周刊 创作团队是放爬虫来收集文章的… )

好物

Interesting Projects, Tools and Libraries, Projects & Code

📆🐍 活动/大会

Events

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

看这个也比较有意思,fastapi是一个high level的web框架,其实在go里面找不到竞品,但是性能可以在一个段位.
所以说, GC 什么的, 在 Py 世界, 其实并不是一个关键大坑… ) PyScaffold ~ helps you setup a new Python project

  • What Can I Do With Python? – Real Python
    • FAQ (是也乎: Do With Py 总是永远有人问这个问题… 当然, 这个问题任何一个技术社区都有人在问… 其实, 本质上并不是对应技术是否有什么能力, 而是相反… )

Jobs

是也乎

  • 190612 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 190612 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄.