yet another list compr. suggestion

2006-01-22 Thread palo
I appologize for suggesting (though very humbly) a syntax extension
(maybe particularly idiotic) but just as a wild fantasy, what would you
think about this:
as a substitute for filter, people often use
[x for x in y if z(x)]
The suggestion is that the same result could be achieved by
[x in y if z(x)]

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: yet another list compr. suggestion

2006-01-22 Thread palo
you'd save more characters in
[not_very_convenient_name for not_very_convenient_name in y if z]
(just kidding)

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: yet another list compr. suggestion

2006-01-22 Thread palo
you'd save more in

[not_very_convenient_name for not_very_convenient_name in y if z]

(just kidding)

-- 
http://mail.python.org/mailman/listinfo/python-list


choose and open a folder in Windows

2006-02-15 Thread palo
Hello
I wrote a little script (that will be used only under Windows if at
all) where the user should choose a directory and the script will then
process some data files in the directory and write the result there. To
make it a bit more pleasant, it would be nice if the directory were
chosen by the standard win directory chooser. When the script is done,
it could open the the directory, so that the user can check the
results. How to do these two things? (I searched this forum and found a
simple solution for the first one, using Tkinter - so there is just an
unimportant question whether one really needs Tkinter to start a
standard windows dialog. But I didn't find how to make windows to open
a given directory in file expolorer)
P.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: choose and open a folder in Windows

2006-02-15 Thread palo
thanks a lot, it works
and sorry for intelligent questions:)

-- 
http://mail.python.org/mailman/listinfo/python-list