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
"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_
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
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
> 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
[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
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']
>
>
[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
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
> 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
Hi:
Thanks. I'll write my own split().
Frank
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
201 - 215 of 215 matches
Mail list logo