Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-10 Thread Alex Martelli
Anton Vredegoor <[EMAIL PROTECTED]> wrote: ... > You are not my superior (or even considered to be more succesfull) as > you seem to imply. Depends on who does the considering, I'm sure. If the considerer loves the English language, for example, a horrible mis-spelling such as "successfull" wi

Re: another docs problem - imp

2006-01-10 Thread rurpy
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > Turns out that you have to do > > >>> imp.find_module("mymod", ["./subdir"]) > > > > I saw not a hint of this in the docs. In fact > > they seem to say that the first (unworking) > > form *should* work. > > from the find_

Re: Change Gateway Programmatically

2006-01-10 Thread bonono
Godwin Burby wrote: > Dear Pythoneer, > I need to toggle the gateway ip of my windows xp machine quite > often due to some software requirements. I just want to know whether i > could do it programmatically using Python. > If so how? I am sure there must be some elegant python way but you

Re: Spelling mistakes!

2006-01-10 Thread Steve Holden
Terry Hancock wrote: [...] > > The ideal of "don't repeat yourself" seems to get > nudged out by "repeat yourself exactly once" when it's > really important to get it right. ;-) > I suppose most readers aren't old enough to remember the punch card days, when you would hand your work in on coding

Re: A bug for unicode strings in Python 2.4?

2006-01-10 Thread Thomas Moore
> Thomas Moore: > > u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32' > u.split() > > > > [u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'] > > > > > > I think u should get split. > > Where do you think "這是中文字串" should be split and why? Isn't a unicode string character by character? -Frank -- http

Re: ctypes & C++

2006-01-10 Thread Thomas Heller
[EMAIL PROTECTED] writes: > Thomas, > > Ctypes doesn't work to call arbitrary C++ code, is that correct? > > Skip Yes, that's correct. It doesn't do C++ name-(un)mangling, nor has it the C++ calling conventions. And so on... Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: A bug about unicode string in Python 2.4?

2006-01-10 Thread Steve Holden
Thomas Moore wrote: > Hi: > > Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32' u.split() > > [u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'] > >

Re: another docs problem - imp

2006-01-10 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > > from the find_module documentation: > > > > find_module( name[, path]) > > > > Try to find the module _name_ on the search path _path_. > > If _path_ is a list of directory names, each directory is > > searched for files /.../. Invalid names in th

Re: A bug for unicode strings in Python 2.4?

2006-01-10 Thread Fredrik Lundh
Thomas Moore wrote: > Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> u=u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32' > >>> u.split() > [u'\u9019\u662f\u4e2d\u6587\u5b57\u4e32'] > >>> > > I th

Re: String question - find all possible versions of a person's firstname

2006-01-10 Thread Nico Grubert
> This sounds like a homework problem. You might try splitting the name > at the e's, check the length of the resulting list and do that many > nested loops. This was my idea too but I am wondering if there are any scripts for tasks like this. Nico -- http://mail.python.org/mailman/listinfo/py

Re: A bug for unicode strings in Python 2.4?

2006-01-10 Thread Thomas Moore
Hi: Thanks. I'll write my own split(). Frank -- http://mail.python.org/mailman/listinfo/python-list

Re: File Paramaterized Abstract Factory

2006-01-10 Thread Fredrik Lundh
Charles Krug wrote: > What I'd like is to do something like this: > > factoryFile = sys.argv[1] # we assume that argv[1] implements a > # correct ThingMaker interface. sys.argv[1] is a string, so I assume that you meant to say that the module named by argv[1] implements

Re: Change Gateway Programmatically

2006-01-10 Thread Godwin Burby
Well netsh turned out to be the perfect solution for my problem(even though doing it in python would have given me some kicks). I managed it with two .bat files for toggling the gateway ips. Thank you friend. -- http://mail.python.org/mailman/listinfo/python-list

Re: Change Gateway Programmatically

2006-01-10 Thread bonono
Godwin Burby wrote: > Well netsh turned out to be the perfect solution for my problem(even > though doing it in python would have given me some kicks). I managed it > with two .bat files for toggling the gateway ips. Thank you friend. there is os.system/os.open* if you want to put python in the e

Re: Change Gateway Programmatically

2006-01-10 Thread Fredrik Lundh
Godwin Burby wrote: > I need to toggle the gateway ip of my windows xp machine quite > often due to some software requirements. I just want to know whether i > could do it programmatically using Python. > If so how? os.system("route ...") could work. for details on the route command, use

<    1   2   3