I need a rest
FRIDAY, 27 MAY 2011, 12:57
LIFE
PROGRAMMING
It looks like I really need a rest.
I've written this code ..
decision = speech_count > noise_count and True or False
..and then spent 5 minutes trying to catch, what the heck was wrong with it? :)
Comments [0]
Inside Python: understanding os.listdir()
SUNDAY, 08 MAY 2011, 12:22
PROGRAMMING
LINUX
PYTHON
C
If you've been using python for a long time, then you surely know that os.listdir() function returns an unsorted list of file names.
I didn't care much untill I faced a situation, in which the sorted-sequential processing of files was crucial, and I could not remember whether the previous file processing were done in sorted order. Well, luckily they were. But hey, this is a little bit annoying, isn't it? Why os.listdir() returns an unsorted list of files? Would you like to find out?
Comments [0]