[issue1706863] Failed to build Python 2.5.1 with sqlite3

2008-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I've committed "fix_sqlite3_setup_error.patch" in r66766. I think the problem disutils cannot recognize .dll.a as library on cygwin is another issue, so I'll open new tracker item. -- resolution: ->

[issue4032] disutils cannot recognize ".dll.a" as library on cygwin

2008-10-03 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: This issue is derived from issue1706863. -- components: Distutils messages: 74265 nosy: amaury.forgeotdarc, ghaering, jlt63, ocean-city, rpetrov, tan2, vitalyy2000 severity: normal status: open title: disutils cannot rec

[issue3255] [proposal] alternative for re.sub

2008-10-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: -- resolution: -> duplicate status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-10-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: >At least my "one unicode char is one space" suggestion corrects the case >of Western languages, and all messages with single-width characters. I'm not happy with this solution. ;-( >Doesn't the e

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-10-06 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Experimental patch was experimental, wcswidth(3) returns 1 for East Asian Ambiguous character. debian:~/python-dev/py3k# ./python /mnt/windows/a.py File "/mnt/windows/a.py", line 3 "♪xÅx" abc

[issue3677] importing from UNC roots doesn't work

2008-10-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I think this is stat(2) problem on windows. Please try following test program. #include #include #include void test(const char *path) { struct stat st; printf("%s %d %d\n", path, stat(path, &st), Ge

[issue3677] importing from UNC roots doesn't work

2008-10-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Ah, of cource, please change path to fit you environment. > test prog ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3677] importing from UNC roots doesn't work

2008-10-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: zipimport.c seems fine, because stat(2) succeeds for UNC file. It fails for UNC folder. (zip file is absolutely file) Already fix for issue1293 was in, so maybe I should create the patch for that direction but... anyway this issue

[issue3677] importing from UNC roots doesn't work

2008-10-07 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11739/not_use_stat_in_import_on_windows.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3677] importing from UNC roots doesn't work

2008-10-07 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11740/not_use_stat_in_import_on_windows.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3677] importing from UNC roots doesn't work

2008-10-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Just humble thought... If we can replace stat(2) + S_ISDIR/S_ISREG check with GetFileAttributesEx, maybe we are safe for this kind of problem, and can solve issue3099 same time? :-) ___ Python t

[issue4071] ntpath.abspath can fail on Win Server 2008 (64-bit)

2008-10-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: According to http://msdn.microsoft.com/en-us/library/aa364963.aspx, current implementation have several problems. >In the ANSI version of this function, the name is limited to MAX_PATH >characters. To extend this limit to

[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I think attached patch "fix_getfullpathname.patch" will fix unicode issue at least. For ansi issue, I followed the manner of win32_chdir for now. After some investigation, GetFullPathNameA fails if output size is more th

[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: >I feel it's difficult to check this before invoking GetFullPathNameA. And error number via GetLastError() is vogus, sometimes 0, sometimes others. ___ Python tracker <[EMAIL

[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Or, if PyArg_ParseTuple overflowed or GetFullPathNameA failed, (not check GetLastError() because it's vogus) try GetFullPathNameW like attached file "quick_hack_for_getfullpathname.patch". This inverses flow i

[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11758/quick_hack_for_getfullpathname_v2.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4071] ntpath.abspath fails for long str paths

2008-10-09 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11757/quick_hack_for_getfullpathname.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4100] xml.etree.ElementTree does not read xml-text over page bonderies

2008-10-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Minimum script to reproduce this issue is "bug.py" I've attached. And I think this issue can be fixed with "fix_cross_boundary_on_ElementTree.patch". I'll attach the test case for this issue as "te

[issue4100] xml.etree.ElementTree does not read xml-text over page bonderies

2008-10-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: -- keywords: +patch Added file: http://bugs.python.org/file11765/fix_cross_boundary_on_ElementTree.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4100] xml.etree.ElementTree does not read xml-text over page bonderies

2008-10-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11766/test.py ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3677] importing from UNC roots doesn't work

2008-10-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: -- components: +Windows ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3677> ___ _

[issue4100] xml.etree.ElementTree does not read xml-text over page bonderies

2008-10-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11765/fix_cross_boundary_on_ElementTree.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4100] xml.etree.ElementTree does not read xml-text over page bonderies

2008-10-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11769/fix_cross_boundary_on_ElementTree_v2.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4100] xml.etree.ElementTree does not read xml-text over page bonderies

2008-10-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11766/test.py ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4100] xml.etree.ElementTree does not read xml-text over page bonderies

2008-10-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11770/test_v2.py ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4032] distutils cannot recognize ".dll.a" as library on cygwin

2008-10-11 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: -- title: disutils cannot recognize ".dll.a" as library on cygwin -> distutils cannot recognize ".dll.a" as library on cygwin ___ Python tracker <[EMAIL PROTECTED]>

[issue1719] Cosmetic patch for doc/code mismatch (msilib.UuidCreate)

2008-01-01 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto: Doc says msilib.UUIDCreate(), while code says msilib.UuidCreate() (Case differs) maybe doc is wrong? -- components: Documentation files: msilib.patch messages: 59089 nosy: ocean-city severity: normal status: open title: Cosmetic patch for doc/code

[issue1700463] VC6 build patch for trunk

2008-01-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I updated the patch. - Added missing _msi support - Workaround for PC/msvcrtmodule.c (getwch not exists on VC6) Added file: http://bugs.python.org/file9042/vc6-trunk-ver3.patch _ Tracker <[EMAIL PROTECTED]>

[issue1720] VC6 build patch for release-maint25

2008-01-02 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto: Hello. This patch adds missing _msi support. I confirmed msi file was successfully created for simple .py extension via "setup.py bdist_msi". Thank you. -- components: Build files: vc6-release-maint25.patch messages: 59094 nosy: ocean-cit

[issue1720] VC6 build patch for release-maint25

2008-01-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: The patch for 2.6 is in issue1700463. I don't have a patch for 3.0 yet, but I'll try to make it. __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue1700463] VC6 build patch for trunk

2008-01-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, I updated the patch again. - Add Python/pystrcmp.c to pythoncore.dsp. - Rev59671 contains intptr_t unavailable on VC6, avoid compile error by using PyLong_FromVoidPtr(). Added file: http://bugs.python.org/file9044/vc6-trunk-ver4.patch

[issue1700463] VC6 build patch for trunk

2008-01-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Ummm, I realized my change is probably inproper... Index: Objects/intobject.c === --- Objects/intobject.c (revision 59671) +++ Objects/intobject.c (working copy) @@ -1053,7 +1053,7 @@ static

[issue1700463] VC6 build patch for trunk

2008-01-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Umm, I found Py_intptr_t... OK, VC6 can compile HEAD. Please forget previous patch. I confirmed test_long.py, test_math.py, test_builtin.py successfully runs. Added file: http://bugs.python.org/file9046/vc6-trunk-ver4c.patch

[issue1726] Remove Python/atof.c from PCBuild/pythoncore.vcproj

2008-01-03 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto: Probably this file is not needed for VisualC++. I don't know this is harmful or not. -- components: Build files: remove_atof_c.patch messages: 59126 nosy: ocean-city severity: minor status: open title: Remove Python/atof.c from PC

[issue1727] VC6 build patch for python3000

2008-01-03 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto: Build succeeded. So many errors on test_mailbox.py, and following error on test_float.py were reported. == FAIL: test_nan_from_str (__main__.InfNanTest

[issue1720] VC6 build patch for release-maint25

2008-01-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I have submitted the patch for py3k as issue1727. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1720> __ ___ Python-bugs-

[issue1727] VC6 build patch for python3000

2008-01-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Hello. I noticed PC/VS7.1/pythoncore.vcproj lacks Modules/md5module.c while creating this patch. Thank you. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1733] Maybe PC/VS7.1/pythoncore.vcproj is missing Modules/md5module.c

2008-01-03 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto: I addressed this in issue1727, but I thought it could be better to create new tracker item. Probably attached patch is needed. Thank you. -- components: Build files: md5module.patch messages: 59215 nosy: ocean-city severity: normal status: open

[issue1736] Three bugs of FCICreate (PC/_msi.c)

2008-01-04 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto: I have fixed three bugs of msilib.FCICreate() 1. msilib.FCICreate("a.cab") creates ".a.cab" (extra leading dot) In recent cab SDK's FCI-FDI.doc, # quote start The szCab field should contain a string which contains the name of

[issue1727] VC6 build patch for python3000

2008-01-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thank you. This file is zipped file. Added file: http://bugs.python.org/file9059/PC_VC6.zip __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1700463] VC6 build patch for trunk

2008-01-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I zipped PC/VC6/* as files. Added file: http://bugs.python.org/file9062/vc6-trunk-ver4c.zip _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue1700463] VC6 build patch for trunk

2008-01-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I zipped PC/VC6/* as files. Added file: http://bugs.python.org/file9061/vc6-trunk-ver4c.zip _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue1700463] VC6 build patch for trunk

2008-01-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Oops, sorry for double post. My network provider now stucks somehow... _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue1700463] VC6 build patch for trunk

2008-01-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Rev59716 required some fix. I'm not sure the patch for Lib/socket.py is apropriate. Added file: http://bugs.python.org/file9244/vc6-trunk-ver5.zip _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.or

[issue1736] Three bugs of FCICreate (PC/_msi.c)

2008-01-22 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, I lied. What I said in bug 2 was totally wrong. Meaning of 'i' was changed from original code and my patch. There is no problem about buffer length. Thank you. __ Tracker <[EMAIL PROTECTED]> <htt

[issue1736] Two bugs of FCICreate (PC/_msi.c)

2008-01-22 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto: -- title: Three bugs of FCICreate (PC/_msi.c) -> Two bugs of FCICreate (PC/_msi.c) __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1736] Three bugs of FCICreate (PC/_msi.c)

2008-01-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Umm, please forget previous comment. >>> msilib.FCICreate("a" * 256 + "/" + "b" * 255, []) crashed on debug build. (CB_MAX_CAB_PATH == 256) -- title: Two bugs of FCICreate (PC/_msi.c

[issue1932] Cosmetic patch to supress compiler warning

2008-01-24 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto: This is not compile error, but I cannot find more proper tag than this. -- components: Build files: const.patch messages: 61669 nosy: ocean-city severity: minor status: open title: Cosmetic patch to supress compiler warning type: compile error

[issue1932] Cosmetic patch to supress compiler warning

2008-01-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: VisualC++6 (this is only VC compiler I have) Compiler Warning (level 1) C4090 '=' : different 'const' qualifiers http://msdn2.microsoft.com/en-us/library/k77bkb8d(VS.71).aspx __ Tracker <[

[issue1720] VC6 build patch for release-maint25

2008-01-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Fix to build _bsddb module in Release mode. Added file: http://bugs.python.org/file9283/patch-for-release-maint25.zip __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1700463] VC6 build patch for trunk

2008-02-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Please don't apply this patch now. VC6 build fails from rev.60696 _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.or

[issue1763] Winpath module - easy access to Windows directories like My Documents

2008-02-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry for interruption. I'm a little doubtful this is really needed. We can get "My Documents" path by following 5 lines of code. import ctypes dll = ctypes.windll.shell32 buf = ctypes.create_string_buffer(300) dll.SHGetSpecialFolderPathA(No

[issue1736] Three bugs of FCICreate (PC/_msi.c)

2008-02-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Refactored a little. More clean diff. Added file: http://bugs.python.org/file9398/_msi.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

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

2008-02-12 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto: -- nosy: +ocean-city __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2065> __ ___ Python-bugs-list mailing list Unsubs

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

2008-02-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I tried PSDK Feb 2003 downloadable from http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm and this two issues went away. >- When WINVER is set to 0x500, vc6 gives a long warning because at the >time, windows nt 5.0 was only a

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

2008-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: >Which compiler are you using? And which errors did you get? VC6 + PSDK2003Feb. The error was same to http://svn.haxx.se/users/archive-2006-10/0557.shtml E:\Microsoft\PSDK\Include\ws2tcpip.h(593) : error C2632: 'int' followed by 'int

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

2008-02-17 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto: __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2065> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

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

2008-02-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Follow up r60882. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2065> __ ___ Python-bugs-list mailing list Unsubs

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

2008-02-17 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto: Added file: http://bugs.python.org/file9456/ocean.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2065> __ ___ Python-bugs-

[issue1040026] os.times() is bogus

2008-02-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: How abount also check CLK_TCK? I know it's obsolute but maybe there are platforms without sysconf() and with CLK_TCK. -- nosy: +ocean-city _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.or

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

2008-03-01 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto: -- keywords: +patch Added file: http://bugs.python.org/file9577/ocean.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1759845] subprocess.call fails with unicode strings in command line

2008-03-01 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I tried to fix this problem using CreateProcessW. (environment variables are still ANSI) I don't know Python C API well, maybe I'm doing something wrong. (I confirmed test_subprocess.py passes) -- keywords: +patch nosy: +ocean-city Added

[issue2222] Memory leak in os.rename?

2008-03-03 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto: Hello. Probably I found memory leak. When first convert_to_unicode succeeds and second one fails, first unicode object is not freed. # ex: os.rename("a", 3) Thank you. -- components: Extension Modules files: fix_leak.patch keywo

[issue2223] regrtest.py -R not working

2008-03-03 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto: Sorry, I don't have patch, but regrtest.py -R not working now. E:\python-dev\trunk\Lib\test>py25 regrtest.py -R :: test_grammar test_grammar skipped -- No module named _abcoll E:\python-dev\trunk\Lib\test>py regrtest.py -R :: test_grammar t

[issue2222] Memory leak in os.rename?

2008-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I cannot write patch to use gc.set_debug(gc.DEBUG_LEAK), so I tried regrtest.py -R :: instead. (This functionality is not working now, so I tried after reverted r61098) E:\python-dev\trunk\Lib\test>py regrtest.py -R :: test_os.py test_os beginnin

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

2008-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Failed to compile py3k again, created patch for three branches. You can close issue1720 and issue1700463 because they are duplicated issues. # I merged Amaury's patch, I hope this patch also # works for VS8. Added file: http://bugs.python.org/fil

[issue2223] regrtest.py -R not working

2008-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, I was stupid. I ran test in wrong directory. release25-maint runs fine, and other two has same error. test_grammar test_grammar skipped -- cannot import name _Abstract -- versions: -Python 2.5 __ Tracker

[issue2223] regrtest.py -R not working

2008-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Yes, I did mistake first, but py3k fails even in correct directory. E:\python-dev\py3k\Lib\test>py3k --version Python 3.0a3+ E:\python-dev\py3k\Lib\test>py3k regrtest.py -R :: test_os.py test_os test_os skipped -- cannot import name _Abstract 1 test s

[issue2223] regrtest.py -R not working

2008-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I can see test_collections.py failure even on r61203 (just before Christian's commit) - r61098 (removed abc._Abstract) E:\python-dev\trunk\Lib\test>py regrtest.py -R :: test_collections.py test_collections beginning 9 repetitions 123456

[issue2223] regrtest.py -R not working

2008-03-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: >I'll run py regrtest.py -R :: on r61203 - r61098 and compare its >result to Alexander's result, but my machine is damn slow, probably >it'll take long time. Sorry, I abandoned this at test_compiler. Please forget this sentense...

[issue2223] regrtest.py -R not working

2008-03-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I wrote simple patch to workaround this problem. (avoid to reuse DocTestSuite) # To my eyes, doctest.DocTestSuite(module=collections) # and test_support.run_doctest(collections, verbose) # are doing same test??? Added file: http://bugs.python.org/file9601

[issue2231] Memory leak in itertools.chain()

2008-03-04 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto: Fixed memory leak in itertools.chain(). This fixes following refleak errors shown in issue2223. test_deque test_heapq test_itertools test_list test_set test_userlist -- components: Extension Modules files: fix_leak.patch keywords: patch messages

[issue2223] regrtest.py -R not working

2008-03-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I did more investigation. Failure on second DocTestSuite run happens because lib/doctest.py (2107) test.globs.clear() is executed after first test runs. I don't know if this is bug or not. Document in doctest.py says test.globs will be untouched on fa

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

2008-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I reproduced this bug with VC6 + Win2000SP4 + following code. '+\xc1'.decode("utf7", "ignore") and this simple patch prevented crash. Index: Objects/unicodeobject.c =

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

2008-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: One more thing. "ignore" is not needed. '+\xc1'.decode("utf7") crashed my interpreter. __ Tracker <[EMAIL PROTECTED]&g

[issue2222] Memory leak in os.rename?

2008-03-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Alexander, I've looked into Python/getargs.c, I think posix_2str code is fine. (PyArg_ParseTuple with format "et") After conversion succeeded on path1, addcleanup() adds memory buffer for path1 into freelist. When error happend on path2, its

[issue2301] [Py3k]

2008-03-16 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: Following code # coding: utf-8 print "年" outputs C:\Documents and Settings\WhiteRabbit>py3k b.py File "b.py", line 3 print "年" as expected, but following code # coding: cp932 print

[issue2301] [Py3k] No text shown when SyntaxError (when not UTF8)

2008-03-16 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: -- title: [Py3k] -> [Py3k] No text shown when SyntaxError (when not UTF8) __ Tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue2301] [Py3k] No text shown when SyntaxError (when not UTF8)

2008-03-16 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Probably same problem exists in PyErr_ProgramText(). __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2301] [Py3k] No text shown when SyntaxError (when not UTF8)

2008-03-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Hello. I tracked down source code and found where err->text is set. Index: Parser/parsetok.c === --- Parser/parsetok.c (revision 61411) +++ Parser/parsetok.c

[issue2301] [Py3k] No text shown when SyntaxError (when not UTF8)

2008-03-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: > I was confusing it with a regular exception, e.g. > print("年",a) I'm now invesigating this problem. This comes from another reason. Please look at fp_setreadl in Parser/tokenizer.c. This function opens file u

[issue2301] [Py3k] No text shown when SyntaxError (when not UTF8)

2008-03-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: >However, I also fail to reproduce the problem on OSX. I get > > File "a.py", line 3 >print "�N" > ^ >SyntaxError: invalid syntax Umm, strange... I can output correct result eve

[issue2301] [Py3k] No text shown when SyntaxError (when not UTF8)

2008-03-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: >I'm now invesigating this problem. This comes from another reason. Of course, even if this line number problem is fixed, encoding problem still remains. Probably I'll look at it next. ___

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-03-17 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: Hello. I found another problem related to issue2301. SyntaxError cursor "^" is shifted when multibyte characters are in line (before "^"). I think this is because err->text is stored as UTF-8 which r

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-03-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: > I tried to fix this problem, but I'm not sure how to fix this. Quick observation... /// // Possible Solution 1. Convert err->text to console compatible encoding (not to source encoding

[issue2384] [Py3k] line number is wrong after encoding declaration

2008-03-18 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: # This issue inherits from issue2301. If there is "# coding: " is in source code and coding is neigher utf-8 nor iso-8859-1, line number (tok->lineno) becomes wrong. Please look into Parser/tokenizer.c.

[issue1720] VC6 build patch for release-maint25

2008-03-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: issue2065 contains the patch for this branch too, so I'll close this issue. -- resolution: -> duplicate status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http:/

[issue1700463] VC6 build patch for trunk

2008-03-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: issue2065 contains the patch for this branch too, so I'll close this issue. -- resolution: -> duplicate status: open -> closed _ Tracker <[EMAIL PROTECTED]>

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-03-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: > (I assumed get_length_in_bytes(f, " ", 1) == 1 but I'm not sure > this is always true in other platforms. Probably nicer and more > general solution may exist) This assumption still lives, but I ca

[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-03-19 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9723/experimental.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2384] [Py3k] line number is wrong after encoding declaration

2008-03-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Following dirty hack workarounds this bug. Comment of this function says not ascii compatible encoding is not supported yet, (ie: UTF-16) so probably this works. Index: Parser/token

[issue2484] Cosmetic patch for warning "unused variable"

2008-03-25 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: "int i,j;" in inner block is hiding "Py_ssize_t i,j;" -- components: Extension Modules files: fix_warning.patch keywords: patch, patch messages: 64499 nosy: ocean-city severity: normal status: open

[issue2484] Cosmetic patch for warning "unused variable"

2008-03-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I've confirmed trunk doesn't have this problem. Probably this is merge issue. r57928 changed the position of "int i,j" in py3k, but not changed in trunk, so when r61864 was merged into py3k some

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

2008-03-26 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9424/ocean.zip __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2065> __

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

2008-03-26 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9456/ocean.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

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

2008-03-26 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9577/ocean.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

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

2008-03-26 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9595/ocean.zip __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2065> __

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

2008-03-26 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file9873/ocean.zip __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2065> __

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

2008-03-28 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file9885/ocean.zip __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2065> __

[issue1700463] VC6 build patch for trunk

2008-04-01 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9044/vc6-trunk-ver4.patch _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

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