[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-10 Thread atsuo ishimoto
atsuo ishimoto added the comment: PyErr_Print() is called to report exception raised by codec. If PyUnicode_DecodeUTF8() or PyUnicode_AsEncodedString() return NULL, PyErr_Print() is called. _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-10 Thread atsuo ishimoto
atsuo ishimoto added the comment: Sorry for insufficient comment. When a codec raised an exception, I think the exception should be reported. Otherwise, user cannot know why Python prints broken line of code. Should we silently clear the exception raised by codecs, or print a message such

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-11 Thread atsuo ishimoto
atsuo ishimoto added the comment: Codecs would hardly ever raises exception here. Usually, exception raised here would be a MemoryError. The unicode string we are trying to encode is just decoded by same codec. If codec raises exception other than MemoryError, the codec will likely have

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-10-15 Thread atsuo ishimoto
atsuo ishimoto added the comment: That's fine with me. Please replace PyErr_Print() with PyErr_Clear(). _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.or

[issue1031213] Use correct encoding for printing SyntaxErrors

2007-11-14 Thread atsuo ishimoto
atsuo ishimoto added the comment: In release25-maint, PyErr_Print() should be replaced with PyErr_Clear() also. _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-25 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: -1 from me. - I hate to see Unicode exceptions here. It would be an another source of mysterious Unicode exception. Programmers and users would be confused by error message. If you make such characters error, Python should raise an OSError or such. - File

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-25 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: On Wed, Oct 26, 2011 at 9:12 AM, STINNER Victor wrote: > > STINNER Victor added the comment: > > Le 26/10/2011 01:32, Atsuo Ishimoto a écrit : >> - I don't think filenames cannot be decoded in ANSI code page are rare >> enough to

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: On Wed, Oct 26, 2011 at 3:36 PM, Yuval Greenfield wrote: > If the current situation isn't fixed though - you just can't use the > resulting path for almost anything. Do you have a use case Ishimoto? I don't have use case. But does raisi

[issue11346] Generator object should be mentioned in gc module document

2011-02-27 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : In the gc.garbage of the library ref of gc module, ... this list contains only objects with __del__() methods. This is not true, since gc.garbage will contain generator object with try-finally block. -- assignee: docs@python components

[issue11346] Generator object should be mentioned in gc module document

2011-02-27 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Oh, Not only try-finally block, generators contains try-except or with block will be added to gc.garbage. -- ___ Python tracker <http://bugs.python.org/issue11

[issue2630] repr() should not escape non-ASCII characters

2008-05-28 Thread Atsuo Ishimoto
Atsuo Ishimoto <[EMAIL PROTECTED]> added the comment: docdiff1.txt contains a documentation for functions I added. Added file: http://bugs.python.org/file10456/docdiff1.txt ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2630] repr() should not escape non-ASCII characters

2008-06-01 Thread Atsuo Ishimoto
Atsuo Ishimoto <[EMAIL PROTECTED]> added the comment: diff5.txt contains both code and documentation patch for PEP 3138. - In this patch, default error-handler of sys.stdout is always 'strict'. Added file: http://bugs.python.org/fil

[issue2630] repr() should not escape non-ASCII characters

2008-06-03 Thread Atsuo Ishimoto
Atsuo Ishimoto <[EMAIL PROTECTED]> added the comment: This patch contains following changes. - Added the new C API PyObject_ASCII() for consistency. - Added the new string formatting operater for str.format() and PyUnicode_FromFormat. Added file: http://bugs.python.org/file10507/dif

[issue2630] repr() should not escape non-ASCII characters

2008-06-03 Thread Atsuo Ishimoto
Atsuo Ishimoto <[EMAIL PROTECTED]> added the comment: BTW, are new C APIs and functions should be ported to Python 2.6 for compatibility, without modifing repr() itself? If so, I'll prepare a patch for Python 2.6. ___ Python tracker <[EMAIL PRO

[issue2630] repr() should not escape non-ASCII characters

2008-06-03 Thread Atsuo Ishimoto
Atsuo Ishimoto <[EMAIL PROTECTED]> added the comment: Thank you for your review! I filed a new patch just before I see your comments. On Tue, Jun 3, 2008 at 7:13 PM, Georg Brandl <[EMAIL PROTECTED]> wrote: > > Georg Brandl <[EMAIL PROTECTED]> added the comment: >

[issue2630] repr() should not escape non-ASCII characters

2008-06-03 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10511/diff7.txt ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2630] repr() should not escape non-ASCII characters

2008-06-03 Thread Atsuo Ishimoto
Atsuo Ishimoto <[EMAIL PROTECTED]> added the comment: I updated the patch as per Georg's advice. Added file: http://bugs.python.org/file10511/diff7.txt ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2630] repr() should not escape non-ASCII characters

2008-06-03 Thread Atsuo Ishimoto
Atsuo Ishimoto <[EMAIL PROTECTED]> added the comment: I'm sorry, I missed a file to be uploaded. diff7_1.txt is correct file. Added file: http://bugs.python.org/file10512/diff7_1.txt ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2630] repr() should not escape non-ASCII characters

2008-06-04 Thread Atsuo Ishimoto
Atsuo Ishimoto <[EMAIL PROTECTED]> added the comment: stringlib can be compiled for Python 2.6 now, but the '!a' converter is disabled by #ifdef for now. Added file: http://bugs.python.org/file10518/diff8.patch ___ Python tracker <[EMAI

[issue2630] repr() should not escape non-ASCII characters

2008-06-11 Thread Atsuo Ishimoto
Atsuo Ishimoto <[EMAIL PROTECTED]> added the comment: Great, thank you! ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2630> ___ ___ Python

[issue2630] repr() should not escape non-ASCII characters

2008-04-14 Thread atsuo ishimoto
New submission from atsuo ishimoto <[EMAIL PROTECTED]>: In py3k, repr() escapes non-ASCII characters in Unicode to \u as Python 2. This is unpleasant feature if you are working with non-latin characters. This issue was once discussed by Hye-Shik Chang[1], but was rejected. Here&#

[issue2630] repr() should not escape non-ASCII characters

2008-04-14 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: > I think this has potential, but it is too liberal. There are many more > characters that cannot be assumed printable, e.g. many of the Latin-1 > characters in the range 0x80 through 0x9F. Isn't there some Unicod

[issue2630] repr() should not escape non-ASCII characters

2008-04-14 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: > What if we turn on the backslashreplace trick for some operations only? > For example: sys_displayhook and sys_excepthook. It would be difficult, since *_repr() API don't know

[issue2630] repr() should not escape non-ASCII characters

2008-04-14 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: Okay, I'll revise a patch later today. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2630> __ _

[issue2630] repr() should not escape non-ASCII characters

2008-04-15 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: I revised a patch against Python 3.0a4. - As-per suggestion from Michael Urman, unicode_repr() refers unicode database to determine characters to be hex-encoded. - sys.stdout doesn't use 'backslashreplace

[issue2630] repr() should not escape non-ASCII characters

2008-04-15 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: I think sys.stdout need to have backslashreplace error handler. Without backslashreplace, print(listOfJapaneseString) prints nothing, but raises an exception. This is worse than Python2. __ Tracker &

[issue2630] repr() should not escape non-ASCII characters

2008-04-15 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: Sorry, I missed to write "for interactive session". I agree for sys.stdout and other files should not have default backslashescape, but for iteractive session, I think sys.stdout can have backslasespape handler to

[issue2630] repr() should not escape non-ASCII characters

2008-04-16 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: > If you do want to have this more flexible, then make the encoding used > by unicode_repr() adjustable, turn the existing code into a codec (e.g. > "unicode-repr") and leave it setup as default. Turning code

[issue2630] repr() should not escape non-ASCII characters

2008-04-17 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: Is a codec which encode() returns an Unicode allowed in Python3? I started to think codec is not nessesary, but python function is enough. __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2630] repr() should not escape non-ASCII characters

2008-05-04 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: New patch agaist current py3k branch. All the regr tests faild by my patch is now fixed as far as I can run. I also modified a doctest module a bit, so should be reviewed by module owners. Added file: http://bugs.python.org/file10193

[issue2630] repr() should not escape non-ASCII characters

2008-05-05 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: I forgot to mention to Modules/unicodename_db.h. The current unicodename_db.h looks it was generated by old Tools/unicode/makeunicodedata.py. This patch includes newly generated unicodename_db.h, but we can exclude the change

[issue2630] repr() should not escape non-ASCII characters

2008-05-06 Thread atsuo ishimoto
atsuo ishimoto <[EMAIL PROTECTED]> added the comment: > No need to change anything, the diff is just too big for the code > review tool (Rietveld), but since it consists only of numbers we don't > need to review it anyway. :) I wonder why unicodename_db.h ha

[issue4491] email.Header.decode_header() doesn't work if encoded-word was separeted by CRLF

2008-12-02 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto <[EMAIL PROTECTED]>: email.Header.decode_header() doesn't work if encoded-word was separeted by CRLF. For exmaple, decode_header('=?iso-8859-1?q?hello?=\r\n world.') returns [('=?iso-8859-1?q?hello?=\r\n world.', None)], not [(&

[issue4846] Py_UNICODE_ISSPACE causes linker error

2009-01-05 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : When I use Py_UNICODE_ISSPACE() in my C++ extension, I got following error. test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned char const * const _Py_ascii_whitespace" (__imp_?_Py_ascii_whitespace@@3QBEB) ref

[issue5126] Space character returns false from isprintable() method

2009-02-01 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: I'm sorry, looks like my fault. I attached a patch to fix issue. This patch contains re-generated unicodetype_db.h. I downloaded Unicode 5.1.0 and Unicode 3.2.0 files from unicode.org to re-generate. -- keywords: +patch Added file:

[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1

2020-10-22 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: multiprocessing module used to work multithread environment until https://bugs.python.org/issue35943 merged. I guess we can make multiprocessing thread-safe again if we move local imports to global. Does it make sense? -- nosy: +ishimoto

[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1

2020-10-22 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Some my observation at https://discuss.python.org/t/differences-between-3-8-and-3-9-in-importing-module/5520 . -- ___ Python tracker <https://bugs.python.org/issue41

[issue35943] PyImport_GetModule() can return partially-initialized module

2020-10-23 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: After this fix, some functions like multiprocessing.Pool cannot be used in threaded code(https://bugs.python.org/issue41567). importerror-sample.tgz contains simplified code to reproduce the same error without multiprocessing module. Is this an expected

[issue36164] Updating Py_InspectFlag programmatically

2019-03-01 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : I sometime use a hack to start interactive console after running script. .. code-block:: python import os os.environ['PYTHONINSPECT'] = 'x' print("Hello") This hack works because ``PYTHONINSPECT`` is checked `he

[issue16482] pdb.set_trace() clobbering traceback on error

2017-12-20 Thread Atsuo Ishimoto
Change by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <https://bugs.python.org/issue16482> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17277] incorrect line numbers in backtrace after removing a trace function

2017-12-20 Thread Atsuo Ishimoto
Change by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <https://bugs.python.org/issue17277> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18113] Memory leak in curses.panel

2013-05-31 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto: Objects associated to the panel with panel.set_userptr() are never DECREF()ed. Attached file is script to reproduce the leak. Confirmed with Python2.7/3.3. -- files: userptr-leak.py messages: 190433 nosy: ishimoto priority: normal severity: normal

[issue7171] Add inet_ntop and inet_pton support for Windows

2012-07-15 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Implementation of inet_pton and inet_ntop by WSAAddressToStringA and WSAStringToAddressA for Windows. Conversion of IPv6 address might fail if IPv6 is not installed. Tested on Windows XP SP3 and Windows7. -- keywords: +patch nosy: +ishimoto Added

[issue1492704] distinct error type from shutil.move()

2012-07-16 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Cleaned up the patch. Gennadiy added a test of shutil.move(), but SameFileError will be raised only if shutil.copy() was called. Am I missing something? -- nosy: +ishimoto Added file: http://bugs.python.org/file26394/issue1492704_new.patch

[issue1492704] distinct error type from shutil.move()

2012-07-16 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Behavior is not changed at all. I fixed test_shutil.py to test if SameFileError is raised in shutil.copy() instead of shutil.move(). -- ___ Python tracker <http://bugs.python.org/issue1492

[issue1492704] distinct error type from shutil.move()

2012-07-16 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: So, the title of this issue is misleading. The patch originally proposed by Zooko does not raise SameFileError in shutil.move(). If source and destination is same file, shutil.move() may raise exception, but the exception is NOT SameFileError but OSError or

[issue1492704] distinct error type from shutil.move()

2012-07-16 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Well, I happy to improve patch. But, on Linux and Windows, shutil.move() does not raise any exception if source and destination are identical. If we change the behavior, I'm afraid we would break a lot of existing applica

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-16 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Ooops, shutil.move() will raise SameFileError if destination is directory. I'll investigate the patch further more. -- ___ Python tracker <http://bugs.python.org/issu

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-16 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Patch updated. - SameFileError is now derived from EnvironmentError. - Fixed documentation. - Fixed test method name. I investigated this patch: - shutil.copyfile() and shutil.copy() raises SameFileError if source and destination are same file

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-16 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: >> - SameFileError is now derived from EnvironmentError. > >Why? oh, sorry, I misunderstood you suggested to do so. -- ___ Python tracker <http://bugs.python.o

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-07-16 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Patch updated. - SameFileError is reverted to be derived from shutil.Error as original patch. -- Added file: http://bugs.python.org/file26406/issue1492704_new_3.patch ___ Python tracker <http://bugs.python.

[issue15411] os.chmod() does not follow symlinks on Windows

2012-07-21 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : os.chmod() should check symlinks if followsymlinks option is True on Windows. This is a cause of failure of test case test.test_shutil.TestShutil.test_copymode_follow_symlinks (#13837) -- components: Library (Lib), Windows files

[issue13837] test_shutil fails with symlinks enabled under Windows

2012-07-21 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Error in test_copymode_follow_symlinks is adderessed in #15411. -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue13

[issue15411] os.chmod() does not follow symlinks on Windows

2012-07-21 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Patch updated. Check symlinks only if supported by platform. -- Added file: http://bugs.python.org/file26463/issue1492704_new_2.patch ___ Python tracker <http://bugs.python.org/issue15

[issue15411] os.chmod() does not follow symlinks on Windows

2012-07-21 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : Removed file: http://bugs.python.org/file26463/issue1492704_new_2.patch ___ Python tracker <http://bugs.python.org/issue15411> ___ ___ Pytho

[issue15411] os.chmod() does not follow symlinks on Windows

2012-07-21 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : Added file: http://bugs.python.org/file26464/chmod_symlink_win32_2.patch ___ Python tracker <http://bugs.python.org/issue15411> ___ ___ Pytho

[issue9949] os.path.realpath on Windows does not follow symbolic links

2012-07-22 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Yet another patch to support symlink on Windows. -- nosy: +ishimoto Added file: http://bugs.python.org/file26487/issue9949.patch ___ Python tracker <http://bugs.python.org/issue9

[issue13837] test_shutil fails with symlinks enabled under Windows

2012-07-23 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Error in test_move_dangling_symlink is fixed by #9949 -- ___ Python tracker <http://bugs.python.org/issue13837> ___ ___ Pytho

[issue5619] Pass MS CRT debug flags into subprocesses

2012-07-24 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue5619> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : test_posixpath.PosixCommonTest.test_nonascii_abspath fails on Japanese edition of Windows. If a file name was invalid byte character, os.chdir() raises UnicodeDecodeError() instead of WindowsError. This is a byte-api issue on Windows, so we may be able to

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: changed name of test method. In the old patch, new test method shadowed existing one. -- Added file: http://bugs.python.org/file26502/test_nonascii_abspath_2.patch ___ Python tracker <http://bugs.python.

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : Removed file: http://bugs.python.org/file26500/test_nonascii_abspath.patch ___ Python tracker <http://bugs.python.org/issue15441> ___ ___ Pytho

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : Removed file: http://bugs.python.org/file26502/test_nonascii_abspath_2.patch ___ Python tracker <http://bugs.python.org/issue15441> ___ ___

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-24 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: I'm sorry, I generated a patch in wrong direction. -- Added file: http://bugs.python.org/file26506/issue15441.patch ___ Python tracker <http://bugs.python.org/is

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-07-24 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: This patch looks good to me. I generated a patch for current trunk, with some cosmetic changes. -- nosy: +ishimoto Added file: http://bugs.python.org/file26507/issue15207.patch ___ Python tracker <h

[issue2122] mmap.flush does not check for errors on windows

2012-07-24 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue2122> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-25 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Yes, I know #13374, that's why I wrote > This is a byte-api issue on Windows, so we may be able to simply skip > this test. Do you think we need a patch to avoid UnicodeDecodeError raised? Or should we change test t

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-25 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Here's another try: In this patch: - skip test_nonascii_abspath() test since it fails on some code pages. - Added a test to reproduce bug on latin code pages. - Use repr(filename) only if decode failed. This is more backward-compatible and does not

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-25 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: martin: while os.mkdir(b'\xe7w\xf0') succeeds, but strangely enough, subsequent os.chdir(b'\xe7w\xf0') fails. This is not a bug in Python, but Windows issue. -- ___ Python tracker <

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-25 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Updated patch again. In this patch, byte object is passed as argument to WindowsError as Victor's patch. I prefer to fix PyErr_SetFromWindowsErrWithFilename() over path_error(), because PyErr_SetFromWindowsErrWithFilename() is public API, so someone ma

[issue15441] test_posixpath fails on Japanese edition of Windows

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: > chcp does only change the OEM code page, whereas Python uses the ANSI code > page for sys.getfilesystemencoding(). Sorry, I should have investigated the code more carefully. > Attached patch win32_bytes_filename.patch tries to solve both is

[issue10296] ctypes catches BreakPoint error on windows 32

2012-07-26 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue10296> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: On Windows, 'target_is_directory' is required for directory symlink. python -c "import os; os.mkdir('bar'); os.symlink('bar', 'foo', target_is_directory=True); print(os.path.isdir('foo'))" True S

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: ah, thank you for pointer! I should have googled before I wrote. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Jason: You can re-activate test you disabled if you use target_is_directory. Please take a look at a issue15093.patch. -- keywords: +patch Added file: http://bugs.python.org/file26527/issue15093.patch ___ Python

[issue15093] ntpath.isdir returns False for directory symlinks

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: I think we can close this ticket as "won't fix". -- ___ Python tracker <http://bugs.python.org/issue15093> ___ ___

[issue12034] check_GetFinalPathNameByHandle() suboptimal

2012-07-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Patch to cache result of check_GetFinalPathNameByHandle(). -- keywords: +patch nosy: +ishimoto Added file: http://bugs.python.org/file26535/issue12034.patch ___ Python tracker <http://bugs.python.org/issue12

[issue14135] check for locale changes in test.regrtest

2012-07-27 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Patch to check if locale was changed. Since I'm not sure where to put tests for test.regrtest, I created new file, test.test_regrtest. -- keywords: +patch nosy: +ishimoto Added file: http://bugs.python.org/file26540/issue14135.

[issue9035] os.path.ismount on windows doesn't support windows mount points

2012-07-27 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue9035> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9035] os.path.ismount on windows doesn't support windows mount points

2012-07-28 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Patch to expose GetVolumePathName() and implementation of ismount(). Tested on Windows7/XP. -- keywords: +patch Added file: http://bugs.python.org/file26558/issue9035.patch ___ Python tracker <http://bugs.python.

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-07-29 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: +1 for keeping the file name unchanged. This solution is not very compatible with prior versions, but simple and least-surprise. I prefer other platforms than Windows to use same method to build OSError

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-30 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: patch contains fix and test for 2.7. With this patch, AttibuteError is captured as Tim sujested. -- keywords: +patch nosy: +ishimoto Added file: http://bugs.python.org/file26595/issue15267.patch ___ Python tracker

[issue1610654] cgi.py multipart/form-data

2012-07-30 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue1610654> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8847] crash appending list and namedtuple

2012-07-30 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue8847> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14302] Move python.exe to bin/

2012-07-30 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue14302> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6132] Implement the GIL with critical sections in Windows

2012-07-30 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue6132> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7671] test_popen fails if path contains special char like ";"

2012-07-30 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue7671> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4722] _winreg.QueryValue fault while reading mangled registry values

2012-07-30 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue4722> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7686] redundant open modes 'rbb', 'wbb', 'abb' no longer work on Windows

2012-07-30 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue7686> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15486] Standardised mechanism for stripping importlib frames from tracebacks

2012-07-30 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue15486> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2012-07-31 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: I found 'more' command in Windows7 requires \r\n. Python 2.7.3: C:\>python -c "for i in range(5):print(i)"|more 0 1 2 3 4 Python 3.3(trunk): c:\src\cpython\PCbuild>python -c "for i in range(5):print(i)"|mo

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2012-08-01 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Test for this issue. Tested on Windows7, Ubuntu linux 12.04. I wonder why "print(1, file=sys.stderr)" returns '1' instead of '1\n'. But in Python2.7, "print >>sys.stderr, 1" also returns '1', so t

[issue15216] Support setting the encoding on a text stream after creation

2012-08-02 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker <http://bugs.python.org/issue15216> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2012-08-02 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: On Fri, Aug 3, 2012 at 5:16 AM, STINNER Victor wrote: >> I wonder why "print(1, file=sys.stderr)" returns '1' instead of '1\n'. > > I suppose that you mean "returns '1\n' instead of '1'"

[issue15555] Default newlines of io.TextIOWrapper

2012-08-04 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto: In http://docs.python.org/dev/library/io.html: "if newline is None, any '\n' characters written are translated to the system default line separator, os.linesep. " But os.linesep is not referred at all. On Windows default newline

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2012-08-04 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Fix for test_httpservers -- Added file: http://bugs.python.org/file26694/issue13119_httpserver.patch ___ Python tracker <http://bugs.python.org/issue13

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2012-08-04 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Sorry, please ignore the patch 'issue13119_httpserver.patch' I posted above. Behavior of "-u" commandline option in Python3.3 is differ than in Python 2. We should not convert newline characters if "-u" spe

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2012-08-04 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: We should not convert \n with -u command line option or PYTHONUNBUFFERED was set. Added a patch to fix error in test_httpservers. -- Added file: http://bugs.python.org/file26695/issue13119_unbuffered.patch

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2012-08-05 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Antoine Pitrou added the comment: > >> We should not convert \n with -u command line option or PYTHONUNBUFFERED was >> set. > > Why that? What do universal newlines have to do with buffering? Man page of Python says -u Force stdin, s

[issue13119] Newline for print() is \n on Windows, and not \r\n as expected

2012-08-05 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: > I don't know which version it is, but current 3.3 says: Ah, sorry, I thought I was reading latest Man page. -- ___ Python tracker <http://bugs.python.org

  1   2   >