PIL on MacOS

2006-07-29 Thread kernel1983
I was trying to build PIL and pygame from the source on the MacOS. But when I typed 'sudo python setup.py install', it gives error msg : gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -D

Re: Looking for a text file based wiki system written in Python

2006-08-14 Thread kernel1983
The base of moinmoin is called piki.It provides the simplest functions as a wiki system And there are lots of other wiki system based on piki. If I try to developed one,I'll make the text data compatible with compatible. Jack wrote: > Thanks! Because it was so well known, I thought it was databas

Re: PIL show moves focus

2006-06-12 Thread kernel1983
Is the console necessary? if not, you can easily disable the console by rename the ext to .pyw [EMAIL PROTECTED] wrote: > Hi! > > I have an application where images (jpeg) have to be annotated by an > operator. I use PIL like: > > import Image > im = Image.open(Path) > im.show() > raw_input(Path +

curses module bug in windows python?

2006-06-13 Thread kernel1983
when I type command below in windows python: import curses it gives the error msg! It can't find _curses.pyd Is this a bug? -- http://mail.python.org/mailman/listinfo/python-list

how can i write a hello world in chinese with python

2006-12-12 Thread kernel1983
I'm try to build a bundle on OS X, so I write a simple python script for a test: #!/usr/bin/env python import EasyDialogs EasyDialogs.Message("Hello,Mac!") This runs OK,but when I try to replace "Hello,Mac!" with chinese, it can't be display rightly. Then I tried some way else: #!/usr/bin/env p

Re: how can i write a hello world in chinese with python

2006-12-12 Thread kernel1983
MAIL PROTECTED]> wrote: > try unicode? > > "kernel1983 写道: > " > > > I'm try to build a bundle on OS X, so I write a simple python script > > for a test: > > > #!/usr/bin/env python > > import EasyDialogs > > EasyDialogs.Message("Hello,Ma

Re: how can i write a hello world in chinese with python

2006-12-16 Thread kernel1983
> On 12 Dec 2006 23:40:41 -0800, "kernel1983" <[EMAIL PROTECTED]> > > declaimed the following in gmane.comp.python.general: > > > > and I tried unicode and utf-8 > > > I tried to both use unicode&utf-8 head just like "\xEF\xBB\xBF" and not >

Why can't easy_install Django

2007-06-12 Thread kernel1983
I look it up in PyPI There are info about Django: Package Score Description Django096 0.96 6 Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. DjangoPaste 0.0 6 Integration of Python Paste and Django TurboDjango 0.95w2 6 Django template for

About Pywin32's invoke

2007-10-24 Thread kernel1983
By reading the doc of pywin32 we can invoke COM like: o = win32com.client.Dispatch("Excel.Application") but is it possible to invoke some GUID directly? If COM was going to be invoked by python, must it support IDispatch? -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I create a linked list in Python?

2007-01-16 Thread kernel1983
Every language has its own way to do the business! Python has a more abstract data type as the common tools. Just do things in pythonic way! On 1月17日, 上午9时55分, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Tuesday 16/1/2007 17:07, Dongsheng Ruan wrote: > > >Thanks for your kindly help. > >I am

How can I write code using FP

2007-01-16 Thread kernel1983
In Function Program,Language can use like this: define a function: f = lambda x,y:x,y then we use f to define another function: f2 = f(1) the f2 should equal to: f2=lambda y:1,y we should be able call f2 with one parameter:f2(2) just return 1,2 but how can I implement the characteristic in Pyth

Re: How can I write code using FP

2007-01-16 Thread kernel1983
yeah! that's easy! althought no so clear a = lambda x,y:(x,y) b = lambda y:a(1,y) a(1,2) (1,2) b(2) (1,2) On 1月17日, 下午12时10分, Alejandro Dubrovsky <[EMAIL PROTECTED]> wrote: > kernel1983 wrote: > > In Function Program?Language can use like this: > > > define a fun

Re: huge amounts of pure Python code broken by Python 2.5?

2007-02-08 Thread kernel1983
On Feb 9, 10:29 am, "Klaas" <[EMAIL PROTECTED]> wrote: > On Feb 6, 11:07 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > > > On Tue, 06 Feb 2007 08:40:40 -0700, Steven Bethard <[EMAIL PROTECTED]> > > wrote: > > >Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > > > > Huge amounts of my pure Py