Re: Thousand Seperator

2008-03-14 Thread Paul M¢Nett
Eddie Corns wrote: > [EMAIL PROTECTED] writes: > >> I'm trying to find some code that will turn: > >> 100 -> 100 >> 1000 -> 1,000 >> 100 -> 1,000,000 >> -1000 -> -1,000 > >> I know that can be done using a regular expression. In Perl I would do >> something like: > >> sub thousand { >>

Re: os.path.getsize() on Windows

2008-03-21 Thread Paul M¢Nett
Martin v. Löwis wrote: >> def isGrowing(f, timeout): >> ssize = os.path.getsize(f) >> time.sleep(timeout) >> esize =os.path.getsize(f) >> return esize != ssize >> >> On windows, this returns the size of the file as it _will be_, not the >> size that it currently is.