> There is a nice modul called "BtK" at
> http://home.student.utwente.nl/g.v.berg/btk/
> Has someone a link for btk-python on windows?
Hey spooky,
I haven't seen a Windows version of BtK anywhere.
Have you seen these alternative wrappers around libpcap? Could they
help you out?
* pylibpcap: http
gel wrote:
> >
> > Do you have any docs that might help me?
the only information i have is from using help(wmi.WMI) and from the
examples on Tim Golden's website
>
>
> What would be the best way to watch for multiple pieces of software at
> the same time, eg. watching for the start up of calc.ex
>> I will have to install lighttpd or other web servers.
>
> do that.
>
> If all you need is a webserver there's little reason to have it in
> python. Just use one of the several high quality open source webservers.
If it is a Python web server, it would be nice to extend it by putting code
right
"Ray Tomes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> My package will have the following capabilities:
> 1. Able to read time series data in a variety of formats.
> 2. Able to create, manipulate and save time series files.
> 3. Able to do vector arithmetic on time series, incl
"Antoon Pardon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> And if Nested variables are harmfull,
I don't know if anyone said that they were, but Guido obviously does not
think so, or he would not have added them. So skip that.
> what is then the big difference between rebi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Jul 6, 2006, at 1:56 PM, Brad Knowles wrote:
> Barry said:
>
>> We should certainly do everything we can to make sure that Richard's
>> ht:dig solution is nearly trivial to integrate, but I'm not sure we
>> should distribute it with Mailman.
>
> So
Hi Ray,
As a first step you might want to look at numpy/scipy/matplotlib
numpy (numpy.scipy.org) provides the underlying data structures (array
and matrices among other things) you require. This will handle all
your vector stuff, reading/writing to and from files, "loop macros",
etc.
scipy (www.
All,
I couldn't get my xml-rpc script to work via a corporate proxy.
I noticed a few posts asking about this, and a very good helper script by jjk on
starship. That script didn't work for me, and I think its a little old -- but it
was very helpful to figure it out.
The below script is a replacem
win32com.client.DispatchEx should create a new instance.
Roger
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi there, I am trying to launch a program called AmiBroker using the
> command:
>
> AB = win32com.client.Dispatch("Broker.Application")
>
> However, I have a dual-co
No, I'm not using any accelerator. The code is extremely simple (from
toofpy):
# XML-RPC test
import xmlrpclib
srv = xmlrpclib.Server('http://localhost:4334/RPC2/greeting')
print srv.greeting('you', 5)
# SOAP test
import SOAPpy
srv = SOAPpy.SOAPProxy('http://localhost:4334/SOAP/greeting')
print
>> I will have to install lighttpd or other web servers.
>
> do that.
>
> If all you need is a webserver there's little reason to have it in
> python. Just use one of the several high quality open source webservers.
lighttpd is a great web server. I just didn't want to bother download the
source,
To be honest, I'm not sure what kind of performance I can get even
with medusa or twisted. I assume it won't be as fast as servers
written in C/C++ and use async sockets, but should be much better than
multi-processed or multi-threaded servers in written in Python.
Not sure if anyone else has an i
Hi Folks
I am an old codger who has much experience with computers
in the distant past before all this object oriented stuff.
Also I have loads of software in such languages as FORTRAN
and BASIC, QBASIC etc that is very useful except that it
really doesn't like to run on modern operating systems a
bruce wrote:
> hi...
>
> i have the basic code to fetcha url/web page. however, i'm trying to fetch a
> page that uses a FORM/POST. has anyone done this, i've tried a few times
> without success.
>
> i've analyzed the data stream using Firefox/Livehttpheaders to get the HTTP
> stream.. but i'm doi
Hi there, I am trying to launch a program called AmiBroker using the
command:
AB = win32com.client.Dispatch("Broker.Application")
However, I have a dual-core CPU and would like to launch two instances
of AmiBroker. I know it is possible to run two instances simultaneously
since it is easy to do m
hi...
i have the basic code to fetcha url/web page. however, i'm trying to fetch a
page that uses a FORM/POST. has anyone done this, i've tried a few times
without success.
i've analyzed the data stream using Firefox/Livehttpheaders to get the HTTP
stream.. but i'm doing something wrong, and can'
gel wrote:
> placid wrote:
>
> > gel wrote:
> > > placid wrote:
> > >
> > > > gel wrote:
> > > > > gel wrote:
> > > > >
> > > > > > Below is how it is down with vbscript. What is the best way to
> > > > > > convert
> > > > > > this to python?
> > > > > >
> > > > > > strComputer = "."
> > > > >
On Thu, 06 Jul 2006 06:39:38 -0700, Johhny wrote:
> Hello,
>
> I am currently writing some python code which requires the use of a
> password. Currently I am using the raw_input function to take the users
> input in and use it. One problem with that is the password is displayed
> in clear text on
for a in range(2, len(foo)): print a
or maybe you need
for a in range(1, len(foo)): print a
?
York
bruce wrote:
> hi..
>
> basic foor/loop question..
>
> i can do:
>
> for a in foo
> print a
>
> if i want to do something like
> for a, 2, foo
> print foo
>
> where go from 2, to foo
Les Schaffer wrote:
> errr, THIS GPG module: http://www.historical-id.info/files/python/GPG.py
sigh, actually its updated version:
http://trac.t7a.org/isconf/browser/trunk/lib/python/isconf/GPG.py
looks like i can use the subprocess module straight instead of the
PopenHI, except for the complica
Les Schaffer wrote:
> Does anyone know if the GPG.py module
errr, THIS GPG module: http://www.historical-id.info/files/python/GPG.py
Les
--
http://mail.python.org/mailman/listinfo/python-list
Hi:
Does anyone know if the GPG.py module has been updated to use the
subprocess module from python 2.4. My web searches find only the
original GPG module that requires a fork() -- according to my quick
tests anyway. i was about to adapt this to use subprocess, for Windows,
but thought i would ask
SuperHik:
> I did ofc, but I noticed something strange...
> *my* socket module really doesn't have SSL object,
> even tho it's listed in the documentation...
> (not the online docs, but docs that came with my Python version)
> ffs how can that be!
You are probably using ActiveState's distribu
placid wrote:
> gel wrote:
> > placid wrote:
> >
> > > gel wrote:
> > > > gel wrote:
> > > >
> > > > > Below is how it is down with vbscript. What is the best way to
> > > > > convert
> > > > > this to python?
> > > > >
> > > > > strComputer = "."
> > > > > Set objWMIService = GetObject("winmgm
> Except that in the OP's example foo was a sequence, not an
> integer. I think.
Yes, possibly. But then, what's "from 2 to foo"?
this way it might be
for a in [2] + foo:
print a
--
http://mail.python.org/mailman/listinfo/python-list
On 2006-07-06, Daniel Haus <[EMAIL PROTECTED]> wrote:
>> i can do:
>>
>> for a in foo
>> print a
>>
>> if i want to do something like
>> for a, 2, foo
>> print foo
>>
>> where go from 2, to foo..
> just do:
>
> for a in range(2, foo+1):
> print a
Except that in the OP's example foo
'ppreaciate the answers
duh...
-bruce
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf
Of Daniel Haus
Sent: Thursday, July 06, 2006 2:02 PM
To: python-list@python.org
Subject: Re: for loop question
just do:
for a in range(2, foo+1):
print a
range(a
> Untestetd, but I'm pretty sure something like this will do.
> If you need more control, and on windows, try pywinauto
I do need it to run on Windows. I'll check out pywinauto. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hi Nick!
This is much better than the kludge job I did - Thanks for the help!!
Nick Craig-Wood wrote:
> rh0dium <[EMAIL PROTECTED]> wrote:
> > I have a problem with putting a job in the background. Here is my
> > (ugly) script which I am having problems getting to background. There
> > are
just do:
for a in range(2, foo+1):
print a
range(a, b) gives [a, a+1, a+2, ..., b-2, b-1]
bruce schrieb:
> hi..
>
> basic foor/loop question..
>
> i can do:
>
> for a in foo
> print a
>
> if i want to do something like
> for a, 2, foo
> print foo
>
> where go from 2, to foo..
>
>
On 7/6/06, bruce <[EMAIL PROTECTED]> wrote:
hi..basic foor/loop question..i can do: for a in foo print aif i want to do something like for a, 2, fooprint foowhere go from 2, to foo..i can't figure out how to accomplish this...
can someone point me to how/where this is demonstrated...You might
John,
To see where Python is looking for libraries open an interactive Python
prompt and type
>>> import sys
>>> print sys.path
You will get a list of paths where Python will look for modules. Also
check to see if you have the PYTHONPATH environment variable set. If
/usr/lib is not in the path list
hi..
basic foor/loop question..
i can do:
for a in foo
print a
if i want to do something like
for a, 2, foo
print foo
where go from 2, to foo..
i can't figure out how to accomplish this...
can someone point me to how/where this is demonstrated...
found plenty of google for for/loo
mbstevens wrote:
> In such a case you may need to make the page
> into one string to search if you don't want to use some complex
> method of tracking state with variables as you move from
> string to string.
In general it's a very hard problem to do stateful regexes.
I recall something from las
How can we find that it is not using the right version of Python ?
John Salerno wrote:
> [EMAIL PROTECTED] wrote:
> > Error message "cannot find wx"
> >
> > infact I have wxpython in /usr/lib/
> >
> > I installed it using the rpms given on the wxPython website. Do I need
> > to set some path or so
I figured it out. Is there any way to delete your own posts?
Brendan Fay wrote:
> Dear Someone:
>
> I have written a script that accesses the googleAPI through
> pygoogle and saves each of the ten documents as a .txt file by using a
> specific function for each respective file type (.doc, .p
[EMAIL PROTECTED] wrote:
> Error message "cannot find wx"
>
> infact I have wxpython in /usr/lib/
>
> I installed it using the rpms given on the wxPython website. Do I need
> to set some path or something.
Could it be that it is trying to use another, pre-installed version of
Python -- one whic
Hi guys,
I have got some strange system behaviors regarding i/o delays in socket
in python, here's the details:
I'm writing a web proxy like program that intercepts and redirects
requests from clients to my tomcat server,
this proxy is written in python, and i'm starting a new thread to
handle (red
Error message "cannot find wx"
infact I have wxpython in /usr/lib/
I installed it using the rpms given on the wxPython website. Do I need
to set some path or something.
Nick Vatamaniuc wrote:
> "cannot get it to work." is pretty broad, you are more likely to get
> help if you post an error messa
Gregory Piñero wrote:
> I was just idley curious on what it would take to make a web plug-in
> for Pygame. I'm picturing it working the way my browser currently
> shows flash games. Is such an idea even possible? Has anyone
> attempted this?
Not a plugin but at Europython the PyPy crew presente
"cannot get it to work." is pretty broad, you are more likely to get
help if you post an error message or any other details.
[EMAIL PROTECTED] wrote:
> Hi,
>
> I wrote a small app using wxPython on a Linux distro called Ubuntu (it
> is a debain derivative). I ran it on windows and it just worked
>
Hi,
I wrote a small app using wxPython on a Linux distro called Ubuntu (it
is a debain derivative). I ran it on windows and it just worked
perfectly. Now, when I am trying to install the same app on a different
Linux Distro (Red Hat Linux) I cannot get it to work. This Red Hat
variant is a customi
On Thu, 06 Jul 2006 19:41:32 +, elmo wrote:
> I guess it could be a new MySQLdb issue causing breakage.
>
Replying to self, this is *very* close to the problem:
http://sourceforge.net/tracker/index.php?func=detail&aid=1438913&group_id=22307&atid=374932
--
http://mail.python.org/mailman/lis
meridian a écrit :
> You mentioned earlier that
> "Modifying globals from within a function is usually a very bad idea."
>
> Most of my app consists of functions or class/object functions, that's
> all I do in OOP.
> Did you mean that modifying globals from anywhere is bad?
Yes, definitively. Ev
On Thu, 06 Jul 2006 19:16:53 +0200, Stefan Behnel wrote:
>>
>> Is there a correct way to handle text input from a when the page is
>> utf-8 and that input is going to be used in SQL statements? I've tried
>> things like (with no success):
>> sql = u"select * from blah where col='%s'" % input
>
On 2006-07-06, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> Antoon Pardon wrote:
>> On 2006-07-05, Piet van Oostrum <[EMAIL PROTECTED]> wrote:
>>
>>It's not about "finding a name/identifier", it's about the difference
>>between (re)binding a name and mutating an object.
>>>
AP> The
meridian a écrit :
> Bruno Desthuilliers wrote:
>
>>meridian wrote:
>>
>>>Bruno Desthuilliers wrote:
>>>
>>>
def doIt(name=None):
global gname
if name is None:
name = gname
else:
gname = name
>>>
>>>
>>>Thanks Bruno, works a treat...
>>>
>>
>>But still very pr
thanks tim...
the strip should have been 'sstr.strip()'<
thanks
-Original Message-
From: Tim Chase [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 06, 2006 12:17 PM
To: [EMAIL PROTECTED]
Cc: python-list@python.org
Subject: Re: string/list comparison
> sstr = sesslist[0] <<
On 2006-07-06, Piet van Oostrum <[EMAIL PROTECTED]> wrote:
>>AP> Aren't we now talking about implementation details? Sure the compilor
>>AP> can set things up so that local names are bound to the local scope and
>>AP> so the same code can be used. But it seems somewhere was made the
>>AP> decision
> sstr = sesslist[0] << these should be the same
> trstr = trlist[3]<< "Summer A"
>
> sstr.strip(sstr)
> trstr.strip(trstr)
>
> print "slen = ",len(sstr)
> print "trlen = ",len(trstr)
Have you tried printing the repr(sstr) and repr(trstr) to see
hi...
i have the following piece of code that i'm testing... it should be
using/comparing two equal strings. apparently it doesn't. i've tried to do a
"strip" to remove pre/post whitespace.. but there appears to be something
else going on.
i suspect that there is some type of unicode going on. is
> No, but it is a design point of Dejavu.
> EAssociation -> HasA and HasMany? How is that different from Dejavu's
> UnitAssociation -> ToOne and ToMany?
Hum, I'll give Dejavu and SQLALchemy a better look, with sure. I should
be feeling like this guy now:
http://nerd.newburyportion.com/2005/11/ev
On Thu, 2006-07-06 at 14:17 -0400, John Dennis wrote:
> ... don't forget for those folks who dislike
> pipermail one can with minimal effort use an external archiver.
Oh, and I should have added that one of the beefs with using an external
archiver is the disjoint UI between mailman and the archi
Paul McGuire wrote:
> "SuperHik" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Hi!
>>
>> I want to connect to gmail but...
>> It requires SSL so I worte:
>>
>> >>> import poplib
>> >>> server = poplib.POP3_SSL('pop.gmail.com',995)
>> Traceback (most recent call last):
>>Fil
Jack wrote:
> When I try TooFPy with the SOAP and XML-RPC sample client code
> provided in TooFPy tutorials, a log entry shows up quickly on web server
> log window, but it takes a long time (5 seconds or longer) for the client
> to output a "Hello you." It seems like the web server is fast because
Hi guys,
I was just idley curious on what it would take to make a web plug-in
for Pygame. I'm picturing it working the way my browser currently
shows flash games. Is such an idea even possible? Has anyone
attempted this?
--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.ble
On Thu, 2006-07-06 at 13:45 -0400, Brad Knowles wrote:
> [ snip discussion of fixing pipermail and alternate archivers ]
> But this is a pretty big undertaking.
I'm 100% with Brad on this, this is a huge chunk of work, probably a
project in its own regard. Would you really finish this during yo
"SuperHik" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi!
>
> I want to connect to gmail but...
> It requires SSL so I worte:
>
> >>> import poplib
> >>> server = poplib.POP3_SSL('pop.gmail.com',995)
> Traceback (most recent call last):
>File "", line 1, in ?
>File "C:\
Hi!
I want to connect to gmail but...
It requires SSL so I worte:
>>> import poplib
>>> server = poplib.POP3_SSL('pop.gmail.com',995)
Traceback (most recent call last):
File "", line 1, in ?
File "C:\Python24\lib\poplib.py", line 359, in __init__
self.sslobj = socket.ssl(self.sock, s
Jack wrote:
> I will have to install lighttpd or other web servers.
do that.
If all you need is a webserver there's little reason to have it in
python. Just use one of the several high quality open source webservers.
--
http://mail.python.org/mailman/listinfo/python-list
Barry said:
> We should certainly do everything we can to make sure that Richard's
> ht:dig solution is nearly trivial to integrate, but I'm not sure we
> should distribute it with Mailman.
Sorry, I guess I wasn't clear -- I just meant for him to look at both
Python and non-Python solutions, befo
Srijit Kumar Bhadra wrote:
> I am new to lxml. I am interested to know the equivalent code using
> lxml (http://cheeseshop.python.org/pypi/lxml/1.1alpha). The code is
> taken from http://effbot.org/zone/xml-writer.htm
>
> from elementtree.SimpleXMLWriter import XMLWriter
> import sys
>
> w = XMLW
Ethan quoted John Dennis:
>> It's not at all clear to me that mailman should be responsible for
>> archiving.
>
> While I am somewhat in agreement, the current situation is that
> archiving comes bundled with mailman and represents a significant
> weakness in its current web UI. Not doing anything
no, its an extern IP adress. For my needs the server and the client
must be on different machines. But I opened the port and it worked.
Thanks anyway :)
Greetz,
Stefka
Marco Aschwanden wrote:
> > server = SimpleXMLRPCServer.SimpleXMLRPCServer(("xxx.xxx.xxx.xxx",
> > 22999))
>
> Could it be that x
Dennis Lee Bieber wrote:
> The setting most likely has to be made on the machine running the
> server -- and M$ SQL Server doesn't exist on Linux either
>
> If the conversion was being done by some client library on Windows,
> then again, since that library probably doesn't exist on L
Dear Someone:
I have written a script that accesses the googleAPI through
pygoogle and saves each of the ten documents as a .txt file by using a
specific function for each respective file type (.doc, .pdf, .html) to
convert it to such. Everything works fine, except that I am trying to
make i
elmo wrote:
> Hello, after two days of failed efforts and googling, I thought I had
> better seek advice or observations from the experts. I would be grateful
> for any input.
>
> We have various small internal web applications that use utf-8 pages for
> storing, searching and retrieving user inpu
Jack> When I try TooFPy with the SOAP and XML-RPC sample client code
Jack> provided in TooFPy tutorials, a log entry shows up quickly on web
Jack> server log window, but it takes a long time (5 seconds or longer)
Jack> for the client to output a "Hello you."
For XML-RPC are you u
bruce wrote:
> for guys with python/xpath expertise..
>
> i'm playing with xpath.. and i'm trying to solve an issue...
>
> i have the following kind of situation where i'm trying to get certain data.
>
> i have a bunch of tr/td...
>
> i can create an xpath, that gets me all of the tr.. i only w
On Thu, 6 Jul 2006 09:36:25 -0700, Jack <[EMAIL PROTECTED]> wrote:
>Basically I am trying to find a high performance web server. Since
>Python is installed on all of the servers, It'll be great if the web
>server is written in Python as well. Otherwise, I will have to install
>lighttpd or other web
madpython wrote:
> ...
> self.b=Tkinter.Button(root,txt="Button",command=self.doSmth).pack()
> self.l=Tkinter.Label(root,txt="default").pack()
> def doSmth(self):
> var=globals()["m"].__dict__["progLogic"].func("some
> input")
> self.l.config(txt=var)
> self.l.update_
Basically I am trying to find a high performance web server. Since
Python is installed on all of the servers, It'll be great if the web
server is written in Python as well. Otherwise, I will have to install
lighttpd or other web servers.
Then the largest issue with Python-based web servers is perf
When I try TooFPy with the SOAP and XML-RPC sample client code
provided in TooFPy tutorials, a log entry shows up quickly on web server
log window, but it takes a long time (5 seconds or longer) for the client
to output a "Hello you." It seems like the web server is fast because the
log
entry show
Hello, after two days of failed efforts and googling, I thought I had
better seek advice or observations from the experts. I would be grateful
for any input.
We have various small internal web applications that use utf-8 pages for
storing, searching and retrieving user input. They have worked fine
for guys with python/xpath expertise..
i'm playing with xpath.. and i'm trying to solve an issue...
i have the following kind of situation where i'm trying to get certain data.
i have a bunch of tr/td...
i can create an xpath, that gets me all of the tr.. i only want to get the
sibling tr up un
Yves Glodt wrote:
> while True:
> if now(hours) in runat:
> act()
> sleep(60)
> sleep(10)
>
Note that, if "now(hours)" *is* in runat, this loop will sleep 70
seconds, not 60. It probably doesn't matter.
--
http://mail.python.org/mailman/listinfo/python
Yves Glodt wrote:
> Hi,
>
> I have a daemon which runs permanently, and I want it to do a special
> operation at some specifiy times every day, consider this configfile
> extract:
>
> [general]
> runat=10:00,12:00
>
>
> What would be the easiest and most pythonic way to do this?
> Something like th
did you considered using signals ?! I guess that could well serve the purpose ..
more of signals: http://docs.python.org/lib/module-signal.html
cheers,
amit.
On 7/6/06, Yves Glodt <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a daemon which runs permanently, and I want it to do a special
> operat
> On 6 Jul 2006 07:38:10 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Any pointers to getting ElementTree to parse from a string would be
> appreciated (of course I could dump it to a temp file, but that doesn't
> seem elegent)
You can use the "fromstring" method.
Btw, did you looked at c
manstey wrote:
> Hi,
>
> If I have a tuple like this:
>
> tupGlob = (('VOWELS','aeiou'),('CONS','bcdfgh'))
>
> is it possible to write code using tupGlob that is equivalent to:
> VOWELS = 'aeiou'
> CONS = ''bcdfgh'
could you use a dictionary instead? i.e.
>>> tupGlob = {'VOWELS':'aeiou', 'CONS':'
Greetings, I'm now merrily on my way developing a FastCGI Server in
python.
Thanks to help of others on this list I've got a proof of concept up
and
running.
Herein lies my question: My goal is to make this module as flexible as
possible,
so that it can receive requests from SimpleHTTP, or Cherrpy
> Antoon Pardon <[EMAIL PROTECTED]> (AP) wrote:
>AP> Well if someone explains what is wrong about my understanding, I
>AP> certainly care about that (although I confess to sometimes being
>AP> impatient) but someone just stating he is not sure I understand?
That is just a euphemistic way of s
Hi Martin,
> One would have to ask the authors of pymssql, or Microsoft,
> why that happens; alternatively, you have to run pymssql
> in a debugger to find out yourself.
Tried running pymssql in a debugger, but I felt a bit lost. There are
too many things I would need to understand about pymssql
[EMAIL PROTECTED] wrote:
> manstey:
> > is there a faster way of implementing this? Also, does the if clause
> > increase the speed?
>
> I doubt the if increases the speed. The following is a bit improved
> version:
>
> # Original data:
> data = 'asdfbasdf'
> find = (('a', 'f'), ('s', 'g'), ('x', '
sashang> Then the client code can get the value of i like this:
sashang> c = xmlrpclib.ServerProxy("address")
sashang> c.geti()
sashang> but why can't I get the value of i like this?
sashang> c.i
"RPC" stands for "Remote Procedure Call". You're looking for a remote
object a
In <[EMAIL PROTECTED]>, manstey wrote:
> I often have code like this:
>
> data='asdfbasdf'
> find = (('a','f')('s','g'),('x','y'))
> for i in find:
>if i[0] in data:
>data = data.replace(i[0],i[1])
>
> is there a faster way of implementing this? Also, does the if clause
> increase th
In <[EMAIL PROTECTED]>, Paul McGuire wrote:
tupGlob = (('VOWELS','aeiou'),('CONS','bcdfgh'))
for nam,val in tupGlob: locals()[nam]=val
> ...
VOWELS
> 'aeiou'
CONS
> 'bcdfgh'
Little warning: It works only on module level as assigning to `locals()`
return value in function
In <[EMAIL PROTECTED]>, Dirk Hagemann
wrote:
> I'd like to implement a countdown timer on a webite. It should show the
> months, days, hours, minutes and seconds until a given date and time.
> So far it's not really difficult, but this website will be used from
> different time zones, what will ma
manstey wrote:
> Hi,
>
> I often use:
>
> a='yy'
> tup=('x','yy','asd')
> if a in tup:
><...>
>
> but I can't find an equivalent code for:
>
> a='xfsdfyysd asd x'
> tup=('x','yy','asd')
> if tup in a:
>< ...>
>
> I can only do:
>
> if 'x' in a or 'yy' in a or 'asd' in a:
><...>
>
> but
[EMAIL PROTECTED] wrote:
> Hi, recently having discovered ElementTree I'm stumped by a very simple
> problem, which I can't find the answer to.
>
> I have some XML in a string object. Now the parse() method of
> ElementTree takes a filename or file-like object. So I tried creating a
> StringIO ob
"manstey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> If I have a tuple like this:
>
> tupGlob = (('VOWELS','aeiou'),('CONS','bcdfgh'))
>
> is it possible to write code using tupGlob that is equivalent to:
> VOWELS = 'aeiou'
> CONS = ''bcdfgh'
>
> Thanks,
> Matthew
>
Try
bruce wrote:
> robert
>
> i did an
> python>>> import numpy
> a = array([['q','a'],['w','e']])
not tested, but you usually need to mention where to find array:
a = numpy.array([['q','a'],['w','e']])
>
> and it didn't work...
>
> i used
> >>from import numpy *
>
> and it seems to
Hi!
I'd like to implement a countdown timer on a webite. It should show the
months, days, hours, minutes and seconds until a given date and time.
So far it's not really difficult, but this website will be used from
different time zones, what will make a difference of 10 hours, if I use
the time-in
Hi, recently having discovered ElementTree I'm stumped by a very simple
problem, which I can't find the answer to.
I have some XML in a string object. Now the parse() method of
ElementTree takes a filename or file-like object. So I tried creating a
StringIO object from the original string and then
[Johhny]
> I am trying to get the user that is running the scripts uid, I have had
> a look at the pwd module and it does not appear to offer that
> functionality. Is there any way within python to get that information ?
It's in the 'os' module:
>>> import os
>>> os.getuid()
553
--
Richie Hind
Johhny wrote:
> Hello,
>
> I am trying to get the user that is running the scripts uid, I have had
> a look at the pwd module and it does not appear to offer that
> functionality. Is there any way within python to get that information ?
eg:
username = pwd.getpwuid(os.getuid())[4]
Eri
(Please quote at least a significant part of the message you're replying
to, or people will have trouble understanding what you're talking about...)
On Thu, 06 Jul 2006 15:42:28 +0200, Kilicaslan Fatih <[EMAIL PROTECTED]>
wrote:
> Dear Diez B. Roggisch,
>
> After clicking a button on the GUI t
Hello,
I am trying to get the user that is running the scripts uid, I have had
a look at the pwd module and it does not appear to offer that
functionality. Is there any way within python to get that information ?
Regards,
Johhny
--
http://mail.python.org/mailman/listinfo/python-list
"mbstevens" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 06 Jul 2006 08:32:46 +0100, Martin Evans wrote:
>
>> "Juho Schultz" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>> Martin Evans wrote:
Sorry, yet another REGEX question. I've been struggling
Thank you all for your comments. They are priceless beyond any doubt.
As for the matter of the discussion it took me only a minute looking at
the code to realize that with Tkinter I pass "master" reference to
every widget and therefore I can access every method in the class
hierarchy. I'm a fool th
1 - 100 of 165 matches
Mail list logo