[issue10053] Don’t close fd when FileIO.__ini t__ fails

2010-11-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 <http://bugs.python.org/issue10

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-11-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue10336] test_xmlrpc fails if gzip is not supported by client

2010-11-06 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : In test_xmlrpc.py, def test_gsip_response(self): # (sniP) self.assertTrue(a>b) last line can fail if gzip is not supported by client. (gzip is not set in HTTP header's Accept-

[issue10336] test_xmlrpc fails if gzip is not supported by client

2010-11-06 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- Removed message: http://bugs.python.org/msg120602 ___ Python tracker <http://bugs.python.org/issue10336> ___ ___ Python-bug

[issue10336] test_xmlrpc fails if gzip is not supported by client

2010-11-06 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : In test_xmlrpc.py, def test_gsip_response(self): # (sniP) self.assertTrue(a>b) last line can fail if gzip is not supported by client. (gzip is not set in HTTP header's Accept-

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2010-11-06 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 <http://bugs.python.org/issue6

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2010-11-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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: -Pyt

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2010-11-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue10336] test_xmlrpc fails if gzip is not supported by client

2010-11-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, I cannot. I don't know HTTP. -- ___ Python tracker <http://bugs.python.org/issue10336> ___ ___ Python-bugs-list m

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2010-11-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I've committed in r86291(release31-maint). -- ___ Python tracker <http://bugs.python.org/issue6317> ___ ___ Pytho

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-11-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-15 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : 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

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2011-05-15 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 <http://bugs.p

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-11-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 <http://bugs.python.org/issue10

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-11-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thank you for commit! -- ___ Python tracker <http://bugs.python.org/issue10027> ___ ___ Python-bugs-list mailing list Unsub

[issue10402] sporadic test_bsddb3 failures

2010-11-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue8879] Implement os.link on Windows

2010-11-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue8879] Implement os.link on Windows

2010-11-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue8879] Implement os.link on Windows

2010-11-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 function

[issue8879] Implement os.link on Windows

2010-11-25 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- Removed message: http://bugs.python.org/msg122421 ___ Python tracker <http://bugs.python.org/issue8879> ___ ___ Python-bug

[issue10614] ZipFile and CP932 encoding

2010-12-02 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : 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

[issue10614] ZipFile and CP932 encoding

2010-12-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue10631] ZipFile and current directory change

2010-12-05 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : 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.1

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : 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

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- Removed message: http://bugs.python.org/msg123461 ___ Python tracker <http://bugs.python.org/issue10637> ___ ___ Python-bug

[issue10641] kill_python sometimes fails to kill processes on buildbots

2010-12-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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: +ocea

[issue10641] kill_python sometimes fails to kill processes on buildbots

2010-12-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I think #9973 is rather related. -- ___ Python tracker <http://bugs.python.org/issue10641> ___ ___ Python-bugs-list mailin

[issue9973] Sometimes buildbot fails to cleanup working copy

2010-12-07 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file19968/py3k_buildbot_error_in_clean_faze_v2.patch ___ Python tracker <http://bugs.python.org/issue9

[issue9973] Sometimes buildbot fails to cleanup working copy

2010-12-07 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file19047/py3k_buildbot_error_in_clean_faze.patch ___ Python tracker <http://bugs.python.org/issue9

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Committed in r87117(py3k). -- priority: release blocker -> resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.or

[issue9558] build_ext fails on VS8.0

2010-12-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Won't this go into python3.2? -- ___ Python tracker <http://bugs.python.org/issue9558> ___ ___ Python-bugs-list m

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Well, can this go into Python3.2? -- ___ Python tracker <http://bugs.python.org/issue8533> ___ ___ Python-bugs-list mailin

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2010-12-08 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : 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. ///

[issue10653] test_time test_strptime fails on windows

2010-12-08 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : 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_asct

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 <h

[issue10654] test_datetime fails on Python3.2 windows binary

2010-12-08 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : 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:\Pyth

[issue10653] test_time test_strptime fails on windows

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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[siz

[issue10653] test_time test_strptime fails on windows

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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_wcsf

[issue10653] test_time test_strptime fails on windows

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Here you are. >>> import time >>> time.strftime('%Z') '\x93\x8c\x8b\x9e (\x95W\x8f\x80\x8e\x9e)' -- ___ Python track

[issue10654] test_datetime fails on Python3.2 windows binary

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: == FAIL: test_computations (test.datetimetester.TestSubclassDateTime_Fast) -- Traceback (most recent call last): File &q

[issue10653] test_time test_strptime fails on windows

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I got readable result. ;-) >>> import time >>> time.tzname ('東京 (標準時)', '東京 (標準時)') -- ___ Python track

[issue10654] test_datetime fails on Python3.2 windows binary

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 a+i TypeError: unsupported o

[issue10654] test_datetime fails on Python3.2 windows binary

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: By changing from datetime import datetime to from _datetime import datetime I can see same behavior. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10654] test_datetime fails on Python3.2 windows binary

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 cla

[issue10654] test_datetime fails on Python3.2 windows binary

2010-12-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, - "NotImplementedError" was printed + "NotImplemented" was printed -- ___ Python tracker <http://bug

[issue10657] os.lstat/os.stat/os.fstat don't set st_dev (st_rdev) on Windows

2010-12-09 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : 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

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-12-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-12-09 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file18979/py3k_fix_leak_around_GetFinalPathNameByHandle.patch ___ Python tracker <http://bugs.python.org/issue9

[issue10653] test_time test_strptime fails on windows

2010-12-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 n

[issue2896] cmathmodule.c compilation error

2008-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Hello. This issue seems to be fixed by r63385. (alexandre.vassalotti's merge) -- nosy: +ocean-city __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2222] Memory leak in os.rename?

2008-05-23 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: -- components: +Windows -Extension Modules __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue> __ _

[issue2065] trunk version does not compile with vs8 and vc6

2008-05-29 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9885/ocean.zip ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2065] trunk version does not compile with vs8 and vc6

2008-05-29 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9957/ocean.zip ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2065] trunk version does not compile with vs8 and vc6

2008-05-29 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10474/ocean.zip ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2065] trunk version does not compile with vs8 and vc6

2008-05-29 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10474/ocean.zip ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2065] trunk version does not compile with vs8 and vc6

2008-05-29 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10475/ocean.zip ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2065] trunk version does not compile with vs8 and vc6

2008-06-06 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10475/ocean.zip ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2065] trunk version does not compile with vs8 and vc6

2008-06-06 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10536/ocean.zip ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2065] trunk version does not compile with vs8 and vc6

2008-06-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10536/ocean.zip ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2065] trunk version does not compile with vs8 and vc6

2008-06-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10574/ocean.zip ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2065] trunk version does not compile with vs8 and vc6

2008-06-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Thank you for progress! >- The patch for 2.5 is OK for me. We could just add the a paragraph that >appears in your patch for trunk (PC/VC6/readme.txt): >+_msi >+_msi.c. You need to install Windows Installer SDK to

[issue2065] trunk version does not compile with vs8 and vc6

2008-06-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Thank you for commit. I ziped patch for remaining issue. # Probably need to add _multiprocessing module, but not done yet. Added file: http://bugs.python.org/file10618/ocean-remaining.zip ___

[issue3099] On windows, "import nul" always succeed

2008-07-01 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: GetFileAttributes() succeeds for "nul", but GetFileAttributesEx() fails. Maybe is it good idea to use GetFileAttributesEx()? # test code import ctypes import ctypes.wintypes as type dll = ctypes.windll

[issue3255] [proposal] alternative for re.sub

2008-07-02 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: I often do same mistake again and again. Most of re module's method takes optional argument "flags" like this. finditer( pattern, string[, flags]) But, sub() takes optional argument "count" not "

[issue2242] Decoding UTF-7 with "ignore warnings" crashes Python on Windows Vista

2008-07-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: With this patch? Yes, it fixed crash. Index: Objects/unicodeobject.c === --- Objects/unicodeobject.c (revision 65223) +++ Objects/unicodeobject.c (workin

[issue3491] compile error fixing (_multiprocessing, windows)

2008-08-01 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: This will fix the compile error on buildbot. Thank you. -- components: Windows files: fix_compile_error.patch keywords: patch, patch messages: 70615 nosy: ocean-city severity: normal status: open title: compile error

[issue2222] Memory leak in os.rename?

2008-08-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue> ___ ___ Python-bugs-list mailin

[issue2065] trunk version does not compile with vs8 and vc6

2008-08-06 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11065/ocean-remaining.zip ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3513] test_multiprocessing hangs without this patch on win2k

2008-08-06 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: Hello. I'm not familiar with socket, but I found workaround for this problem. socket.getfqdn("127.0.0.1") returns computer name, but with this test_multiprocess doesn't work. With 'localhost' test work

[issue3210] subprocess.Popen does not release process handles if process cannot be started

2008-08-07 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: -- nosy: +ocean-city ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3210> ___ __

[issue3515] refcount gc bug?

2008-08-07 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: I'm not sure this is bug or not, but shouldn't `io' be collected by refcount GC? This happens on python2.5 but doesn't happend on python3.0. import os def foo(): io = open("a.txt", "w

[issue3515] refcount gc bug?

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Hmm, when exception occurs in some frame, its reference will be retained even after exiting function? Indeed, extra exception fixed problem. import os def foo(): io = open("a.txt", "w") raise RuntimeErro

[issue3515] refcount gc bug?

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: >But still I'm little confused why this code prints "del". Oh, sorry, kick me. "del" should be printed when interpreter exits. :-) ___ Python tracker <[EMAI

[issue3515] refcount gc bug?

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I understand. Thank you. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3515> ___ _

[issue3210] subprocess.Popen does not release process handles if process cannot be started

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Hello. I had lecture about exception & frames on issue3515. When Lib/subprocess.py (814)'s CreateProcess() raises exception, p2cread will be freed by refcount GC, but it never happen before os.remove() because sys.exc_

[issue3210] subprocess.Popen does not release process handles if process cannot be started

2008-08-07 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3210> ___ ___ Python-bugs-list mailin

[issue3513] test_multiprocessing hangs without this patch on win2k

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I'll close this entry because this seems to be duplicate of issue3270. -- resolution: -> duplicate status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3270] test_multiprocessing: test_listener_client flakiness

2008-08-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Hello. I also experienced test_multiprocessing hang on win2k and I workarounded this by this adhok patch. Index: Lib/multiprocessing/connection.py === --- Lib/multiproc

[issue3527] Py_WIN_WIDE_FILENAMES removal

2008-08-08 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: Py_WIN_WIDE_FILENAMES is not used anywhere, this patch removes this macro. -- files: remove_macro.patch keywords: patch messages: 70899 nosy: ocean-city severity: normal status: open title: Py_WIN_WIDE_FILENAMES removal ve

[issue3270] test_multiprocessing: test_listener_client flakiness

2008-08-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I confirmed this patch works on my win2000. And I believe it works on Trent's machine, too. http://mail.python.org/pipermail/python-dev/2008-June/080525.html ___ Python tracker <[EMAIL PRO

[issue2065] trunk version does not compile with vs8 and vc6

2008-08-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I have committed remaining VC6 patch. (I postponed _multiprocessing module support addition because I sometimes experiences nasty error message "pipe was closed" or "resource is not enough" in test_multiprocessing

[issue2065] trunk version does not compile with vs8 and vc6

2008-08-14 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Can I close this entry? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2065> ___ __

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2008-08-14 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: I noticed sometimes regrtest.py fails in test_multiprocessing.py (test_connection) on win2000. I could not reproduce error by invoking test_multiprocessing alone, but finally I could do it by incresing 'really_big_msg'

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2008-08-14 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: This is traceback when run reproducable.py. Traceback (most recent call last): File "", line 1, in File "e:\python-dev\trunk\lib\multiprocessing\forking.py", line 341, in main prepare(preparation_data)

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2008-08-14 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: After googling, ERROR_NO_SYSTEM_RESOURCES seems to happen when one I/O size is too large. And in Modules/_multiprocessing/pipe_connection.c, conn_send_string is implemented with one call WriteFile(). Maybe this should be devided int

[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: Hello. I noticed test_mailbox (test_add) fails on my win2k machine. It's something like this. == ERROR: test_add (__main

[issue2222] Memory leak in os.rename?

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Fixed in r65745. Will be backported to py3k and release25-maint. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Well, MultibyteCodec_Decode() also uses Py_buffer in py3k but not in trunk. Is this also backported? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: OK, done. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue3575] [py3k] tell() fails in some situation

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Sorry, fixed in r65760 and r65762. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2222] Memory leak in os.rename?

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Backported to py3k(r65746) release25-maint(r65747) ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3580] failures in test_os

2008-08-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Maybe will first test failure be fixed by attached patch? Sorry, this is my bug in issue1709599. :-( -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file11140/fix_test_1565150

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-19 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: This patch adds some basic mssing types in ctypes.wintypes. I think pointer type like LPDWORD would be usuful too, but maybe you cannot ignore the overhead of POINTER object creation. -- assignee: theller components:

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I've committed basic type addition in r65908. Addition of LPDWORD and its friends will follow. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I've created the patch which adds LPDWORD and friends. Can you review it? Added file: http://bugs.python.org/file11176/adds_LPDWORD_and_friends.patch ___ Python tracker <[EMAIL PRO

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: >We could avoid the giant __all__ list when we 'import ctypes as >_ctypes' How about the attached patch "avoid_giant_all.patch"? Added file: http://bugs.python.org

[issue3612] Add some basic mssing types in ctypes.wintypes

2008-08-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: And "avoid_giant_all_and_add_LPs.patch" adds bunch of LP(C)s. I'm not sure all LP types are needed. (Especially handle types) Added file: http://bugs.python.org/file11179/avoid_giant_

<    1   2   3   4   5   6   7   8   9   10   >