- 原文: Import Python Weekly Newsletter - Issue No 177
- 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-)
该读
~ 文章, Blog, 教程...
- Python 惯用: Multiline Strings
- core-python
I rarely see Multiline strings used in Python code outside of docstrings, but they can be very useful, especially when you need to create a very specifically structured string, like a code snippet, help section to print to the screen or ASCII art for a snake. The problem is that it’s just ugly, because indenting the strings actually inserts the indentation into the string.
(是也乎:
这个形式什么都好, 就是一嵌套就乱了...
)
The "PEP 572 mess" was the topic of a 2018 Python Language Summit session led by benevolent dictator for life (BDFL) Guido van Rossum. PEP 572 seeks to add assignment expressions (or "inline assignments") to the language, but it has seen a prolonged discussion over multiple huge threads on the python-dev mailing list—even after multiple rounds on python-ideas. Those threads were often contentious and were clearly voluminous to the point where many probably just tuned them out. At the summit, Van Rossum gave an overview of the feature proposal, which he seems inclined toward accepting, but he also wanted to discuss how to avoid this kind of thread explosion in the future.
(是也乎:
BDFL 说了算
)
Some would rightfully point out that Jupyter already supports pdb for simple debugging, where you can manually and sequentially enter commands to do things like inspect variables, set breakpoints, etc.?—?and this is probably sufficient when it comes to debugging simple analytics. To raise the bar, the PixieDust team is happy to introduce the first (to the best of our knowledge) visual Python debugger for Jupyter Notebooks.
(是也乎:
Jupyter 的潜力刚刚开始嗯哼
)
BuzzFeed have recently migrated from a monolithic Perl application to a set of around 500 microservices written in a mixture of Python and Go.
(是也乎:
从 perl 到 go+py...
)
- Python 中常见10种安全漏洞,以及如何避免它们
- security
Here are my top 10, in no particular order, common gotchas in Python applications.
(是也乎:
avoid 是重点
)
- 嗯哼 Python 中 lambda 表达式的异常
- codesnippets
The following piece of code can certainly claim being the most insane Python expression ever written.
(是也乎:
其实,所以,因为,那么...
)
- Python Cheatsheet
- cheatsheet
Anyone can forget how to make character classes for a regex, slice a list or do a for loop. This cheatsheet tries to provide a basic reference for beginner and advanced developers, lower the entry barrier for newcomers and help veterans refresh the old tricks.
(是也乎:
每个大版本发布后, 都得对应嗯哼一下
)
- Decorators
- core-python
Learn Python Decorators in this tutorial.
(是也乎:
叕一则内建功能的教程
)
These instructions will show you how to set up a development environment for Python Dataflow jobs. By the end you’ll be able to run a Dataflow job locally in debug mode, and execute code in a REPL to speed your development cycles.
(是也乎:
Dataflow 任务?
)
- Python 的类型提示状态
- core-python
One of the main selling points for Python is that it is dynamically-typed. There is no plan to change this. Nevertheless, in September 2014 Guido van Rossum (Python BDFL) created a python enhancement proposal (PEP-484) to add type hints to Python. It has been released for general usage a year later, in September 2015, as part of Python 3.5.0. Twenty-five years into its existence now there was a standard way to add type information to Python code. In this blog post, I'll explore how the system matured, how you can use it and what's next for type hints.
(是也乎:
反正老爹说了算
)
- Vibora - Python Web 框架/服务器
- webframework
Vibora APIs were heavily inspired by the awesome Flask. Builtin features were also based on many famous libraries as jinja2, marshmallow, websockets by aaugustin, werkzeug and many others.
(是也乎:
Py3.6+ only...
)
Fairseq(-py) is a sequence modeling toolkit that allows researchers and developers to train custom models for translation, summarization, language modeling and other text generation tasks. It provides reference implementations of various sequence-to-sequence models, including:
(是也乎:
sequence-to-sequence 模型的 pytorch 嗯哼
)
好物
~ 包/模块/库/片段...
- learn_math_fast
- 820 Stars, 114 Fork
This is the Curriculum for "How to Learn Mathematics Fast" By Siraj Raval on Youtube
(是也乎:
叕一个 Awesome
)
- kconfig-hardened-check
- 69 Stars, 9 Fork
A script for checking the hardening options in the Linux kernel config
(是也乎:
好象各种配置检验/自动生成/部署/... 相关重要文本控制的工具 都是 py 来嗯哼的
)
- sentry-python
- 24 Stars, 0 Fork
Up and coming but not yet usable new Python client
(是也乎:
logo 正经, 项目就有希望
)
- captcha-breaker
- 10 Stars, 1 Fork
High Accuracy Captcha Breaker with Tensorflow and Node.js
(是也乎:
动用 TF 的反Captcha 工具
日本程序猿作品
)
- python-string-similarity
- 8 Stars, 1 Fork
A library implementing different string similarity and distance measures using Python.
(是也乎:
叕一则字串距离工具,但是...
)
- modin
- 5 Stars, 3 Fork
Modin: Pandas on Ray - Make your pandas code faster by changing one line of code
(是也乎:
Pandas 的叕一则次级工具
import modin.dataframe as pd
单行提速
)
- textpipe
- 5 Stars, 0 Fork
Clean and extract metadata from text.
- Fifa-world-cup
- 2 Stars, 0 Fork
Analyses of faces of fifa world cup 2018
- molten: modern API framework
- 0 Stars, 0 Fork
molten is a minimal, extensible, fast and productive framework for building HTTP APIs with Python.
(是也乎:
叕一 API 框架
)
( ̄▽ ̄)
30 Amazing Python Projects for the Past Year (v.2018) 其中有几个国货,也都超过 1000+星了...
<- Qix-/better-exceptions: Pretty and useful exceptions in Python, automatically. 效果惊艳...
是也乎
- 180625 Zoom.Quiet 42 分钟完成快译
- 180625 Zoom.Quiet 用时 7 分钟完成格式化.
Comments