Please see the following code:
class rev_wrap(object):
def __init__(self,l):
self.l=l
def __getitem__(self,i):
return self.l[-i-1]
class rev_subclass(list):
def __getitem__(self,i):
return list.__getitem__(self,-i-1)
if
What is the precision (and accuracy) of time module on a Windows XP
machine?
threading module depends on time module so it's precision(and
accuracy) is up to time module's.
| for i in xrange(1000):
|time.sleep(0.001)
This sleeps for awhile, which means 0.001 sec is not ignored. On the
other
[Fredrik Lundh]
>>> bdict = dict.fromkeys(open(bfile).readlines())
>>>
>>> for line in open(afile):
>>>if line not in bdict:
>>>print line,
>>>
>>>
[Tim Peters]
>> Note that an open file is an iterable object, yielding the lines in
>> the file. The "for" loop exploited that above, bu
Hello.
I love yaml. I've been using PyYaml and heard it's far behind Syck in
its functionality and performance.
I'd like to try Syck with python but I have to compile it for my
windows machine -- and it seems a very difficult work :I don't use
cygwin.
Does anyone have the binaries for win32?
Ja