
Python
文章平均质量分 82
iteye_13882
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python metaclass
the base article is available here: http://stackoverflow.com/questions/100003/what-is-a-metaclass-in-python to understand the metaclass in Python, there is some background that you should be ...原创 2012-07-02 13:23:28 · 261 阅读 · 0 评论 -
Use of Python metaclass I - __getattr__ for static/class variable
In my previous post, I disussesed with the reader the concept of metaclass and its internals. this post is inspired from this post from stackoverflow. In this post, I will visit one of the us...原创 2012-07-02 14:25:24 · 141 阅读 · 0 评论 -
Use of Python metaclass II - Python Enumeration
In my previous post, I disussesed with the reader the concept of metaclass and its internals. and in following post one usage of the python metaclass is discussed. Today another use of the metaclass w...原创 2012-07-02 15:00:34 · 173 阅读 · 0 评论 -
python - get the modification time and creation time of a file
as in Unix, you know that the creation time is marked as the creation time of the inode, while the m time (so called modification time) is also the time to the inode. (creation of inode happens when y...原创 2012-09-12 12:12:14 · 162 阅读 · 0 评论 -
Python Format String Specification
Since it is very common that you will deal with the string format, so I guess it is good to have some references of somehow that you can quickly look up. It desire a page of its own. Basically the...原创 2012-06-01 17:38:40 · 420 阅读 · 1 评论 -
Python Initialise a list to a specific length
Below show some tricks that you can play to create a list of certain size def main(): check(5, '''/path/to/CommandLine/CommandLine.exe''', ">null 2>&1")# for i, v...原创 2012-06-01 18:28:41 · 154 阅读 · 0 评论 -
Python subprocess example1
This article is based on the official document on the subprocess module. you can find the article on subprocess module in this link: http://docs.python.org/library/subprocess.html#module-subprocess...原创 2012-06-04 15:49:06 · 234 阅读 · 0 评论 -
python defining functions and calling functions
Python actually allow very flexible syntax of defining functions in terms of the argument it also provide very flexible argument in terms of calling the functions. the references material is the c...原创 2013-04-02 16:19:41 · 187 阅读 · 0 评论