Re: Hidden string formatting bug

2005-10-13 Thread Steve Holden
Tim Peters wrote: > [Echo] > >>I have been trying to figure out the problem with this string formatting: > > > [monstrous statement snipped] > > >>when it executes, I get this error: "inv argument required". > > > That shoud be "int", not "inv". > > >>I have checked and rechecked both the

Re: UI toolkits for Python

2005-10-13 Thread gsteff
I've used wxpython and pygtk, and have a strong preference for pygtk. wxpython has some advantages: it has better OSX support (widgets look native, and it doesn't require the installation of the Fink x server), and better win32 support (a few gtk widgets, such as menus, don't look quite native on g

Re: UI toolkits for Python

2005-10-13 Thread gsteff
Er, meant to say "In addition GTK itself is in the top tier of free software projects" -- http://mail.python.org/mailman/listinfo/python-list

Problem processing Chinese

2005-10-13 Thread Anthony Liu
I believe that topic related to Chinese processing was discussed before. I could not dig out the info I want from the mail list archive. My Python script reads some Chinese text and then split a line delimited by white spaces. I got lists like ['\xbc\xc7\xd5\xdf', '\xd0\xbb\xbd\xf0\xbb\xa2', '\

Re: Adding a __filename__ predefined attribute to 2.5?

2005-10-13 Thread Fredrik Lundh
Rune Strand wrote: > I've read a lot of your comments the last years. Your friendliness > always strikes me. terseness != unfriendlyness -- http://mail.python.org/mailman/listinfo/python-list

Re: UI toolkits for Python

2005-10-13 Thread Fredrik Lundh
> > However, Tkinter not most people's favorite, because the widgets look > > crude, they don't resemble the native widgets of any popular platform, > > and the widget set is somewhat limited. (given that the web interface is the new black, that's not much of an argument. tkinter with the right s

Re: Python's garbage collection was Re: Python reliability

2005-10-13 Thread Paul Rubin
[EMAIL PROTECTED] writes: > Folks, most common GC schemes have been tried as experiments over > the years. None have succeeeded, for various reasons. I think one > of the main reasons is that Python has to "play nice" with external > libraries, many of which weren't written with GC beyond malloc

Re: Setdefault bypasses __setitem__

2005-10-13 Thread Fredrik Lundh
Diez B. Roggisch wrote: > I rarely find things in python strange or named incorrectly, but this is > IMHO such a case - setdefault led me to think that using it would set a > default value to return for _future_ lookups of non-existant keys. That > semantics is known in e.g. ruby or java. > > I th

Re: ImportError: No module named dbm

2005-10-13 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > firstly i couldnt find the DBM module for python 2.3.5, trustix system and > i386 hardware platform. > so i downloaded gnu dbm for python 2.3.5 and i568( precisly, > python-gdbm-2.3.5-4tr.i586), simply assuming it could just work. > > but trying to install gives me the f

Help with cPickle for deserializing datetime.datetime instances

2005-10-13 Thread Mingus Tsai
Hello- please help with unpickling problem: I am using Python version 2.3.4 with IDLE version 1.0.3 on a Windows XPhome system. My problem is with using cPickle to deserialize my pickled arrays of datetime.datetime instances. The following is the code I have written: import cPickle, d

Re: A problem while using urllib

2005-10-13 Thread Johnny Lee
Steve Holden 写道: > Good catch, John, I suspect this is a possibility so I've added the > following note: > > """The Windows 2.4.1 build doesn't show this error, but the Cygwin 2.4.1 > build does still have uncollectable objects after a urllib2.urlopen(), > so there may be a platform dependency her

<    1   2   3