[issue5282] mmap.resize and offset

2009-02-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file13117/fix_offset_and_resize.patch ___ Python tracker <http://bugs.python.org/issue5

[issue2733] mmap resize fails on anonymous memory (Windows)

2009-02-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Tim, I confirmed your test fails on my machine, and is fixed by your patch. I want to commit this. Can I? -- components: +Extension Modules, Windows -Library (Lib) nosy: +ocean-city stage: -> commit review versions: +Python 2.6, Python 2.7, Pyt

[issue5282] mmap.resize and offset

2009-02-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I hope this is obvious too. Fixed in r69718. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue2733] mmap resize fails on anonymous memory (Windows)

2009-02-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I reconsidered this issue. When mmap is anonymous, self->file_handle == INVALID_HANDLE_VALUE (-1), so we should not call SetFilePointer and SetEndOfFile for this handle. And the behavior of mmap.resize is not documented clearly though, current behavior

[issue2733] mmap resize fails on anonymous memory (Windows)

2009-02-18 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file13131/mmapmodule.patch ___ Python tracker <http://bugs.python.org/issue2733> ___ ___ Python-bug

[issue5306] Python 3.1 won't compile under Visual Studio 2005

2009-02-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I think change for posixmodule.c is missing from r69495. (I confirmed other merges don't include posixmodule.c modification) Attached patch will fix this. (I don't have VS2005 or later, so I cannot test this on my machine) -- keywords: +

[issue5306] Python 3.1 won't compile under Visual Studio 2005

2009-02-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: And I think r69268 should be merged too. ___ Python tracker <http://bugs.python.org/issue5306> ___ ___ Python-bugs-list mailin

[issue5325] "SyntaxError: None" when the name of the dir contains non-ascii chars

2009-02-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Can you try this with 3.0.1? http://python.org/download/releases/3.0.1 -- nosy: +ocean-city ___ Python tracker <http://bugs.python.org/issue5

[issue5325] "SyntaxError: None" when the name of the dir contains non-ascii chars

2009-02-20 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, I'll close this entry. -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python

[issue5335] mmap can crash with tagname (on windows)

2009-02-20 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : I noticed following code crashes on windows. Attached patch will fix this. / // Crash code import mmap, tempfile f = tempfile.TemporaryFile() m1 = mmap.mmap(f.fileno(), 1000, tagname="foo") m2 = mmap.mma

[issue5335] mmap can crash with tagname (on windows)

2009-02-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This is duplicated issue of issue1733986. So I'll closing... -- resolution: -> duplicate status: open -> closed superseder: -> mmap.mmap can overrun buffer ___ Python tracker <http://bugs.pyt

[issue1733986] mmap.mmap can overrun buffer

2009-02-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I came from issue5335. I think attached patch will fix this issue. -- keywords: +patch nosy: +ocean-city priority: normal -> high type: -> crash versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/fil

[issue5316] Buildbot failures in test_site

2009-02-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Probably attached patch will fix this issue. But this patch doesn't cover other similar problematic codes. It seems this is multi inheritance problem. Following code shows B.setUp and B.tearDown are called twice respectively. (In this issue, B repre

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-02-26 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Patch attached. -- components: +Extension Modules -Library (Lib) keywords: +patch nosy: +ocean-city versions: +Python 3.1 Added file: http://bugs.python.org/file13192/py3k_fix_array_fromfile.patch ___ Python

[issue5380] pty.read raises IOError when slave pty device is closed

2009-02-27 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I think this is not array modules' bug. Attached test program outputs different results on trunk/py3k. debian:~/python-dev/trunk# ./python /mnt/windows/simple_test.py os.pipe: success pty.openpty: success debian:~/python-dev/py3k# ./python /mnt/wi

[issue5380] pty.read raises IOError when slave pty device is closed

2009-02-27 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This OSError(5) happens when we tries to read from pty after data runs out. So simple_test_2.py fails with same error even if we don't use io module. Modules/posixmodule.c (posix_read) simply calls read(2) once, but io module while avai

[issue5380] pty.read raises IOError when slave pty device is closed

2009-02-27 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue5380> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5384] mmap and exception type

2009-02-27 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : It seems mmap module is using inappropriate exception types. For example, if (! (PyString_Check(v)) ) { PyErr_SetString(PyExc_IndexError, "mmap slice assignment must be a s

[issue5385] mmap can crash after resize failure (windows)

2009-02-27 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : On windows, after mmap.resize fails, self->map_handle becomes NULL, but it should become INVALID_HANDLE_VALUE otherwise CHECK_VALID is passed through, it can cause crash like bellow. import mmap m = mmap.mmap(-1, 5) try: m.resize(-1) exc

[issue5385] mmap can crash after resize failure (windows)

2009-02-27 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- type: -> crash ___ Python tracker <http://bugs.python.org/issue5385> ___ ___ Python-bugs-list mailing list Unsubscri

[issue5386] mmap can crash with write_byte

2009-02-27 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : mmap.write_byte doesn't check buffer size, so it can cause crash like bellow. import mmap m = mmap.mmap(-1, 1) for i in xrange(1): # enough? print i m.write_byte('1') # crash The patch is in r69945. -- components: Ex

[issue5387] mmap.move crashes by integer overflow

2009-02-27 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : mmap.move crashes by integer overflow. See http://www.nabble.com/Segv-in-mmap.move()-td18617044.html import mmap data = mmap.mmap(-1, 1) data.move(1,1,-1) # crash Maybe mmap.move should use Py_ssize_t and raise IndexError(OverflowError?) for negative

[issue5386] mmap can crash with write_byte

2009-02-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Fixed in r70052(trunk), r70053(py3k). -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5391] mmap: read_byte/write_byte and object type

2009-02-28 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : On Python3000, mmap.read_byte returns str not bytes, and mmap.write_byte accepts str. Is this intended behavior? >>> import mmap >>> m = mmap.mmap(-1, 10) >>> type(m.read_byte()) >>> m.write_byte("a") >

[issue1733986] mmap.mmap can overrun buffer

2009-02-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Fixed in r70056(trunk) and r70057(py3k). -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue5391] mmap: read_byte/write_byte and object type

2009-02-28 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- versions: -Python 3.0 ___ Python tracker <http://bugs.python.org/issue5391> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5391] mmap: read_byte/write_byte and object type

2009-02-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I think more *bytes* cleanup is needed for mmap module documentation & implementation. (and other modules?) Especially mmap.find() and its friends. >>> import mmap >>> m = mmap.mmap(-1, 10) >>> m[:] = b"0123456789"

[issue5391] mmap: read_byte/write_byte and object type

2009-02-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Patch attached. read_byte and write_byte use integer as byte, and other bytes related cleanup. -- keywords: +patch Added file: http://bugs.python.org/file13215/py3k_mmap_and_bytes.patch ___ Python tracker <h

[issue5403] test_md5 segfault

2009-03-01 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : I noticed test_md5 and test_multiprocessing crashed on trunk. I hope attached patch will fix this issue. (Maybe the patch can be simplified with goto) -- components: Extension Modules files: fix_md5_without_goto.patch keywords: patch messages

[issue5385] mmap can crash after resize failure (windows)

2009-03-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Or, use NULL as invalid handle value for map handle instead of INVALID_HANDLE_VALUE. Maybe this is simpler. -- keywords: +patch Added file: http://bugs.python.org/file13230/fix_mmap_resize_v2.patch ___ Python

[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry for interruption. Maybe is this CRT internal hack needed for debug build only? I believe _ASSERTE is only enabled for debug build. ___ Python tracker <http://bugs.python.org/issue5

[issue5403] test_md5 segfault

2009-03-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This one was fixed in r70119. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5407] Broken Py3.1 release build in Visual Studio 2005

2009-03-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: OK, sorry for interruption. ___ Python tracker <http://bugs.python.org/issue5407> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5410] msvcrt bytes cleanup

2009-03-03 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : I came from issue5391. Here is quote of Victor's message. >* msvcrt.putch(char), msvcrt.ungetch(char): msvcrt has also: > - msvcrt.getch()->byte string of 1 byte > - msvcrt.getwch()->unicode string of 1 character > - msvcrt.put

[issue5179] subprocess leaves open fds on construction error

2009-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This issue is not fixed on windows yet. (test_leaking_fds_on_error fails) I think attached patch will fix this. == ERROR: test_writes_before_communicate (__main__.ProcessTestCase

[issue5179] subprocess leaves open fds on construction error

2009-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, fixed in r70137(trunk), r70142(py3k), r70146(release30-maint), r70147(release26-maint) -- priority: release blocker -> high resolution: -> fixed status: open -> closed ___ Python track

[issue5273] 3.0.1 crashes in unicode path

2009-03-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- priority: -> release blocker ___ Python tracker <http://bugs.python.org/issue5273> ___ ___ Python-bugs-list mailing list Un

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-03-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- priority: -> release blocker versions: +Python 3.1 ___ Python tracker <http://bugs.python.org/issue5334> ___ ___ Python-

[issue5273] 3.0.1 crashes in unicode path

2009-03-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, fixed in r70157(py3k) and r70158(release30-maint) -- priority: release blocker -> resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.o

[issue4192] Subprocess error with I/O redirection to Pipes

2009-03-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Probably this happens because receiever.py doesn't wait for flooder.py termination, and pipe end is closed when recieiver.py terminates. Does this code work for you? p = subprocess.Popen("python flooder.py",stdin=subprocess.PIPE,stdout=

[issue4192] Subprocess error with I/O redirection to Pipes

2009-03-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This happens because when flooder.py terminates, its stdout will be closed, but another pipe end in receirver.py process is already closed, so Python\sysmodule.c(1098): _check_and_flush (FILE *stream) In this function, fflush() fails. The reason why error

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I believe this issue is duplicate of issue5273, and fixed yesterday. Can you try latest svn checkout? -- nosy: +ocean-city ___ Python tracker <http://bugs.python.org/issue5

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- dependencies: +3.0.1 crashes in unicode path resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5422] load pyc file with mbcs file system in update_compiled_module

2009-03-05 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- dependencies: -3.0.1 crashes in unicode path superseder: -> 3.0.1 crashes in unicode path ___ Python tracker <http://bugs.python.org/iss

[issue5385] mmap can crash after resize failure (windows)

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Fixed in r70189. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue2733] mmap resize fails on anonymous memory (Windows)

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: More two cents which I noticed. (After the patch was applied) 1. On windows, resize for anonymous map can clear its contents. >>> import mmap >>> m = mmap.mmap(-1, 10) >>> m[:] = "0123456789" >>> m[:] '

[issue2733] mmap resize fails on anonymous memory (Windows)

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: - Sorry for having clear solution for this. + Sorry for having no clear solution for this. ___ Python tracker <http://bugs.python.org/issue2

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Committed in r70203(py3k) -- priority: release blocker -> resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.o

[issue5435] test_httpservers on Debian Testing

2009-03-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I tried on coLinux(debian) and I got similar errors. But I'm not unix guy, I don't know well what "permission denied" means. debian:~/python-dev/py3k# ./python Lib/test/test_httpservers.py test_command (__main__.BaseHTTPServerTestCase)

[issue5435] test_httpservers on Debian Testing

2009-03-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Probably this is short code to reproduce "permission denied". import os, pwd nobody = pwd.getpwnam('nobody')[2] os.setuid(nobody) open("dummy.txt", "w").write("foo") # permission denied Still I cannot unde

[issue5387] mmap.move crashes by integer overflow

2009-03-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I tried r69943 on coLinux, and I got compile error "max is not defined". Here is updated patch. -- keywords: +patch message_count: 1.0 -> 2.0 Added file: http://bugs.python.org/file13272/fix_mm

[issue5489] Broken DLL

2009-03-14 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: The support for Win9x,Me,NT4 was dropped from python2.6. See http://www.python.org/dev/peps/pep-0011/ -- nosy: +ocean-city resolution: -> wont fix status: open -> closed ___ Python tracker

[issue5497] openssl compileerror with original source

2009-03-16 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : I ported "compile openssl without perl" scheme into PC/VC6 from PCBuild. And I noticed openssl compilation fails with a message "IDEA is disabled" if I use original source code from openssl homepage. I hope attached patch will

[issue5391] mmap: read_byte/write_byte and object type

2009-03-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: >In the python-dev thread, most people agree to use bytes in mmap. Did >anyone reviewed the patch? Well, there is no conclusion which of your choices (a or b) is preferred. http://www.nabble.com/What-type-of-object-mmap.read_byte-should-return-o

[issue5391] mmap: read_byte/write_byte and object type

2009-03-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Ah, no, this should not be backported to 3.0. Martin saids so in msg82904, and I agreed. -- ___ Python tracker <http://bugs.python.org/issue5

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-17 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- nosy: +ocean-city ___ Python tracker <http://bugs.python.org/issue5499> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2009-03-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I can reproduce this on coLinux(debian). But coLinux is running on windows, so its console behavior may not be same as native linux. (You need to use Ctrl+D on coLinux instead of Ctrl+Z) -- nosy: +ocean-city

[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2009-03-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: With following patch for investigation, (release30-maint) Index: Lib/io.py === --- Lib/io.py (revision 70450) +++ Lib/io.py (working copy) @@ -57,6 +57,7 @@ import os import abc +import

[issue5435] test_httpservers on Debian Testing

2009-03-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Hmm, I'm using coLinux with root user. (default) Maybe that's difference. -- ___ Python tracker <http://bugs.python.

[issue5544] test_fileio fials on windows MSVC Assertion

2009-03-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I cannot test this because I don't have recent VC, but last week change to _fileio.c is this. http://svn.python.org/view/python/branches/py3k/Modules/_fileio.c?r1=70187&r2=70352 On windows, lseek was used before, but _lseeki64 in portable_lseek is

[issue5596] memory leaks in 3.1

2009-03-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I hope attached patch will fix test_fileio leak. -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file13459/py3k_fix_leak_of_fileio.patch ___ Python tracker <http://bugs.python.

[issue5596] memory leaks in 3.1

2009-03-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I hope attached patch will fix leak of test_socket.py. Leak is happening in FileObjectClassTestCase#testFullRead and testCloseAfterMakefile. (actually, IOBase#readall) -- Added file: http://bugs.python.org/file13460

[issue1533105] NetBSD build with --with-pydebug causes SIGSEGV

2009-03-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: It seems not happening on VC6. Stack size modification was checked in r65663 to workaround this issue, but SEGV doesn't occur even if I reverted this change on working copy. But when I lowered stack size of python_d.exe too much, SEGV occurred. Pleas

[issue5596] memory leaks in 3.1

2009-03-30 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: About test_urllib2_localnet, this leak happens because FakeProxyHandler has class variable digest_auth_handler and its instance variables are modified. Following workaround can fix this leak, but I'm not sure this can be committed. Index: Lib

[issue5604] imp.find_module() mixes UTF8 and MBCS

2009-03-30 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: PyMem_Free is needed when "es" is used with PyArg_ParseTuple. See other part of import.c. I did same mistake before. ;-) -- nosy: +ocean-city ___ Python tracker <http://bugs.python.

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-03-30 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This issue seems to be fixed on py3k by r70755. (issue5236) -- ___ Python tracker <http://bugs.python.org/issue5239> ___ ___

[issue5497] openssl compileerror with original source

2009-03-30 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- nosy: +christian.heimes ___ Python tracker <http://bugs.python.org/issue5497> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2009-03-30 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Really? Hmm weird... I'm using Win2000, maybe are you using newer OS? Or maybe larger data is needed. This guy says error occurs around 200MB. (This is async IO though) >http://www.gamedev.net/community/forums/topic.asp?topic_id=382135 If this happ

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

2009-03-30 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Ah, I forgot this. Process#set_daemon doesn't exist on trunk, I had to use "p.daemon = True" instead. -- ___ Python tracker <http://bugs.py

[issue5614] Malloc errors in test_io

2009-03-30 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: >malloc: *** mmap(size=-9223372036854775808) failed Does this error occur even if you revert Modules/mmapmodule.c to r69214? I have touched this module recently (I believe I fixed only SEGV bugs, not changed behavior) so I want to know it. -- n

[issue5614] Malloc errors in test_io

2009-03-30 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, this is not related to mmap module... Forgot my comments. -- ___ Python tracker <http://bugs.python.org/issue5

[issue5614] Malloc errors in test_io

2009-03-30 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- nosy: -ocean-city ___ Python tracker <http://bugs.python.org/issue5614> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1685453] email package should work better with unicode

2009-03-30 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Probably these are related too. #5259 #5304 -- dependencies: +email/base64mime.py cannot work, smtplib is broken in Python3 nosy: +ocean-city ___ Python tracker <http://bugs.python.org/issue1685

[issue5387] mmap.move crashes by integer overflow

2009-03-31 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Well, I think your patch has some issues. >>> import mmap >>> m = mmap.mmap(-1, 10) >>> m.move(10, 10, 0) # legal, should not fail Traceback (most recent call last): File "", line 1, in ValueError: source out of ra

[issue5002] multiprocessing/pipe_connection.c compiler warning (conn_poll)

2009-03-31 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I noticed this warning still happens on release26-maint. Is backporting this to release26-maint not good for binary compatibility reason? -- ___ Python tracker <http://bugs.python.org/issue5

[issue5387] mmap.move crashes by integer overflow

2009-03-31 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Committed in r70800(trunk), r70803(release26-maint), r70808(py3k), r70811(release30-maint). -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5387] mmap.move crashes by integer overflow

2009-03-31 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Yes, you are right... My patch was not correct neigher. :-( Here is revised patch. -- resolution: fixed -> status: closed -> open Added file: http://bugs.python.org/file13519/fix_mmap_move_v2.patch ___

[issue5391] mmap: read_byte/write_byte and object type

2009-03-31 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- dependencies: +only accept byte for getarg('c') and unicode for getarg('C') ___ Python tracker <http://bu

[issue5410] msvcrt bytes cleanup

2009-03-31 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- dependencies: +only accept byte for getarg('c') and unicode for getarg('C') ___ Python tracker <http://bu

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-31 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- priority: -> release blocker ___ Python tracker <http://bugs.python.org/issue5499> ___ ___ Python-bugs-list mailing list Un

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-31 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Note: #5391 and #5410 are depends on this issue. -- ___ Python tracker <http://bugs.python.org/issue5499> ___ ___ Python-bug

[issue5387] mmap.move crashes by integer overflow

2009-03-31 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I've committed your test with some modification. (r70879) Thanks! -- ___ Python tracker <http://bugs.python.org/i

[issue5410] msvcrt bytes cleanup

2009-04-01 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- priority: -> release blocker ___ Python tracker <http://bugs.python.org/issue5410> ___ ___ Python-bugs-list mailing list Un

[issue5391] mmap: read_byte/write_byte and object type

2009-04-01 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- priority: -> release blocker ___ Python tracker <http://bugs.python.org/issue5391> ___ ___ Python-bugs-list mailing list Un

[issue5666] Py_BuildValue("c") should return bytes?

2009-04-02 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : This is related to #5499. PyArg_ParseTuple treats "c" as bytes of 1 length now, but Py_BuildValue still treats "c" as unicode of 1 length. -- components: Interpreter Core files: py3k_build_value.patch keywords: patch message

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Yes, here is the patch. But I noticed Py_BuildValue('c') still returns unicode. To pass the test, #5666 is needed. -- dependencies: +Py_BuildValue("c") should return bytes? Added file: http://bugs.

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file13575/py3k_mmap_bytes_cleanup_with_getarg_c.patch ___ Python tracker <http://bugs.python.org/issue5

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file13576/py3k_mmap_bytes_cleanup_with_getarg_c.patch ___ Python tracker <http://bugs.python.org/issue5

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Yes, you can do m.write_byte(b"a") but on the other hand you cannot do a = b"abc" m.write_byte(a[1]) instead you should do a = b"abc" m.write_byte(a[1:2]) This is trade off, though. I'll update &q

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file13215/py3k_mmap_and_bytes.patch ___ Python tracker <http://bugs.python.org/issue5391> ___ ___ Pytho

[issue5645] test_memoryio fails for py3k on windows

2009-04-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I'm sure, but with following test code, def run(module): print("///") print("//", module) memio = module.StringIO(newline=None) # The C StringIO decodes newlines in writ

[issue5645] test_memoryio fails for py3k on windows

2009-04-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue5645> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5645] test_memoryio fails for py3k on windows

2009-04-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I confirmed the patch works. -- ___ Python tracker <http://bugs.python.org/issue5645> ___ ___ Python-bugs-list mailin

[issue5690] test_types fails under Windows

2009-04-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I got SEGV on test_types on VC6, but after clean build, it seems SEGV was gone. Maybe build problem? -- nosy: +ocean-city ___ Python tracker <http://bugs.python.org/issue5

[issue5692] test_zipfile fails under Windows

2009-04-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This happens when running test from root directory. Following patch can workaround this, but this code is there because it is needed, isn't it? (Related to #4710?) Index: Lib/zipfi

[issue5410] msvcrt bytes cleanup

2009-04-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: MSDN says _ungetwch returns WEOF instead of EOF when error occurs. http://msdn.microsoft.com/en-us/library/yezzac74(VS.80).aspx I cannot see any remarks about masking behavior. :-( -- ___ Python tracker <h

[issue1438185] os.renames() crashes NTFS junctions

2009-04-05 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- superseder: os.renames() crashes NTFS junctions -> Patch for bug 1438185: os.renames deletes junction points ___ Python tracker <http://bugs.python.org/issue1

[issue5703] inside *currentmodule* some links is disabled

2009-04-05 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : See http://docs.python.org/library/email.mime.html Inside MIMEApplication documentation, link to MIMEApplication is enabled but link to MIMENonMultipart is disabled. This happens because MIMENonMultipart is not in email.mime.application (specified by

[issue5703] inside *currentmodule* some links is disabled

2009-04-07 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Sorry, I shouldn't call this a bug. Rather I should use the word "proposal". I think a link to MIMENonMultipart is also useful. What I can imagine how to achieve this is... 1. Rewrite MIMENonMultipart to email.mime.MIMENonMultipart 2. Intr

[issue5703] inside *currentmodule* some links is disabled

2009-04-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, I'll create the patch using this. -- ___ Python tracker <http://bugs.python.org/issue5703> ___ ___ Python-bugs-l

<    3   4   5   6   7   8   9   10   >