~ 文章, Blog, 教程...

Python's dictionaries are stunningly good. Over the years, many great ideas have combined together to produce the modern implementation in Python 3.6. This fun talk is given by Raymond Hettinger, the Python core developer responsible for the set implementation and who designed the compact-and-ordered dict implemented in CPython for Python 3.6 and in PyPy for Python 2.7.


事实证明一个贴心的数据类型可以增加很多语言的依赖, 但是,另外一个现实也证明了只有一种数据类型的开发语言一样可以很好的使用, 所以? 存乎一心了. )

I ran into this situation today where I wanted to issue a few commands over ssh to a remote host as part of a Click command I'm building to do some ops automation here at REVSYS. It's probably not perfect in terms of error handling, but it sure is simple!.


嗯哼,就是 Fabric3 的软广呗. )

The course will also introduce data manipulation and cleaning techniques using the popular python pandas data science library and introduce the abstraction of the DataFrame as the central data structure for data analysis. The course will end with a statistics primer, showing how various statistical measures can be applied to pandas DataFrames. By the end of the course, students will be able to take tabular data, clean it, manipulate it, and run basic inferential statistical analyses.


就是 panda 呗... )

In this post, I will summarize some tidying examples Wickham uses in his paper and I will demonstrate how to do so using the Python pandas library.


依然是 Panda 呢... )

Considering rich Python Ecosystem of tools, libraries, and frameworks for data crunching, I’d like to share a few examples how to plug Datahub API as a data source to your Python-based workflow. I’ll start with a simple example: how to turn Datahub API JSON output into Numpy arrays using Pandas framework.


针对 Datahub API 输出的 JSON )

Python 3.6.0 came out day before yesterday, and it was like a Christmas present for many of us. But in the midst of all the celebration, many of you were still asking if it is safe to drop Python 2 and move over to Python 3. There still seems to be a fear of missing out on useful third party libraries that lack Python 3 support. So in this post, I will try to settle this issue once and for all by presenting the relevant data. After you have seen all the data, you will be able to come to your own conclusion (I have already expressed my conclusion in the title).


目测嗯哼的... )

There are already a fair number of books about Numpy (see Bibliography) and a legitimate question is to wonder if another book is really necessary. As you may have guessed by reading these lines, my personal answer is yes, mostly because I think there is room for a different approach concentrating on the migration from Python to Numpy through vectorization.



是一部完备的小书...CC 协议,还没有翻译为中文.... rougier/from-python-to-numpy: An open-access book on numpy vectorization techniques, Nicolas P. Rougier, 2017

rST 格式


pykids is a voluntary effort to bring Python to elementary school (5th & 6th grades). At present I run AWS servers to support my venture. These servers are available for anyone to use. I run a monthly bill of about 20 USD to run this server. The money that you donate will go into support keeping these servers online.


乱说! 初学更加不应该用 IDE 了... )


可怕的 Dependencies of django )


Python 的目标从来不是最爱哪...



~ 包/模块/库/片段...

A heap overflow in tag processing leads to code execution when a specially- crafted m4a file is loaded by Nintendo 3DS Sound. This bug is particularly good, because as far as I can tell it is the first ever homebrew exploit that is free, offline, and works on every version of the firmware for which the sound app is available.


是的,不支持中文... )

A GitHub integration to automatically review Python code style over Pull Requests


在 PR 时,自动运行的风格检查器 )


Upload any image, and the app will tell you the object in the image and translate it to any language you want (read out aloud).


基于 EC2 和 Google Vision API 的图片内容识别服务, 给俺一张图片,俺告诉你图片里有什么... )

DjangoHero automates the process of starting a new Django project on Heroku.


自动化在 Heroku 上部署一个新 Django 实例的过程 )

An easy-to-use PIP package manager. Update, force reinstall, do an easy requirements.txt install, and uninstall all packages in 1 command.


又一个基于 requirements.txt 的包含管理工具, 可是大家需要的只是:

根据代码净化包环境+快速迁移所有包含恢复到另外一个虚拟环境或是主机上, 其它的都是伪需求.. )



comments powered by Disqus