async fuction

2013-01-11 Thread aleksey
Hello. Can someone help me to resolv error. code: import threading class TimeoutError(RuntimeError): pass class AsyncCall(object): def __init__(self, fnc, callback = None): self.Callable = fnc self.Callback = callback def __call__(self, *args, **kwargs): s

ANNOUNCE: PYBAG v0.4.0

2010-10-23 Thread Aleksey
This is first PYBAG announce on comp.lang.python. PYBAG implements a portable bag and is intended for fast synchronization and backup. It lets you use a portable digital storage device to carry your electronic documents similar to the way you can use a bag to carry paper documents. You can synchro

Re: parsing string into dict

2010-09-02 Thread Aleksey
On Sep 2, 12:46 am, Tim Arnold wrote: > Hi, > I have a set of strings that are *basically* comma separated, but with > the exception that if a comma occur insides curly braces it is not a > delimiter.  Here's an example: > > [code=one, caption={My Analysis for \textbf{t}, Version 1}, continued] >

Re: parsing string into dict

2010-09-02 Thread Aleksey
On Sep 2, 12:46 am, Tim Arnold wrote: > Hi, > I have a set of strings that are *basically* comma separated, but with > the exception that if a comma occur insides curly braces it is not a > delimiter.  Here's an example: > > [code=one, caption={My Analysis for \textbf{t}, Version 1}, continued] >

Re: Optimising literals away

2010-08-31 Thread Aleksey
=u'excludecall'): """Set assigment from global : global=(1,2,3); loop a = global 10 times in while. @UID@ e710b888-bacd-4248-9ff7-1f7a348e1c8f @author@ Mazhugin Aleksey @score_common@ 1 """ a = 0 global gset while ntimes >

Re: Copying a file with a question mark in it's name in Windows

2010-08-12 Thread Aleksey
On 12 авг, 18:49, drodrig wrote: > A python script I use to backup files on a Windows 2003 server > occasionally fails to retrieve the size of a file with a question mark > in the name. The exception I get is "OSError #123 The filename, > directory name, or volume label syntax is incorrect". I rea

Problems with the date of modification of files on the flash drive in windows

2010-01-22 Thread Aleksey
Hi All, I write crossplatform program and have next problem under windows (under linux is all OK) : I'm trying to get the UTC modification date of files on the flash drive under windows. In the flash card system is FAT. In the winter time (2010 01 21) Date of modification: >>> op.getmtime('