[issue12084] os.stat() on windows doesn't consider relative symlink
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I tried issue12084_XP.diff, but os.stat()/os.lstat() always failed with following message because it raises exception on top of it when running on XP. Python 3.2.1rc1+ (default, Jun 14 2011, 16:26:11) [MSC v.1200 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import os [53981 refs] os.stat(src) Traceback (most recent call last): File stdin, line 1, in module WindowsError: [Error 127] 指定されたプロシージャが見つかりません。: 'src' [54014 refs] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I created several patches. quick1.patch: os.stat() traverses junction on Vista/7, and raises error on XP. quick2.patch: os.stat() never traverse junction on all windows. quick3.patch: os.stat() should traverse junction os Vista/7, but doesn't on XP. There are many patches because I don't know how to treat junction on os.stat(). -- Added file: http://bugs.python.org/file22361/quick1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file22362/quick2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file22363/quick3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2122] mmap.flush does not check for errors on windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: This issue seems to be reproduced in following way. 1. Attach USB flash drive. (On my machine, it was attached as E drive) 2. Run python interactive shell and run following commands. (Confirmed on Python2.6) import mmap f = open(e:/temp.tmp, w+b) f.write(foo) f.flush() m = mmap.mmap(f.fileno(), 3) m[:] = xxx 3. Detach USB flash drive violently here! (Without safety mechanism to detach USB flash drive, just plug it off) Note that python shell is still running. 4. Enter following command in python shell. m.flush() It returns *0*. (Means failure) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2122 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file22182/patch_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file22183/patch_v2.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file22006/patches_v2.tar.gz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12084] os.stat() on windows doesn't consider relative symlink
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Hello. I noticed os.stat() on windows may traverse wrong path on relative symbolic when current working directory != the directory where symbolic link is in. This is because the relative path DeviceIoControl() returns is just passed to win32_xstat without converting to absolute path. I'm sorry because I implemented this function, and it's hard for me to debug this because I don't have Vista/7. This patch uses GetFinalPathNameByHandle like original code does, plus should handle symlink to system locked file. Can anyone test and commit this patch? -- components: Windows files: patches_v2.tar.gz keywords: 3.2regression messages: 136062 nosy: georg.brandl, ocean-city priority: release blocker severity: normal stage: patch review status: open title: os.stat() on windows doesn't consider relative symlink type: behavior versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file22006/patches_v2.tar.gz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9927] Leak around GetFinalPathNameByHandle (Windows)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I'll close this entry because #12084 contains this fix. -- status: open - closed superseder: - os.stat() on windows doesn't consider relative symlink ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10657] os.lstat/os.stat/os.fstat don't set st_dev (st_rdev) on Windows
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I noticed st_dev is not set yet. Attached patch fill this value, but sometimes it becomes negative value because dwVolumeSerialNumber is large enough. Maybe st_dev should be declared as unsigned int. # I think this is not new feature. Just bug. So I think # this can go into python3.2. -- components: Windows files: py3k_add_st_dev_and_st_rdev.patch keywords: patch messages: 123673 nosy: ocean-city priority: normal severity: normal status: open title: os.lstat/os.stat/os.fstat don't set st_dev (st_rdev) on Windows versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file19984/py3k_add_st_dev_and_st_rdev.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10657 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9927] Leak around GetFinalPathNameByHandle (Windows)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: This is updated version. Can you test this? (I only fixed leak, deferred other fixes to future) -- Added file: http://bugs.python.org/file19985/py3k_fix_leak_around_GetFinalPathNameByHandle_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9927] Leak around GetFinalPathNameByHandle (Windows)
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file18979/py3k_fix_leak_around_GetFinalPathNameByHandle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10653] test_time test_strptime fails on windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: 1. Decoding the output of wcsftime(). Python expects mbcs (which I believe is an UTF16-like wide char encoding) while Windows apparently puts cp932 there in your locale. I don't have expertise to address this issue. No, mbcs is not wide character sets (wchar_t*) but ANSI character sets (char*). In my environment, mbcs == cp932. And python expects UTF-16. 2. strptime() cannot parse strftime() output when strftime('%Z') is different from time.tzname[dst]. (snip) I attached test program to test behavior of strftime and wcsftime on locale. On VC6, strftime doesn't depend on locale, wheres wcsftime changed the value depends on locale. (I tested only C locale and System locale because I could not find other locales working on my environment, so ) If strftime doesn't depend on locale and equals to tzname for every locale, maybe strftime is preferred on windows. # Can somebody test this on VS9? And other locales? -- Added file: http://bugs.python.org/file19986/main.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8533] regrtest: use backslashreplace error handler for stdout
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Well, can this go into Python3.2? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8533 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10652] test___all_ + test_tcl fails (Windows installed binary)
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: On official Python3.2 beta1 windows binary, I noticed following command fails. (test_tcl alone won't fail) I couldn't reproduce this on binary built from source without installation. // C:\Python32.\python.exe -m test.regrtest -v test___all__ test_tcl (snip) [2/2] test_tcl testCall (test.test_tcl.TclTest) ... ERROR testCallException (test.test_tcl.TclTest) ... ERROR testCallException2 (test.test_tcl.TclTest) ... ERROR testEval (test.test_tcl.TclTest) ... ERROR testEvalException (test.test_tcl.TclTest) ... ERROR testEvalException2 (test.test_tcl.TclTest) ... ERROR testEvalFile (test.test_tcl.TclTest) ... ERROR testEvalFileException (test.test_tcl.TclTest) ... ERROR testGetVar (test.test_tcl.TclTest) ... ERROR testGetVarArray (test.test_tcl.TclTest) ... ERROR testGetVarArrayException (test.test_tcl.TclTest) ... ERROR testGetVarException (test.test_tcl.TclTest) ... ERROR testLoadWithUNC (test.test_tcl.TclTest) ... ERROR testPackageRequireException (test.test_tcl.TclTest) ... ERROR testSetVar (test.test_tcl.TclTest) ... ERROR testSetVarArray (test.test_tcl.TclTest) ... ERROR testUnsetVar (test.test_tcl.TclTest) ... ERROR testUnsetVarArray (test.test_tcl.TclTest) ... ERROR testUnsetVarException (test.test_tcl.TclTest) ... ERROR testFlattenLen (test.test_tcl.TkinterTest) ... ok == ERROR: testCall (test.test_tcl.TclTest) -- Traceback (most recent call last): File C:\Python32\lib\test\test_tcl.py, line 25, in setUp self.interp = Tcl() File C:\Python32\lib\tkinter\__init__.py, line 1768, in Tcl return Tk(screenName, baseName, className, useTk) File C:\Python32\lib\tkinter\__init__.py, line 1674, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, want objects, useTk, sync, use) _tkinter.TclError: Can't find a usable init.tcl in the following directories: C:/Python32/lib/tcl8.5 C:/lib/tcl8.5 C:/lib/tcl8.5 C:/library C:/library C:/ tcl8.5.2/library C:/tcl8.5.2/library This probably means that Tcl wasn't installed properly. (snip) -- Ran 20 tests in 1.752s FAILED (errors=19) test test_tcl failed -- multiple errors occurred 1 test failed: test_tcl 1 test altered the execution environment: test___all__ -- components: Tests, Windows messages: 123609 nosy: ocean-city priority: normal severity: normal status: open title: test___all_ + test_tcl fails (Windows installed binary) versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10653] test_time test_strptime fails on windows
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Following tests fails on official Python3.2 Windows binary. I cannot reproduce this on VC6. / C:\Python32.\python -m test.regrtest -v test_time test_strptime [1/2] test_time test_asctime (test.test_time.TimeTestCase) ... ok test_asctime_bounding_check (test.test_time.TimeTestCase) ... ok test_clock (test.test_time.TimeTestCase) ... ok test_conversions (test.test_time.TimeTestCase) ... ok test_ctime_without_arg (test.test_time.TimeTestCase) ... ok test_data_attributes (test.test_time.TimeTestCase) ... ok test_default_values_for_zero (test.test_time.TimeTestCase) ... ok test_gmtime_without_arg (test.test_time.TimeTestCase) ... ok test_insane_timestamps (test.test_time.TimeTestCase) ... ok test_localtime_without_arg (test.test_time.TimeTestCase) ... ok test_sleep (test.test_time.TimeTestCase) ... ok test_strftime (test.test_time.TimeTestCase) ... ok test_strftime_bounding_check (test.test_time.TimeTestCase) ... ok test_strptime (test.test_time.TimeTestCase) ... FAIL test_strptime_bytes (test.test_time.TimeTestCase) ... ok test_tzset (test.test_time.TimeTestCase) ... ok test_bug_3061 (test.test_time.TestLocale) ... ok == FAIL: test_strptime (test.test_time.TimeTestCase) -- test test_time crashed -- class 'UnicodeEncodeError': 'cp932' codec can't enco de character '\x93' in position 495: illegal multibyte sequence Traceback (most recent call last): File C:\Python32\lib\test\regrtest.py, line 960, in runtest_inner indirect_test() File C:\Python32\lib\test\test_time.py, line 244, in test_main support.run_unittest(TimeTestCase, TestLocale) File C:\Python32\lib\test\support.py, line 1146, in run_unittest _run_suite(suite) File C:\Python32\lib\test\support.py, line 1120, in _run_suite result = runner.run(suite) File C:\Python32\lib\unittest\runner.py, line 173, in run result.printErrors() File C:\Python32\lib\unittest\runner.py, line 110, in printErrors self.printErrorList('FAIL', self.failures) File C:\Python32\lib\unittest\runner.py, line 117, in printErrorList self.stream.writeln(%s % err) File C:\Python32\lib\unittest\runner.py, line 25, in writeln self.write(arg) UnicodeEncodeError: 'cp932' codec can't encode character '\x93' in position 495: illegal multibyte sequence [2/2] test_strptime test_basic (test.test_strptime.getlang_Tests) ... ok test_am_pm (test.test_strptime.LocaleTime_Tests) ... ok test_date_time (test.test_strptime.LocaleTime_Tests) ... ok test_lang (test.test_strptime.LocaleTime_Tests) ... ok test_month (test.test_strptime.LocaleTime_Tests) ... ok test_timezone (test.test_strptime.LocaleTime_Tests) ... FAIL test_weekday (test.test_strptime.LocaleTime_Tests) ... ok test_blankpattern (test.test_strptime.TimeRETests) ... ok test_compile (test.test_strptime.TimeRETests) ... FAIL test_locale_data_w_regex_metacharacters (test.test_strptime.TimeRETests) ... ok test_matching_with_escapes (test.test_strptime.TimeRETests) ... ok test_pattern (test.test_strptime.TimeRETests) ... ok test_pattern_escaping (test.test_strptime.TimeRETests) ... ok test_whitespace_substitution (test.test_strptime.TimeRETests) ... ok test_ValueError (test.test_strptime.StrptimeTests) ... ok test_bad_timezone (test.test_strptime.StrptimeTests) ... ok test_caseinsensitive (test.test_strptime.StrptimeTests) ... ok test_date (test.test_strptime.StrptimeTests) ... ok test_date_time (test.test_strptime.StrptimeTests) ... ok test_day (test.test_strptime.StrptimeTests) ... ok test_defaults (test.test_strptime.StrptimeTests) ... ok test_escaping (test.test_strptime.StrptimeTests) ... ok test_fraction (test.test_strptime.StrptimeTests) ... ok test_hour (test.test_strptime.StrptimeTests) ... ok test_julian (test.test_strptime.StrptimeTests) ... ok test_minute (test.test_strptime.StrptimeTests) ... ok test_month (test.test_strptime.StrptimeTests) ... ok test_percent (test.test_strptime.StrptimeTests) ... ok test_second (test.test_strptime.StrptimeTests) ... ok test_time (test.test_strptime.StrptimeTests) ... ok test_timezone (test.test_strptime.StrptimeTests) ... ERROR test_unconverteddata (test.test_strptime.StrptimeTests) ... ok test_weekday (test.test_strptime.StrptimeTests) ... ok test_year (test.test_strptime.StrptimeTests) ... ok test_twelve_noon_midnight (test.test_strptime.Strptime12AMPMTests) ... ok test_all_julian_days (test.test_strptime.JulianTests) ... ok test_day_of_week_calculation (test.test_strptime.CalculationTests) ... ERROR test_gregorian_calculation (test.test_strptime.CalculationTests) ... ERROR test_julian_calculation (test.test_strptime.CalculationTests) ... ERROR test_week_of_year_and_day_of_week_calculation (test.test_strptime.CalculationTes ts) ... ok test_TimeRE_recreation (test.test_strptime.CacheTests
[issue10652] test___all_ + test_tcl fails (Windows installed binary)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: test___all__ imports a lot of modules, but I found one of following modules can bring same error. # just import one of these in test_main(test___all__) #import idlelib.AutoComplete #import tkinter.scrolledtext #import tkinter.ttk #import turtle // And actually, import tkinter is enough. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10652] test___all_ + test_tcl fails (Windows installed binary)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I think this happens because 1. test___all__.py imports tkinter module, and it imports tkinter/_fix.py 2. _fix.py sets TCL_LIBRARY etc as top level routine 3. regrtest.py resets os.environ after test___all__.py ends. so TCL_LIBRARY gone. 4. test_tcl.py tries to import tkinter module, but it won't be loaded twice, so TCL_LIBRARY won't be set. 5. tcl/tk cannot find its library I think this can be fixed by save restore sys.modules before after each tests, so that tkinter module can be loaded again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10652] test___all_ + test_tcl fails (Windows installed binary)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: How about this patch? Is this kind of *fix* acceptable? # I hope this works. -- keywords: +patch Added file: http://bugs.python.org/file19977/py3k_restore_sys_modules_in_regrtest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10654] test_datetime fails on Python3.2 windows binary
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I'm not sure why this happens, I can see this on official python3.2 beta1 windows binary. C:\Python32.\python -m test.regrtest test_datetime [1/1] test_datetime test test_datetime failed -- Traceback (most recent call last): File c:\Python32\lib\test\datetimetester.py, line 1628, in test_computations self.assertRaises(TypeError, lambda: a+i) AssertionError: TypeError not raised by lambda 1 test failed: test_datetime -- components: Library (Lib), Windows messages: 123617 nosy: ocean-city priority: normal severity: normal status: open title: test_datetime fails on Python3.2 windows binary versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10653] test_time test_strptime fails on windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I think this is locale problem. With C locale on windows, wcsftime doesn't return UTF16. (when non ascii characters are contained) It is just like char cbuf[] = ; /* contains non ascii chars in MBCS */ wchar_t wbuf[sizeof(cbuf)]; for (size_t i = 0; i sizeof(cbuf); ++i) wbuf[i] = cbuf[i]; /* just copy it. non ascii chars in MBCS uses two bytes, but should use 1 char space in UTF16. But this case, it uses 2 chars space! (something strange encoding) */ In japanese, wcsftime returns non ascii characters for timezone in this strange encoding. Python converts this with #ifdef HAVE_WCSFTIME ret = PyUnicode_FromWideChar(outbuf, buflen); #else so Unicode object will contain data in this strange encoding. This is cause of problem. I investigated a little about locale, and I learned C standard does not guarantee wchar_t is always UTF16. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10653] test_time test_strptime fails on windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I'll attach workaround. I used to confirm this works on VS8, but I don't have VS8 now. I hope this still works. -- keywords: +patch Added file: http://bugs.python.org/file19978/py3k_workaround_for_wcsftime.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10653] test_time test_strptime fails on windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Here you are. import time time.strftime('%Z') '\x93\x8c\x8b\x9e (\x95W\x8f\x80\x8e\x9e)' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10654] test_datetime fails on Python3.2 windows binary
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: == FAIL: test_computations (test.datetimetester.TestSubclassDateTime_Fast) -- Traceback (most recent call last): File c:\Python32\lib\test\datetimetester.py, line 1628, in test_computations self.assertRaises(TypeError, lambda: a+i) AssertionError: TypeError not raised by lambda Please see if you can reproduce the problem outside of the unit tests. I'll try. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10653] test_time test_strptime fails on windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I got readable result. ;-) import time time.tzname ('東京 (標準時)', '東京 (標準時)') -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10654] test_datetime fails on Python3.2 windows binary
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: This is shortest code to reproduce. But strange, I can see TypeError on VC6(both Debug and Release) E:\e:\python-dev\py3k\pc\VC6\python.exe x.py Traceback (most recent call last): File x.py, line 10, in module a+i TypeError: unsupported operand type(s) for +: 'SubclassDatetime' and 'int' / from datetime import datetime class SubclassDatetime(datetime): sub_var = 1 a = SubclassDatetime(2002, 3, 2, 17, 6) # Add/sub ints or floats should be illegal for i in 1, 1.0: a+i -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10654] test_datetime fails on Python3.2 windows binary
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: By changing from datetime import datetime to from _datetime import datetime I can see same behavior. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10654] test_datetime fails on Python3.2 windows binary
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: NotImplementedError was printed. This happened when subclass of date or subclass of datetime. (plain classes and subclass of time didn't print this) // Code from _datetime import date, datetime class SubclassDate(date): sub_var = 1 a = SubclassDate(2002, 3, 2) for i in 1, 1.0: print(a+i) # NotImplemented class SubclassDateTime(datetime): sub_var = 1 a = SubclassDateTime(2002, 3, 2, 3, 5) for i in 1, 1.0: print(a+i) # NotImplemented a-i # TypeError: unsupported operand type(s) for -: 'SubclassDateTime' and 'float' // Result E:\python-dev\py3kc:\Python32\python.exe \x.py NotImplemented NotImplemented NotImplemented NotImplemented Traceback (most recent call last): File \x.py, line 17, in module a-i # TypeError TypeError: unsupported operand type(s) for -: 'SubclassDateTime' and 'float' I hope this helps. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10654] test_datetime fails on Python3.2 windows binary
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Sorry, - NotImplementedError was printed + NotImplemented was printed -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10641] kill_python sometimes fails to kill processes on buildbots
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: To kill python_d.exe, you should use kill_python_d.exe instead of kill_python.exe. On the XP and Win7 buildbots, kill_python sometimes fails to kill hung processes. Could you post the buildbot log url? -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10641 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10641] kill_python sometimes fails to kill processes on buildbots
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I think #9973 is rather related. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10641 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9973] Sometimes buildbot fails to cleanup working copy
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file19968/py3k_buildbot_error_in_clean_faze_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9973 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9973] Sometimes buildbot fails to cleanup working copy
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file19047/py3k_buildbot_error_in_clean_faze.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9973 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Committed in r87117(py3k). -- priority: release blocker - resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9558] build_ext fails on VS8.0
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Won't this go into python3.2? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9558 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10631] ZipFile and current directory change
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Is this intended behavior? Creating zipfile.ZipFile with relative path and changing current directory, relative path is resolved from new directory not from the directory object was created. F:\py3k Python 3.2a4+ (py3k, Dec 3 2010, 22:11:05) [MSC v.1200 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import zipfile [67577 refs] zip = zipfile.ZipFile(non-ascii-cp932.zip, r) [68999 refs] import os [69001 refs] os.mkdir(temp) [69001 refs] os.chdir(temp) [69001 refs] zip.extractall() Traceback (most recent call last): File stdin, line 1, in module File e:\python-dev\py3k\lib\zipfile.py, line 992, in extractall self.extract(zipinfo, path, pwd) File e:\python-dev\py3k\lib\zipfile.py, line 980, in extract return self._extract_member(member, path, pwd) File e:\python-dev\py3k\lib\zipfile.py, line 1023, in _extract_member source = self.open(member, pwd=pwd) File e:\python-dev\py3k\lib\zipfile.py, line 901, in open zef_file = io.open(self.filename, 'rb') IOError: [Errno 2] No such file or directory: 'non-ascii-cp932.zip' [69128 refs] -- messages: 123428 nosy: ocean-city priority: normal severity: normal status: open title: ZipFile and current directory change type: behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10631 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Very sorry, I created the bug calling CloseHandle twice in Modules/posixmodule.c. I think this should be fixed before beta1 released. Can I commit it? -- components: None files: posixmodule.diff keywords: needs review, patch messages: 123452 nosy: georg.brandl, ocean-city priority: release blocker severity: normal stage: commit review status: open title: Calling CloseHandle twice (Modules/posixmodule.c) versions: Python 3.2 Added file: http://bugs.python.org/file19951/posixmodule.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Well, I'm not sure. I didn't realize it while running python_d.exe. I just realized it while re-reading source code. MSDN says, (http://msdn.microsoft.com/en-us/library/ms724211%28VS.85%29.aspx) If the application is running under a debugger, the function will throw an exception if it receives either a handle value that is not valid or a pseudo-handle value. This can happen if you close a handle twice, (snip) So if someone run python_d.exe in debugger, maybe he/she can see exception. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- Removed message: http://bugs.python.org/msg123461 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10637 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10614] ZipFile and CP932 encoding
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I'm not sure why, but I got BadZipFile error now. Anyway, here is cp932 zip file to be created with python2.7. -- Added file: http://bugs.python.org/file19935/non-ascii-cp932.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10614 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10614] ZipFile and CP932 encoding
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Currently, ZipFile only accepts ascii or utf8 as file name encodings. On Windows (Japanese), usually CP932 is used for it. So currently, when we melt ZipFile via py3k, non-ascii file name becomes strange. Can we handle this issue? (ie: adding encoding option for ZipFile#__init__) -- components: Extension Modules messages: 123197 nosy: ocean-city priority: normal severity: normal status: open title: ZipFile and CP932 encoding type: feature request versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10614 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8879] Implement os.link on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Umm, I'm not sure how to fix this yet, but if we create the function like os._stat_with_open_handle() which returns stat struct and open handle on windows, I think we can set/use st_ino. (Because FileID won't change while file is opened) I'm not sure if it is appropriate API change or not, though. :-( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8879 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8879] Implement os.link on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Or, use GetFileInformationByHandleEx on Vista or above, and NtQueryInformationFile under Vista. NtQueryInformationFile is windows internal function and MS may change its behavior, but probably we can think it won't happen on WinXP. # These functions are needed to get real filename from # open handle to set S_IEXEC. And provide windows specific functions os._open/os._lopen: open windows handle same as CreateFile in os.stat/os.lstat os._osfstat: stat for windows handle os._close: close windows handle and if the file is hard link, store windows handle anywhere in TarFile object. (I created branch for it, but I'm not sure I can do it) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8879 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8879] Implement os.link on Windows
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- Removed message: http://bugs.python.org/msg122421 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8879 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thank you for commit! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10402] sporadic test_bsddb3 failures
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: This should be duplicate of #3892. I suppose timeout in this test might be very short. Refers to http://www.systomath.eu/doc/BerkeleyDb-4.7/html/api_c/rep_timeout.html timeout is in microseconds, so self.dbenvMaster.rep_set_timeout(db.DB_REP_CONNECTION_RETRY,100123) means only 100 milliseconds. (I don't know BSDDB entirely, so maybe this might be valid value though) -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10402 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8879] Implement os.link on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: r86733 introduces st_ino setup in attribute_data_to_stat(), but Fild ID is not guaranteed to be same when file is not opened. So I think it's meaningful only for os.fstat(). Please see http://msdn.microsoft.com/en-us/library/aa363788%28v=VS.85%29.aspx -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8879 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thank you for reply. Could you commit my last patch instead of me? I cannot commit files for a while. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6317] winsound.PlaySound doesn't accept non-unicode string
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I've committed in r86283(py3k). I'll merge this into release31-maint and release27-maint. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6317 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6317] winsound.PlaySound doesn't accept non-unicode string
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: As for back-porting: I'm not sure this is a bug in 2.7. It just doesn't support Unicode filenames, but that's not (inherently) a bug. In 3.1, I can agree that it's a bug - but we need to preserve the bytes support for compatibility. I agree. For 3.2, dropping the bytes support is fine with me. Is this also applied to *all* ANSI Win32 API in other sources? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6317 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10336] test_xmlrpc fails if gzip is not supported by client
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Sorry, I cannot. I don't know HTTP. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10336 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6317] winsound.PlaySound doesn't accept non-unicode string
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I've committed in r86291(release31-maint). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6317 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I found Win32 FileID API. With this library, it seems we can use GetFileInformationByHandleEx before Vista. We can get real file name and hard link count from handle. http://www.microsoft.com/downloads/en/details.aspx?FamilyID=1DECC547-AB00-4963-A360-E4130EC079B8amp;displaylang=en I don't have a patch, but maybe it is worth to implement it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10336] test_xmlrpc fails if gzip is not supported by client
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: In test_xmlrpc.py, def test_gsip_response(self): # (sniP) self.assertTrue(ab) last line can fail if gzip is not supported by client. (gzip is not set in HTTP header's Accept-Encoding) == FAIL: test_gsip_response (__main__.GzipServerTestCase) -- Traceback (most recent call last): File e:\python-dev\py3k\lib\test\test_xmlrpc.py, line 722, in test_gsip_resp onse self.assertTrue(ab) AssertionError: False is not True -- components: Library (Lib) messages: 120602 nosy: ocean-city priority: normal severity: normal status: open title: test_xmlrpc fails if gzip is not supported by client versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10336 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10336] test_xmlrpc fails if gzip is not supported by client
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- Removed message: http://bugs.python.org/msg120602 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10336 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10336] test_xmlrpc fails if gzip is not supported by client
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: In test_xmlrpc.py, def test_gsip_response(self): # (sniP) self.assertTrue(ab) last line can fail if gzip is not supported by client. (gzip is not set in HTTP header's Accept-Encoding) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10336 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6317] winsound.PlaySound doesn't accept non-unicode string
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I updated the patch. (I hope we can remove ANSI version of Win32 API, though) -- Added file: http://bugs.python.org/file19528/py3k_winsound_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6317 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10053] Don’t close fd when FileIO.__ini t__ fails
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Recently, the patch to close fd when FileIO#__init__ failed and closefd = True was checked in. Is this mean this issue is invalid? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10053 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10232] Tkinter issues with Scrollbar and custom widget list
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I think issue4 happens because all frames are grid-forgotten in redisp(), sometimes widget becomes empty. I think we can close this issue as invalid. P.S. Try this change in redisp() yy = 0 for xx in self.frms[start:self.maxdisp+start]: xx.grid(in_=self,row=yy,column=0) yy += 1 for xx in self.frms[self.active:self.maxdisp+self.active]: if xx in self.frms[start:self.maxdisp+start]: continue xx.grid_forget() -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10232 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5391] mmap: read_byte/write_byte and object type
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thank for pointing this out. I've looked at bytearray and bytes implementations, they actually return unsigned value. I fixed this in r86159(py3k) and r86160(release31-maint). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9931] test_ttk_guionly hangs on XP5
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I've created the patch to fix this. (This patch comes from #9055) -- keywords: +patch Added file: http://bugs.python.org/file19492/py3k_check_if_gui_is_really_available.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9931] test_ttk_guionly hangs on XP5
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- dependencies: -test_issue_8959_b fails when run from a service ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10267] test_ttk_guionly leaks many references
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: It seems this issue can be fixed by attached patch. -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file19465/py3k_fix_test_ttk_guionly_refleak.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10267 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10157] Refleaks in pythonrun.c
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thank you, I committed your patch in r85980(py3k) and r85981(release31-maint). -- assignee: ocean-city - resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10157 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10157] Refleaks in pythonrun.c
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I think your patch looks good. -- assignee: - ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10157 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10179] os.stat fails on mapped network drive
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Can you try my patch in #10027? Does this also fail? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10179 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4032] distutils cannot recognize .dll.a as library on cygwin
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I used to create the patch http://bugs.python.org/file11597/experimental_distutils.patch in #1706863, but cygwin guys wanted this code implemented in CCygwinCompiler class (See #2445). I think #2445 should be resolved before. -- dependencies: +Use The CygwinCCompiler Under Cygwin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4032] distutils cannot recognize .dll.a as library on cygwin
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Can you port that patch? I don't have cygwin installed now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I created test branch branches/py3k-stat-on-windows and committed the new patch in r85789. This achieves msg119108. I tested this on Windows7 buildbot where symlink support exists, it seems working correct. http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/1840 -- Added file: http://bugs.python.org/file19335/py3k_posixpath_traverse_via_DeviceIoControl.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9289] test_long_key(test_winreg) fails on win2k + py2.x
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I committed in r85790(release27-maint). -- resolution: - fixed stage: patch review - committed/rejected status: open - closed title: Skip test_long_key(test_winreg) on win2k + py2.x - test_long_key(test_winreg) fails on win2k + py2.x ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9289 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10157] Memory leak (r70152)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Hello. Does this patch fix the problem? -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file19321/py3k_issue10157.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10157 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I noticed stat() won't set S_IEXEC in stat() with my patch (py3k_posixpath_v1.patch). :-( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9929] subprocess.Popen unbuffered not work
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I implemented msg117279 with v2 patch. Can I commit it? # If your are already working on this issue, please ignore # my patch. -- Added file: http://bugs.python.org/file19280/py3k_fix_unbuffered_in_subprocess_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9929] subprocess.Popen unbuffered not work
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Umm, v2 patch broke test_subprocess. I'll repost v3 patch after removing bufsize=0 universal_newlines check. == ERROR: test_universal_newlines (__main__.ProcessTestCase) -- Traceback (most recent call last): File e:\python-dev\py3k\lib\test\test_subprocess.py, line 422, in test_unive rsal_newlines universal_newlines=1) File e:\python-dev\py3k\lib\subprocess.py, line 621, in __init__ raise ValueError(cannot use bufsize=0 with universal newlines) ValueError: cannot use bufsize=0 with universal newlines == ERROR: test_universal_newlines_communicate (__main__.ProcessTestCase) -- Traceback (most recent call last): File e:\python-dev\py3k\lib\test\test_subprocess.py, line 442, in test_unive rsal_newlines_communicate universal_newlines=1) File e:\python-dev\py3k\lib\subprocess.py, line 621, in __init__ raise ValueError(cannot use bufsize=0 with universal newlines) ValueError: cannot use bufsize=0 with universal newlines -- Added file: http://bugs.python.org/file19281/py3k_fix_unbuffered_in_subprocess_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9929 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file19290/py3k_posixpath_v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file19278/py3k_posixpath_v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I replaced my patch (almost reverted stat() part) I think st_nlink will be set via stat()/lstat(), at least. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10136] kill_python doesn't work with short path
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: When kill_python[,d].exe was called via short path, no python processes won't be killed. This happens because, directory path is compared via simple wcsnicmp. If one is short path and another is long path, wcsnicmp determines they are not same path. This patch solves this issue with GetFileInformationByHandle's File ID information. Probably this won't happen so much, so priority is low. -- components: Build files: py3k_fix_kill_python_for_short_path.patch keywords: patch messages: 119007 nosy: ocean-city priority: normal severity: normal status: open title: kill_python doesn't work with short path type: behavior versions: Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file19262/py3k_fix_kill_python_for_short_path.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5117] os.path.relpath problem with root directory
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Committed fixes in r85689(py3k), r85693(release31-maint), r85694(release27-maint). (This should work because I simply ported already working fix in ntpath.relpath) -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5117 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5117] os.path.relpath problem with root directory
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Sorry, I've commit the fix in r85717(release27-maint). I'll sit and watch buildbot. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5117 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5117] os.path.relpath problem with root directory
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I confirmed test runs fine on x86 Snow Leopard 2.7. So I'm closing this issue -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5117 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: How about this patch? * st_nlink support for stat()/lstat(). * lstat() for junction read attributes of junction not target. * stat() for symlink of system locked file (ie: c:/pagefile.sys) should read attributes from target locked file not of symlink even via FindFirstFile. (I cannot test this, sorry) I hope other behavior was not changed by this patch. -- Added file: http://bugs.python.org/file19278/py3k_posixpath_v1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10027] os.lstat/os.stat don't set st_nlink on Windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: ... I noticed I can test this via buildbot... Probably I'll try this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10027 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10098] intermittent failure in test_os
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Sorry about this. And thank you for fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Well, I couldn't reproduce it on WinXP. Probably Win2K's bug. One thread is exactly on RegEnumValue or RegQueryValue, and another thread is a bit after RegSetValue (the place varies case by case). Type is SEGV. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- Removed message: http://bugs.python.org/msg118507 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: One thread is exactly on RegEnumValue or RegQueryValue, and another thread is a bit after RegSetValue (the place varies case by case). Type is SEGV. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Currently, PC/winreg.c releases GIL while calling registry API, but I found this in Remarks section of RegEnumValue. http://msdn.microsoft.com/en-us/library/ms724865%28VS.85%29.aspx While using RegEnumValue, an application should not call any registry functions that might change the key being queried. Maybe we shouldn't release GIL in PC/winreg.c? Thank you. # I sometimes experienced crash of test_changing_value(test_winreg) # on release27-maint. It happens when 2 threads calls PyEnumValue and # PySetValue simultaneously. And I could stop it by following patch. # I'll attach the stack trace of crash. Index: PC/_winreg.c === --- PC/_winreg.c(revision 85344) +++ PC/_winreg.c(working copy) @@ -1219,7 +1219,6 @@ } while (1) { -Py_BEGIN_ALLOW_THREADS rc = RegEnumValue(hKey, index, retValueBuf, @@ -1228,7 +1227,6 @@ typ, (BYTE *)retDataBuf, retDataSize); -Py_END_ALLOW_THREADS if (rc != ERROR_MORE_DATA) break; @@ -1577,9 +1575,7 @@ if (subKey == NULL) return NULL; } -Py_BEGIN_ALLOW_THREADS rc = RegSetValue(hKey, subKey, REG_SZ, str, len+1); -Py_END_ALLOW_THREADS if (rc != ERROR_SUCCESS) return PyErr_SetFromWindowsErrWithFunction(rc, RegSetValue); Py_INCREF(Py_None); -- components: Extension Modules files: py27_test_winreg_crash_stack_trace.txt messages: 118413 nosy: ocean-city priority: normal severity: normal status: open title: Should not release GIL while running RegEnumValue versions: Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file19198/py27_test_winreg_crash_stack_trace.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- Removed message: http://bugs.python.org/msg118413 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Currently, PC/winreg.c releases GIL while calling registry API, but I found this in Remarks section of RegEnumValue. http://msdn.microsoft.com/en-us/library/ms724865%28VS.85%29.aspx While using RegEnumValue, an application should not call any registry functions that might change the key being queried. Maybe we shouldn't release GIL in PC/winreg.c? Thank you. # I sometimes experienced crash of test_changing_value(test_winreg) # on release27-maint. It happens when 2 threads calls PyEnumValue and # PySetValue simultaneously. And I could stop it by following patch. # I'll attach the stack trace of crash. Index: PC/_winreg.c === --- PC/_winreg.c(revision 85344) +++ PC/_winreg.c(working copy) @@ -1219,7 +1219,6 @@ } while (1) { -Py_BEGIN_ALLOW_THREADS rc = RegEnumValue(hKey, index, retValueBuf, @@ -1228,7 +1227,6 @@ typ, (BYTE *)retDataBuf, retDataSize); -Py_END_ALLOW_THREADS if (rc != ERROR_MORE_DATA) break; @@ -1577,9 +1575,7 @@ if (subKey == NULL) return NULL; } -Py_BEGIN_ALLOW_THREADS rc = RegSetValue(hKey, subKey, REG_SZ, str, len+1); -Py_END_ALLOW_THREADS if (rc != ERROR_SUCCESS) return PyErr_SetFromWindowsErrWithFunction(rc, RegSetValue); Py_INCREF(Py_None); -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file19198/py27_test_winreg_crash_stack_trace.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- Removed message: http://bugs.python.org/msg118414 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Currently, PC/winreg.c releases GIL while calling registry API, but I found this in Remarks section of RegEnumValue. http://msdn.microsoft.com/en-us/library/ms724865%28VS.85%29.aspx While using RegEnumValue, an application should not call any registry functions that might change the key being queried. Maybe we shouldn't release GIL in PC/winreg.c? Thank you. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9055] test_issue_8959_b fails when run from a service
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Hello. I've been finding the way to determine whether the process is running as service or not. Does this way work? On my environment, True is returned. I hope False will be returned in service environment. http://msdn.microsoft.com/en-us/library/d56de412%28v=VS.80%29.aspx http://msdn.microsoft.com/en-us/library/ms683225%28VS.85%29.aspx / from __future__ import print_function import ctypes from ctypes.wintypes import * UOI_FLAGS = 1 WSF_VISIBLE = 0x0001 class USEROBJECTFLAGS(ctypes.Structure): _fields_ = [(fInherit, BOOL), (fReserved, BOOL), (dwFlags, DWORD)] def window_station_has_display_surfaces(): dll = ctypes.windll.user32 h = dll.GetProcessWindowStation() if not h: raise ctypes.WinError() uof = USEROBJECTFLAGS() needed = DWORD() res = dll.GetUserObjectInformationW(h, UOI_FLAGS, ctypes.byref(uof), ctypes.sizeof(uof), ctypes.byref(needed)) if not res: raise ctypes.WinError() return bool(uof.dwFlags WSF_VISIBLE) def main(): print(window_station_has_display_surfaces()) if __name__ == '__main__': main() -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9055 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9055] test_issue_8959_b fails when run from a service
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Oh, I forgot to mention this. I think it can be possible to disable gui resource on regrtest.py when this function returns False. (I hope #9931 also can be fixed by this) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9055 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9055] test_issue_8959_b fails when run from a service
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I'm planning to try it on buildbot XP-5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9055 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9931] test_ttk_guionly hangs on XP5
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- dependencies: +test_issue_8959_b fails when run from a service ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9055] test_issue_8959_b fails when run from a service
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I confirmed window_station_has_display_surfaces() returned False on XP-5 which is running as service. See http://www.python.org/dev/buildbot/builders/x86%20XP-5%203.x/builds/1453/steps/test/logs/stdio (It ran r85362) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9055 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com