摘要: http://visualgo.net/ http://sorting.at/ 阅读全文
posted @ 2016-05-18 23:45 zengkefu 阅读(186) 评论(0) 推荐(0)
摘要: http://www.wklken.me/posts/2015/09/29/python-source-gc.html http://www.wklken.me/archives.html https://github.com/wklken/stackoverflow-py-top-qa 阅读全文
posted @ 2016-05-18 23:17 zengkefu 阅读(236) 评论(0) 推荐(0)
摘要: Exploring Python Code Objects https://late.am/post/2012/03/26/exploring-python-code-objects.html Inspired by David Beazley's Keynote at PyCon, I've be 阅读全文
posted @ 2016-05-18 22:28 zengkefu 阅读(302) 评论(0) 推荐(0)
摘要: JUNE 28TH, 2014Tweet This article describes how Python string interning works in CPython 2.7.7. A few days ago, I had to explain to a colleague what t 阅读全文
posted @ 2016-05-18 22:26 zengkefu 阅读(306) 评论(0) 推荐(0)
摘要: Why Python is Slow: Looking Under the Hood https://jakevdp.github.io/blog/2014/05/09/why-python-is-slow/ MAY 09, 2014 We've all heard it before: Pytho 阅读全文
posted @ 2016-05-18 22:21 zengkefu 阅读(276) 评论(0) 推荐(0)
摘要: http://www.laurentluce.com/posts/python-integer-objects-implementation/ Python integer objects implementation May 15, 2011 This article describes how 阅读全文
posted @ 2016-05-18 22:15 zengkefu 阅读(219) 评论(0) 推荐(0)
摘要: Python dictionary implementation http://www.laurentluce.com/posts/python-dictionary-implementation/ August 29, 2011 This post describes how dictionari 阅读全文
posted @ 2016-05-18 22:13 zengkefu 阅读(350) 评论(0) 推荐(0)
摘要: http://www.laurentluce.com/posts/python-string-objects-implementation/ Python string objects implementation June 19, 2011 This article describes how s 阅读全文
posted @ 2016-05-18 22:03 zengkefu 阅读(397) 评论(0) 推荐(0)
摘要: 对象(Objects)是python中数据的抽象,python中所有的数据均可以用对象或者是对象之间的关系来表示。每个对象均有标识符(identity)、类型(type)、值(value)。 标识符。对象一旦创建,那么它的标识符就不会改变,可以把标识符看作对象在内存中的地址。is 操作可以用来比较两 阅读全文
posted @ 2016-05-18 21:53 zengkefu 阅读(820) 评论(0) 推荐(0)
摘要: http://my.oschina.net/leejun2005/blog/145911 http://www.cnblogs.com/lulipro/p/5060163.html http://www.cnblogs.com/restran/category/331095.html 阅读全文
posted @ 2016-05-18 21:47 zengkefu 阅读(243) 评论(0) 推荐(0)
摘要: 上个月看了篇文章 “SAVING 9 GB OF RAM WITH PYTHON’S __SLOTS__”,原来Python也有类似结构体的东东。拖了一个月才写这篇,是因为太久没看python源码而生疏了,中间又捣鼓了一下tmux神马的。简单的说,slots提供了一种强制声明对象属性的方法。如果在类 阅读全文
posted @ 2016-05-18 21:43 zengkefu 阅读(2028) 评论(0) 推荐(0)
摘要: Python基础教程之List对象 时间:2014-01-19 来源:服务器之家 投稿:root 1、PyListObject对象typedef struct { PyObject_VAR_HEAD PyObject **ob_item; Py_ssize_t allocated;} PyListO 阅读全文
posted @ 2016-05-18 21:34 zengkefu 阅读(2804) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/balabalamerobert/article/category/168910 阅读全文
posted @ 2016-05-18 20:56 zengkefu 阅读(186) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/wang_yb/tag/linux-kernel/ 阅读全文
posted @ 2016-05-18 15:54 zengkefu 阅读(171) 评论(0) 推荐(0)
摘要: C++的new与malloc的关系 小实验: #include <stdio.h>#include <stdlib.h>#include <unistd.h>int main(){ int *p1 = (int*)malloc(4); int *p2 = new int; int *p3 = (in 阅读全文
posted @ 2016-05-18 15:13 zengkefu 阅读(369) 评论(0) 推荐(0)