[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2011-05-07 Thread Jan Killian
Changes by Jan Killian jan.kill...@gmail.com: -- nosy: +iki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10466 ___ ___ Python-bugs-list mailing

[issue444582] Finding programs in PATH, adding shutil.which

2011-01-03 Thread Jan Killian
Jan Killian jan.kill...@gmail.com added the comment: Hello All, sorry for lack of communication recently, I'd alos like to see it in 3.2 instead of 3.3, but my time is not as scalable as I wish and I can't run on clouds yet .) I like Trent's module and especially its usefullness via

[issue444582] Finding programs in PATH, adding shutil.which

2010-08-08 Thread Jan Killian
Jan Killian jan.kill...@gmail.com added the comment: Hi Tarek Will do that on Tusdas. Examples make sense too Jan On Sun, Aug 8, 2010 at 11:15 AM, Tarek Ziadé rep...@bugs.python.org wrote: Tarek Ziadé ziade.ta...@gmail.com added the comment: looks good, minor changes before I commit

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-14 Thread Jan Killian
Jan Killian jan.kill...@gmail.com added the comment: * updated tests -- Added file: http://bugs.python.org/file18000/shutil_which_82778.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-14 Thread Jan Killian
Changes by Jan Killian jan.kill...@gmail.com: Added file: http://bugs.python.org/file18001/which.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-12 Thread Jan Killian
Jan Killian jan.kill...@gmail.com added the comment: @ Éric and Antoine: Thanks for the useful hints! * PATH and PATHEXT are now evaluated when needed, not only on module init. The rationale is, that the lib user may change them, eg. to include a directory with additional commands

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-12 Thread Jan Killian
Changes by Jan Killian jan.kill...@gmail.com: Added file: http://bugs.python.org/file17963/which.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-11 Thread Jan Killian
Jan Killian jan.kill...@gmail.com added the comment: * hardcoded deafult PATHEXT values for different versions of Windows (confirmed the W2K, W2008 values via google) * code+tests+docs cleanup Just one question: is there some std proc how to run the test suite on the updated stdlib

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-11 Thread Jan Killian
Changes by Jan Killian jan.kill...@gmail.com: Added file: http://bugs.python.org/file17948/which.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-11 Thread Jan Killian
Changes by Jan Killian jan.kill...@gmail.com: Removed file: http://bugs.python.org/file17948/which.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-11 Thread Jan Killian
Jan Killian jan.kill...@gmail.com added the comment: * updated docs in the patch @ Éric: Thanks, that works nicely :) @ Michael: You don't need cygwin to use which and many gnu tools on windows. See http://gnuwin32.sourceforge.net/packages.html. After installation you can take the ,exe

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-11 Thread Jan Killian
Changes by Jan Killian jan.kill...@gmail.com: Removed file: http://bugs.python.org/file17947/shutil_which_82778.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-11 Thread Jan Killian
Changes by Jan Killian jan.kill...@gmail.com: Added file: http://bugs.python.org/file17958/which.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue444582

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-09 Thread Jan Killian
Jan Killian jan.kill...@gmail.com added the comment: @tarek: Sorry for not reacting, it completely vaporized out of my head. I'll do the patch this weekend. Agree, only which/which_files belong to public API. Regarding PATHEXT: 1. When a new process is created, the value is taken from

[issue444582] Finding programs in PATH, addition to os

2010-03-05 Thread Jan Killian
Jan Killian jan.kill...@gmail.com added the comment: Updated version of reference implementation as a standalone module * changed interface: which_files() returns generator, which() returns first match, or raises IOError(errno.ENOENT) * updated doctest Made this to more closely

[issue444582] Finding programs in PATH, addition to os

2010-03-04 Thread Jan Killian
Jan Killian jan.kill...@gmail.com added the comment: Adapted Brian Curtin's http://bugs.python.org/file15381/ shutil_which.patch and made another reference implementation as a standalone module including the following fixes: * uses ``PATHEXT`` on Windows * searches current directory before