importpython-barnner.png

该读

~ 文章, Blog, 教程...

In this Python Programming Tutorial, we will be learning how to unit-test our code using the unittest module. Unit testing will allow you to be more comfortable with refactoring and knowing whether or not your updates broke any of your existing code. Unit testing is a must on any large projects and is used by all major companies. Not only that, but it will greatly improve your personal code as well. Let's get started.

(是也乎:

叕一个 TDD 方面的嗯哼了...

)

This web is a online converter that reads Python 2.x source code and applies a series of fixers to transform it into valid Python 3.x code Enter your Python2 code on the left, hit the button, and boom, Python3 code on the right

(是也乎:

可以嘛?敢用嘛? )

This is a story about how very difficult it is to build concurrent programs. It’s also a story about a bug in Python’s Queue class, a class which happens to be the easiest way to make concurrency simple in Python. This is not a happy story: this is a tragedy, a story of deadlocks and despair.

Notebook based off James Powell's talk at PyData 2017.

(是也乎:

配合 youtube 的一则 ipynb 分享, metaclasses 开始...

)

F-strings provide a concise and convenient way to embed python expressions inside string literals for formatting.

(是也乎:

针对 PEP 498 的嗯哼 )

Reddit Discussion

Roughly, Hy is to Python as Clojure is to Java. Hy completely inter-ops with Python. I've hit commit 1,500 in my Hy project at work. I wanted to share my experience working with Hy, where I feel it shines and where it falls short.

(是也乎:

等等-> Clojure LISP?!

XKCD

叕一个为了 LISP 的方言, py 造...

1
2
#! /usr/bin/env hy
(print "I was going to code in Python syntax, but then I got Hy.")

意思是可以用 Python 来学习 Scheme 了?!

hy-logo

)

A "fold" is a fundamental primitive in defining operations on data structures; it's particularly important in functional languages where recursion is the default tool to express repetition. In this article I'll present how left and right folds work and how they map to some fundamental recursive patterns. The article starts with Python, which should be (or at least look) familiar to most programmers. It then switches to Haskell for a discussion of more advanced topics like the connection between folding and laziness, as well as monoids.

(是也乎:

等等? Haskell ?!

productrecursionpattern

)

C is relatively difficult to write, making it harder to analyse and test. It would be helpful to be able to do this with a higher level language, such as Python. Analysis and testing don’t affect performance of the actual data structure, so using a slower but easier and more productive language for this seems reasonable. In this article, we walk though a simple example of doing this with a built-in Python library for interfacing with C called ctypes.

This short post shows how to use Python packages googlemaps and GDAL.

One of the reasons why I love the Python programming language is because of how easy debugging is. You don't need a full blown IDE to be able to debug your Python application. We will go through the process of debugging a simple Python script using the pdb module from the Python standard library, which comes with most installation of Python.

(是也乎:

叕一个 debug 的经验分享, 只是 print() 可以解决 99% 情况时,有什么新动力要用...

)

We’re excited to be launching a bunch of new annotation types for images. Since the launch of our bounding box API, we’ve annotated millions of images with boxes to identify a host of different objects, from cars and hats to roof damage and parking lots. Scale is becoming an industry-standard tool for solving computer vision problems.

The post is about a terminal visualization tool lehar that is open sourced at https://github.com/darxtrix/lehar

(是也乎:

Find commits by authors in a git repo

$ git shortlog -s | cut -f1 | lehar
▇▁▁▁▁▁▁▂▃▁▁█▁▁▂▃▅▁▁▁▂▆▁▁▁▂▁▁▁▁▂▇▁▅▆▁▁▁▄▁▁█▁▁▂▁▂▁

还有这种操作?! )

Today the #DjangoTip will be about using select_related and prefetch_related to improve our queries performance. Note - Django developer do check out django newsletter - http://djangoweekly.com

好物

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

Service objects for Django

(是也乎:

还有这种操作需求?!

jsonschema2db-test=# select * from schm.root;
-[ RECORD 1 ]------------------------+-----------
id                                   | 1
loan_file_id                         | 1000000000
prefix                               |
loan__amount                         | 500000
subject_property__acreage            | 42
subject_property__address__latitude  | 43
subject_property__address__longitude |
subject_property__address_id         | 1

)

Generate tables dynamically from a JSON Schema and insert data.

Quick function to go from a dictionary of sets of (images, labels, feature vectors) to checkpoints that can be opened in Tensorboard.

(是也乎:

名字非常走心的工具.

TF 工具的工具... )

Simple PushTX server to push Bitcoin transactions via SMS.

(是也乎:

在 5G 时代用 2G 进行交易...只能说 区块链的生命是嗯哼的 )

ORM-queryable YAML fixtures for Django.

Reddit book bot.

(是也乎:

叕叕一个 bot

)

Create API contracts using Python.

(是也乎:

叕一个 RESTful 包装工具 )

A native web-based client for Slack.

(是也乎:

叕一个 Slack 周边工具..

)

PyPocketExplore is a CLI-based and web-based API to access Pocket Explore data. It can be used to collect data about the most popular Pocket items for different topics.

(是也乎:

叕一个 Pocket 公开数据工具... )

( ̄▽ ̄)

  • PyConChina2017 议题征集开始
    • 申报表单: https://jinshuju.net/f/2ag6QB

中国的PyCon大会已经组织了6年,在第7年PyCon大会之际,Python3已经成熟,比如Instagram迁移到了Python3。而人工智能方兴未艾,区块链、物联网、AR、VR、机器人等领域创新不断涌现。

本大会以“大数据和人工智能技术的创新应用”为主题,将由丰富的内容和议题组成,着重探讨如何使用Python技术进行大数据和人工智能的技术开发和最佳实践,并结合具体的产品和行业发展趋势,分享不同类型的应用、场景下的开发和运营经验。

...

今年PyConChina2017将在两个城市举办,上海是9月23日举办

  • 上海(约400人参加),预计7个主题演讲(每个40分钟),7个快速演讲(每个10分钟)。
  • 杭州(约200人参加),预计7个主题演讲(每个40分钟)

(是也乎:

结果立即在 CPyUG 列表中引发了各种嗯哼, 并有行者组织了议题问卷, 得到稍有不同的期待, 所以, 大会的举行真心得看坚持了. )

是也乎


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...

任何问题

随时邮件提问可也:
askdama@googlegroups.com

-->