Python论坛  - 讨论区

标题:[python-chinese] Re: python-chinese Digest, Vol 30, Issue 231

2006年06月26日 星期一 17:39

hou chappie chappiehou at gmail.com
Mon Jun 26 17:39:07 HKT 2006

haha

On 6/26/06, python-chinese-request at lists.python.cn
<python-chinese-request at lists.python.cn> wrote:
> Send python-chinese mailing list submissions to
> 	python-chinese at lists.python.cn
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://python.cn/mailman/listinfo/python-chinese
> or, via email, send a message with subject or body 'help' to
> 	python-chinese-request at lists.python.cn
>
> You can reach the person managing the list at
> 	python-chinese-owner at lists.python.cn
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of python-chinese digest..."
>
>
> Today's Topics:
>
>    1. Re: memcache???? (limodou)
>    2. Python UNIT Test ?????????? (netkiller)
>    3. Re: memcache???? (Bruce Wang)
>    4. Re: ??????? ( Dreamingk(??) )
>    5. Re: ???????????? ( Dreamingk(??) )
>    6. Re: __init__.py (Xiao Lei Wu)
>    7. Re: ??????? (Samuel Lee)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 26 Jun 2006 11:47:30 +0800
> From: limodou <limodou at gmail.com>
> Subject: Re: [python-chinese] memcache????
> To: python-chinese at lists.python.cn
> Message-ID:
> 	<505f13c0606252047j4185fd7fne2465e7cf870bbe7 at mail.gmail.com>
> Content-Type: text/plain; charset=GB2312; format=flowed
>
> On 6/26/06, chen arthur <agakong at gmail.com> wrote:
> > memcache里是不是只能存放字符串数据,如果我需要存取一个list对象,
> > 是不是要先把它序列化,如果是,怎么做呢?
> >
> 查一下pickle文档。
>
> --
> I like python!
> My Blog: http://www.donews.net/limodou
> My Django Site: http://www.djangocn.org
> NewEdit Maillist: http://groups.google.com/group/NewEdit
>
> ------------------------------
>
> Message: 2
> Date: Mon, 26 Jun 2006 11:49:07 +0800
> From: "netkiller" <openunix at 163.com>
> Subject: [python-chinese] Python UNIT Test ??????????
> To: "python-chinese" <python-chinese at lists.python.cn>
> Message-ID: <00f401c698d3$7bcfdfa0$3101320a at achievo.com>
> Content-Type: text/plain; charset="gb2312"
>
> 我想用unittest写下面程序.
>
> import re
> lines = ['xover -100\r\n','xover 10-10\r\n','xover 10-','XOVER 10-100\r\n',
>          'mode ','mode reader\r\n','mode stream\r\n','mode case\r\n',
>          'group ','Group 10-10\r\n','GROUP cn.test\r\n','gRoUp
> cn.t1,cn.t2\r\n',
>          'list','list ','list active',
>          'newgroups aaa bbb gmt','newgroups 11','newgroups 060606
> 121212','newgroups 060606 121212 GMT',
>          '',''
>          ]
> command = (r'^mode [reader|stream]',
>            r'^list [active|active.times|newsgroups|subscriptions]',
>            r'^xover [0-9]+-[0-9]+',
>            r'^group .+',
>            r'^newgroups [0-9]+ [0-9]+ GMT'
>            )
> #yymmdd hhmmss [GMT]
> for com in command:
>     digs = re.compile(com,re.IGNORECASE)
>     for line in lines:
>         if digs.match(line):
>             print line,
>
> --------------------------------------------
> netkiller
> 摄影,户外,无线电
> 中国无线电运动协会
> http://netkiller.hikz.com
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/x-pkcs7-signature
> Size: 2959 bytes
> Desc: not available
> Url :
> http://lists.exoweb.net/pipermail/python-chinese/attachments/20060626/52221eb3/smime-0001.bin
>
> ------------------------------
>
> Message: 3
> Date: Mon, 26 Jun 2006 11:56:28 +0800
> From: "Bruce Wang" <number5 at gmail.com>
> Subject: Re: [python-chinese] memcache????
> To: python-chinese at lists.python.cn
> Message-ID:
> 	<8d581cfd0606252056u6d5aee89sc727233ad11fcc82 at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On 6/26/06, chen arthur <agakong at gmail.com> wrote:
> >
> > memcache閲屾槸涓嶆槸鍙兘瀛樻斁瀛楃涓叉暟鎹紝濡傛灉鎴戦渶瑕佸瓨鍙栦竴涓猯ist瀵硅薄锛�>
> 鏄笉鏄鍏堟妸瀹冨簭鍒楀寲锛屽鏋滄槸锛屾€庝箞鍋氬憿锛�>
> >
> 涓嶇敤锛岀洿鎺ユ妸object 涓㈣繘鍘诲氨琛屻€俴ey鐨勮瘽鍊掓槸閫氬父閮界敤string
>
>
> --
> simple is good
> http://brucewang.net
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.exoweb.net/pipermail/python-chinese/attachments/20060626/b7b5ad27/attachment.htm
>
> ------------------------------
>
> Message: 4
> Date: Mon, 26 Jun 2006 12:06:33 +0800
> From: " Dreamingk(??) " <dreamingk at gmail.com>
> Subject: Re: [python-chinese] ???????
> To: python-chinese at lists.python.cn
> Message-ID:
> 	<9ac6323d0606252106i614015a0y3c718de966d87da3 at mail.gmail.com>
> Content-Type: text/plain; charset=GB2312; format=flowed
>
> 老大,终于出现了。
>
> On 6/26/06, Robert Chen <search.pythoner at gmail.com> wrote:
> > 哈哈,萍踪侠影,再现江湖~~
> >
> >
> > --
> > Robert
> > Python源码剖析——http://blog.donews.com/lemur/
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to
> > python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request at lists.python.cn
> > Detail Info:
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
>
> ------------------------------
>
> Message: 5
> Date: Mon, 26 Jun 2006 12:11:52 +0800
> From: " Dreamingk(??) " <dreamingk at gmail.com>
> Subject: Re: [python-chinese] ????????????
> To: python-chinese at lists.python.cn
> Message-ID:
> 	<9ac6323d0606252111w6412294ma4a8190ba4cb03d1 at mail.gmail.com>
> Content-Type: text/plain; charset=GB2312; format=flowed
>
> 重视freebsd 可以找黄冬和delphij
>
> On 6/26/06, 万力 <wanliyou at gmail.com> wrote:
> >
> > 要是早看到neo的好文就好了,导师啊,明灯啊,orz。呵呵。
> > 人有多大"蛋",地有多大产! :-)
> >
> >
> > On 6/26/06, Ericzhao82 <ericzhao82 at gmail.com> wrote:
> > >
> >
> >      我在现在工作2年,知道2句话
> > 一句是老板亲口跟我说的"我就是不讲理"
> >                - -出现在我总结工作成绩,申请加薪时
> > 第二句,是我自己的醒悟
> >
> > 这个公司根本不重视技术,做技术特别是我的FreeBSD系统管理、邮件维护工作、根本不被重视、尊重!
> >
> > -_-||
> >
> > 這也是我计划找一家重视FreeBSD/Linux,能提供Python、PHP实做公司的原因
> >
> >
> >
> > 在06-6-26,麦田守望者 <qcxhome at gmail.com> 写道:
> > > neo兄的话有道理
> >
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to
> > python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request at lists.python.cn
> > Detail Info:
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> >
> >
> >
> >
> > --
> > …………………………………………
> >                Ericzhao
> >
> > Email:   Ericzhao82 at gmail.com
> > MSN:    Ericzhao_82 at hotmail.com
> > _______________________________________________
> >
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to
> > python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request at lists.python.cn
> > Detail Info:
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> >
> > --
> > --==Best Regards From WanLi==--
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to
> > python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request at lists.python.cn
> > Detail Info:
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
>
> ------------------------------
>
> Message: 6
> Date: Mon, 26 Jun 2006 12:16:07 +0800
> From: Xiao Lei Wu <xiaoleiw at cn.ibm.com>
> Subject: Re: [python-chinese] __init__.py
> To: python-chinese at lists.python.cn
> Message-ID:
> 	<OF18F08EFC.56F95269-ON48257199.00174546-48257199.00173699 at cn.ibm.com>
> Content-Type: text/plain; charset="gb2312"
>
>
> python-chinese-bounces at lists.python.cn 写于 2006-06-23 19:36:59:
>
> > On 6/23/06, Zoom. Quiet <zoom.quiet at gmail.com> wrote:
> > > On 6/23/06, Xiao Lei Wu <xiaoleiw at cn.ibm.com> wrote:
> > > >
> > > >
> > > >
> > > > 你们一般都在这个文件里面写什么?
> > > 一般是空着,除非有特殊任务,自动将什么文件加入环境字典什么的,
> > > 很多软件都是这么作的,limodou 的 newEdit 也是这么来将 mix 和 plugin 组
> > 件加入到对象树皮中的说^^
> > >
> > 因为__init__.py是在导入一个包时要执行的,因此写不写东西要看设计。比如
> > 我有一个包,里面有许多的模块,一种使用方式是导入包就自动导入相关的子
> > 模块,这样可以在__init__.py中将子模块导进来。还有一种是通过包来找子
> > 模块,不需要简化的方式,这样包只是起来一个组织的作用,因此__init__.
> > py可以是空的。
> >
> > 怎么用都行。象django的许多包就一个__init__.py文件,工作都在这个文件
> > 中,没有别的东西了。
>
> 这样不大好,像SPE的主__init__.py做得就比较好:
> ##import info
> ##INFO=info.copy()
> ##INFO['description']=\
> ##"""This is the main spe application."""
> ##__doc__=INFO['doc']%INFO
>
> def main():
>     import SPE
>
> if __name__ == '__main__': main()
>
> > --
> > I like python!
> > My Blog: http://www.donews.net/limodou
> > My Django Site: http://www.djangocn.org
> > NewEdit Maillist: http://groups.google.com/group/NewEdit
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.exoweb.net/pipermail/python-chinese/attachments/20060626/f2a91f1e/attachment.html
>
> ------------------------------
>
> Message: 7
> Date: Mon, 26 Jun 2006 12:22:20 +0800
> From: "Samuel Lee" <samuel.d.lee at gmail.com>
> Subject: Re: [python-chinese] ???????
> To: python-chinese at lists.python.cn
> Message-ID:
> 	<bf9a78a20606252122mc6ef540wc98e160cc7e467f5 at mail.gmail.com>
> Content-Type: text/plain; charset=GB2312; format=flowed
>
> 几百年没冒过泡了,我也来泡泡一把
>
> 在 06-6-26,Dreamingk(天成)<dreamingk at gmail.com> 写道:
> > 老大,终于出现了。
> >
> > On 6/26/06, Robert Chen <search.pythoner at gmail.com> wrote:
> > > 哈哈,萍踪侠影,再现江湖~~
> > >
> > >
> > > --
> > > Robert
> > > Python源码剖析——http://blog.donews.com/lemur/
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese at lists.python.cn
> > > Subscribe: send subscribe to
> > > python-chinese-request at lists.python.cn
> > > Unsubscribe: send unsubscribe to
> > > python-chinese-request at lists.python.cn
> > > Detail Info:
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> > >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
>
> ------------------------------
>
> _______________________________________________
> python-chinese mailing list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>
> End of python-chinese Digest, Vol 30, Issue 231
> ***********************************************
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号