351-360¶
Issue #351 Pythonic Concurrency, Python Habits to Unlearn, and More¶
Speed Up Your Python Program With Concurrency
How and when to use concurrency in Python. You’ll see a simple, non-concurrent approach and then look into why and when you’d want to use threading, asyncio, or multiprocessing. REAL PYTHON
多线程 多进程 协程
What Should Be in the Python Standard Library?
“Python has always touted itself as a ‘batteries included’ language; its standard library contains lots of useful modules, often more than enough to solve many types of problems quickly. From time to time, though, some have started to rethink that philosophy […]” JAKE EDGE
讨论
Issue #352 The Best Python Programming Fonts, Async IO Explained, and More¶
打不开
Issue #353 Python 3.8 Performance Improvements, Mastering Jupyter Notebooks, and More¶
Several Stdlib Methods With Only Positional Arguments Will Be 30-70% Faster in Python 3.8
Wow, this is great. Optimization work done by Serhiy Storchaka will make several functions/methods with only positional arguments in the Python stdlib faster. This will land in Python 3.8. Also see the related discussion on Reddit. PYTHON.ORG
速度更快了
Issue #354 CPython Governance News, Python Dev Survey Results, CPython 3.8, and More¶
A Modern Version of Python?
What the creator of Flask (and other popular Python projects) wishes for Python’s future. ARMIN RONACHER
推特
How to Toggle a Value in Python?
In case you ever wondered what the most efficient way was to toggle between 0 and 1. STACK OVERFLOW
就完事了,花里胡哨
Tutorial for Writing a systemd Service in Python
Many Linux distributions use systemd to manage the system’s services (or daemons), for example to automatically start certain services in the correct order when the system boots. This tutorial will help you write your first systemd service using Python. Nice writeup! FLORIAN BRUCKER
Python写一个systemctl
Issue #355 Goodbye Virtualenvs, Migrating to Python 3, Steering Council News, and More¶
The State of Python Packaging
Describes where Python packaging ecosystem is today, and where the Python Packaging Authority hopes will move next. BERNAT.TECH
Python包的一些知识,没看
Issue #356 Running Python Programs, CPython on x86 vs ARM, and More¶
Python’s str.isdigit vs str.isnumeric
“If you ever wondered how a language that claims to have one obvious way to do it can have multiple seemingly identical methods… well, now you know!” REUVEN LERNER
Creating Python Functions Dynamically at Run-Time
PHILIP TRAUNER
运行时动态创建函数
Issue #357 Happy Birthday Python, Python vs Java, and More¶
Hunting for Memory Leaks in Python Applications
How to profile memory usage across time in your Python apps in order to find and fix memory leaks. WAI CHEE YAU
感觉没啥用,Pycahrm全都干了
Issue #358 PEP 584 (+/- Operators for Dictionaries), Refactoring Python Apps, and More¶
Python Quirks: Implicit Return
Python functions always have to return something, right? Well, it’s complicated… PHILIP TRAUNER
Issue #359 Beautiful Pythonic Code, OOP Tips, Setting Up Python Projects, and More¶
Loop With “Else” Clause
“What is the Pythonic way to handle the situation where if a condition exists the loop should be executed, but if it does not something else should be done?” PYTHON.ORG
404了
Don’t Make It Callable
You can make any Python object callable by adding a call method to it. Like operator overloading this seems like a nifty idea at first…but is it really? Moshe’s article goes over some use cases and examples to discuss whether making objects callable is a good idea or not. MOSHE ZADKA
慎用__call__
Issue #360 Python GUI Applications, Guido Blogs Again, Decorators Deep-Dive, and More¶
There Are Some Huge Speedups in Python 3.8. Will They Also Be Put Into the Older Versions?
不会
Python’s except Quirk
I don’t know how Alex comes up with these, but that’s a fun one :) ALEX BECKER
except的异常出了作用域就被删除了