心血来潮,实现了一个 django 的 url dispatcher,比想象中简单多了。http://djangodispatcher.googlecode.com/svn/trunk/mapper.pyhttp://djangodispatcher.googlecode.com/svn/trunk/test.py实际实现功能的代码才2、30行,功能基本完整,包括分层次的url配置,和发生异常时帮助调试用的一些信息。PS:发现最近爱上了 Test Driven.
答案很简单:Test Driven。哈哈,这个(http://code.google.com/p/pylifegame/)就是好例子!醉了,不多说了,自己看去,我要睡觉去了,嗯 ...
YiYi is a text editor written and extensible in Haskell. The goal of Yi is to provide a flexible, powerful and correct editor core dynamically scriptable in Haskell.
Pickle: An interesting stack language原来 pickle 本身就是就是一个微型的基于栈的语言,呵呵,有点意思。研究一下 pickle.py 和 pickletools.py ,可以看到更细节的东西。
Python 3000 进度报告也可以从 guido 的中文 blog 看到:http://blog.csdn.net/gvanrossum/archive/2007/06/20/1658829.aspx
Python 3000 Status Update (Long!) by Guido van Rossum """SummaryHere's a long-awaited update on where the Python 3000 project stands. We're looking at a modest two months of schedule slip, and many exciting new features. I'll be presenting this in person several times over the next two months."""
http://picasaweb.google.com/yi.codeplayer/070608
看 SQLAlchemy 自带的 zblog 的例子,可以看到 SQLAlchemy 一些非常有用的特性。文章相关评论数统计比如显示文章列表的同时我们希望获得相关文章的评论数,如果是用 django 那就只能放弃 ORM 的好处自己去执行 sql 语句了,否则就只会导致 n+1 条 SQL 语句的执行。在 SQLAlchemy 中你可以把任意的 select 语句映射到一个 class ,这样就可以用一条 SQL 语句搞定,还能获得 ORM 的好处,下面是原封不动拷过来的代码(只调整了下格式): # Post mapper, these are posts within a blog. ...
multitaskmultitask allows Python programs to use generators (aka coroutines) to perform cooperative multitasking and asynchronous I/O. Applications written using multitask consist of a set of cooperating tasks that yield to a shared task manager whenever they perform a (potentially) blocking operati ...
Polymorphic Associations with SQLAlchemySQLAlchemy 老大展示怎么用 sqlalchemy 实现 rails 的 Polymorphic Associations 顺便看了下 Rails 所谓Polymorphic Associations 的介绍,才发现其实就是我很早就介绍过的 django 的 content-type app 所干的事情,app 就是插件的意思。
huangyiiiiii
搜索本博客
最近加入圈子
存档
最新评论