[issue12039] test_logging: bad file descriptor on FreeBSD bot
Roundup Robot devnull@devnull added the comment: New changeset b365036b17c2 by Vinay Sajip in branch 'default': Issue #12039: Now suppress spurious select.error raised on FreeBSD when the server (an asyncore.dispatcher) is closed. http://hg.python.org/cpython/rev/b365036b17c2 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12039 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12039] test_logging: bad file descriptor on FreeBSD bot
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I've done a bit more investigating, and the select.error is raised in the server thread when the main thread closes the SMTP server (asyncore.dispatcher). I've modified the server code to swallow the error if the server has been closed. This closes the issue as far as the select.error is concerned - leaving open for Senthil's follow-up on BadStatusLine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12039 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12047] Expand the style guide
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: georg.brandl components: Documentation files: style.diff keywords: patch nosy: georg.brandl, rhettinger priority: normal severity: normal status: open title: Expand the style guide Added file: http://bugs.python.org/file21951/style.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11948] Tutorial/Modules - small fix to better clarify the modules search path
Raymond Hettinger raymond.hettin...@gmail.com added the comment: See http://bugs.python.org/issue12047 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11948 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12047] Expand the style guide
New submission from Georg Brandl ge...@python.org: Sounds very good to me. One small thing: in the first para of Audience, there's a talk down them which looks funny to me in this word order. One question: I could imagine wording like this is rarely needed instead of this is experts only -- would you say it will be effective in making people think if they really want to do that? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12039] test_logging: bad file descriptor on FreeBSD bot
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Additional information point for Senthil: In the case where the BadStatusLine is raised, the server is sending a 200 OK status response but there is no actual response data - only headers. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12039 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12047] Expand the style guide
Raymond Hettinger raymond.hettin...@gmail.com added the comment: there's a talk down them which looks funny to me in this word order. It was missing a word. Should be talk down to them. Thanks for spotting this -- I fix it in the commit. One question: I could imagine wording like this is rarely needed instead of this is experts only -- would you say it will be effective in making people think if they really want to do that? Something along these lines would be a step in the right direction (though rarely needed is problematic if happens to match the readers need at the moment). At this point, I would be happy just to get rid of the danger-experts-only remarks. Just about any substitute would be better. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12047] Expand the style guide
Georg Brandl ge...@python.org added the comment: And I sincerely hope we don't have any docs that say if you don't know what this is, you don't need it instead of an explanation :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12047] Expand the style guide
Roundup Robot devnull@devnull added the comment: New changeset d5d91b14b238 by Raymond Hettinger in branch '3.2': Issue 12047: Expand the style guide. http://hg.python.org/cpython/rev/d5d91b14b238 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12047] Expand the style guide
Roundup Robot devnull@devnull added the comment: New changeset 50a5e271edf9 by Raymond Hettinger in branch '2.7': Issue 12047: Expand the style guide. http://hg.python.org/cpython/rev/50a5e271edf9 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12047] Expand the style guide
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12047 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12048] Python 3, ZipFile Bug In Chinese
New submission from yaoyu yao...@126.com: Python 3, ZipFile Bug In Chinese: 1. In Python3.1.3 can't extract 复件 test.txt from test.zip ╕┤╝■ test.txt Traceback (most recent call last): File C:\Temp\PythonZipTest\pythonzip.py, line 14, in module main() File C:\Temp\PythonZipTest\pythonzip.py, line 11, in main z.extract(z.namelist()[0]) File c:\python31\lib\zipfile.py, line 980, in extract return self._extract_member(member, path, pwd) File c:\python31\lib\zipfile.py, line 1023, in _extract_member source = self.open(member, pwd=pwd) File c:\python31\lib\zipfile.py, line 928, in open % (zinfo.orig_filename, fname)) zipfile.BadZipfile: File name in directory '╕┤╝■ test.txt' and header b'\xb8\xb4\xbc\xfe test.txt' differ. 2. In Python3.2 extract 复件 test.txt from test.zip uncorrect It extract the file as ╕┤╝■ test.txt 3. In Python 2.7.1, It's OK! 2011-05-10 Source Code ## #coding=gbk import zipfile import os def main(): szTestDir = os.path.dirname(__file__) szFile = os.path.join(szTestDir, 'test.zip') z = zipfile.ZipFile(szFile) print(z.namelist()[0]) z.extract(z.namelist()[0]) if __name__ == '__main__': main() -- files: test.zip messages: 135687 nosy: yaoyu priority: normal severity: normal status: open title: Python 3, ZipFile Bug In Chinese type: behavior versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file21952/test.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12048 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12049] expose RAND_bytes() function of OpenSSL
New submission from STINNER Victor victor.stin...@haypocalc.com: The _ssl module has RAND_add() RAND_status() and RAND_egd() functions, but not RAND_bytes(). I would be nice to be able to generate random bytes using RAND_bytes(). And maybe also RAND_pseudo_bytes()? I will work on a patch, it's just a reminder. -- components: Library (Lib) messages: 135688 nosy: haypo, pitrou priority: normal severity: normal status: open title: expose RAND_bytes() function of OpenSSL versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12049 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12039] test_logging: bad file descriptor on FreeBSD bot
Roundup Robot devnull@devnull added the comment: New changeset 204e027dfa98 by Vinay Sajip in branch 'default': Issue #12039: Add end_headers() call to avoid BadStatusLine. http://hg.python.org/cpython/rev/204e027dfa98 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12039 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values
Changes by Jens Grivolla jens.grivo...@gmail.com: -- nosy: +Jens.Grivolla ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5752 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12044] subprocess.Popen.__exit__ doesn't wait for process end
Antoine Pitrou pit...@free.fr added the comment: Well, no, looks ok for me then :) -- resolution: - rejected status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12044 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12039] test_logging: bad file descriptor on FreeBSD bot
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: The errors seem to have gone away now, but there is still apparently a behaviour change - previously there was no error when a end_headers() call was omitted when handling a request, but now apparently an end_headers() call is needed to avoid the error. Either omitting the end_headers() call was always an error but previously undetected, or the requirement to always call end_headers() is new and this should be documented. I'm not sure which of these is the case, but leaving open since I think the http.server documentation ought to be changed. Apart from this I think the issue can be closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12039 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9971] Optimize BufferedReader.readinto
Antoine Pitrou pit...@free.fr added the comment: Based on the above I think you are right about using the internal buffer regardless (revision attached). You pay a price with larger buffer sizes but on balance it seems to be a much better general purpose solution. The java-like solution is decent as well, it is only slightly slower for small reads and optimal for larger buffer sizes. Thanks for the measurements! The way the loop is written is a bit quirky, can't the flow be made more sequential: +if (n 0) /* short circuit */ + goto drain; +if (n == 0 || (n == -2 written 0)) +break; +if (n == -2) { +Py_INCREF(Py_None); +res = Py_None; +} +goto end; Also, it seems you don't have the unlocked fast path for small reads anymore (when they can be serviced in whole from the buffer). Interestingly enough it seems like using read() is a better idea if you use a smaller size (how is that right?). That's interesting indeed. Perhaps that is due to the overhead of getting a Py_buffer to the readinto() argument. It would be nice to optimize it, but it's probably outside the scope for this issue. (it also shows that our allocator does quite well with small objects) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9971 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1195] Problems on Linux with Ctrl-D and Ctrl-C during raw_input
Ralf Schmitt sch...@gmail.com added the comment: Either you clearerr or you can't rely on feof. fgets might also set the end of file indicator *and* return valid data. I don't see a reason to not call clearerr right before trying to read from the stream. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1195 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9971] Optimize BufferedReader.readinto
Antoine Pitrou pit...@free.fr added the comment: By the way, the Java-like version actually seems quite interesting. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9971 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12046] Windows build identification incomplete
Ned Deily n...@acm.org added the comment: Note, the Unix build only identifies itself like that if there is a working copy of hg on $PATH at configure time. If not, the version string also silently defaults to default. That requirement creates a bit of a problem for the OS X installer build script since hg is not currently shipped with OS X and the build script goes to some lengths to ensure that the build environment is not contaminated with non-system components, including setting PATH to standard system values. It might also be an issue for some other Unix platform builds. My preference would be to add an AC_PATH_PROG check or some such to configure.in to be able to specify an HG environment variable rather than having to open up PATH. Comments? -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12046 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12039] test_logging: bad file descriptor on FreeBSD bot
Senthil Kumaran sent...@uthcode.com added the comment: On Tue, May 10, 2011 at 09:12:58AM +, Vinay Sajip wrote: Either omitting the end_headers() call was always an error but previously undetected, or the requirement to always call end_headers() is new and this should be documented. I'm not sure which of these is the case, but leaving open since I think the http.server documentation ought to be changed. Apart from this I end_headers was added 3.2, so that all the headers can be cached and sent at once instead of writing one header at a time to the output stream. This is a new change in 3.3, where end_header calls flush_header which does the job of writing and clearing the cache. The need to call end_header always is new (at least from 3.2, because I see the http.server code itself using end_header at the end whenever it uses send_header) Following is the information in the updated docs. .. method:: send_header(keyword, value) Adds the HTTP header to an internal buffer which will be written to the output stream when either :meth:`end_headers` or :meth:`flush_headers` is invoked. I think, a little change in wording saying that end_headers or flush_headers MUST BE called would make it more prominent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12039 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12050] unconsumed_tail of zlib.Decompress is not always cleared on decompress() call
New submission from Takeshi Yoshino tyosh...@google.com: http://docs.python.org/library/zlib.html says If max_length is not supplied then the whole input is decompressed, and unconsumed_tail is an empty string. However, if there's preceding decompress call with max_length specified, unconsumed_tail will not be empty. import zlib c = zlib.compressobj(zlib.Z_DEFAULT_COMPRESSION, zlib.DEFLATED, -zlib.MAX_WBITS) compressed = c.compress('abc') compressed += c.flush(zlib.Z_SYNC_FLUSH) d = zlib.decompressobj(-zlib.MAX_WBITS) original = d.decompress(data, 1) original += d.decompress(d.unconsumed_tail) print %r % d.unconsumed_tail Result is '\x06\x00\x00\x00\xff\xff' Document or code should be fixed. -- components: Library (Lib) messages: 135697 nosy: Takeshi.Yoshino priority: normal severity: normal status: open title: unconsumed_tail of zlib.Decompress is not always cleared on decompress() call type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12050 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9971] Optimize BufferedReader.readinto
STINNER Victor victor.stin...@haypocalc.com added the comment: +Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t) Why downcasting the size? Can't you store the size into a Py_off_t? I suppose that sizeof(Py_off_t) = sizeof(Py_ssize_t). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9971 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11877] Change os.fsync() to support physical backing store syncs
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I don't agree with you and i don't believe it is implemented like that. But it seems i am the only one on this issue who sees it like that. Thus i apply 11877.6.diff. Declaring variables as auto is not necessary in C code and not used anywhere else in Python's source code Changed. Steffen, you changed the default to doing a full sync in your last patch Changed all through. The reason being that Apple and NetBSD folks should know what they're doing [.] People requiring write durability will probably manage to find this full_sync parameter. This sounds logical. I've changed the doc in os.rst so that it includes a note on *which* operating systems actually do something dependend on that argument. I should have done that from the very beginning. Finally, depending on the workload, it could have a significant performance impact. :-) -- Added file: http://bugs.python.org/file21953/11877.6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11877 ___diff --git a/Doc/library/os.rst b/Doc/library/os.rst --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -798,7 +798,7 @@ Availability: Unix. -.. function:: fsync(fd) +.. function:: fsync(fd, full_fsync=False) Force write of file with filedescriptor *fd* to disk. On Unix, this calls the native :c:func:`fsync` function; on Windows, the MS :c:func:`_commit` function. @@ -807,6 +807,13 @@ ``f.flush()``, and then do ``os.fsync(f.fileno())``, to ensure that all internal buffers associated with *f* are written to disk. + The POSIX standart only requires that :c:func:`fsync` must transfer the + buffered data to the storage device, not that the data is actually + written by the device itself. On operating systems where it is + necessary and possible the optional *full_fsync* argument can be used to + initiate additional steps to synchronize the physical backing store. + At the time of this writing this affects Apple Mac OS X and NetBSD. + Availability: Unix, and Windows. diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -2121,13 +2121,46 @@ #ifdef HAVE_FSYNC PyDoc_STRVAR(posix_fsync__doc__, -fsync(fildes)\n\n\ -force write of file with filedescriptor to disk.); - -static PyObject * -posix_fsync(PyObject *self, PyObject *fdobj) -{ -return posix_fildes(fdobj, fsync); +fsync(fildes, full_fsync=False)\n\n +force write of file buffers with fildes to disk;\n +full_fsync forces flush of disk caches in case fsync() alone is not enough.); + +static PyObject * +posix_fsync(PyObject *self, PyObject *args, PyObject *kwargs) +{ +PyObject *fdobj; +int full_fsync = 0; +static char *keywords[] = {fd, full_fsync, NULL }; + +if (!PyArg_ParseTupleAndKeywords(args, kwargs, O|i, keywords, + fdobj, full_fsync)) +return NULL; + +/* See issue 11877 discussion */ +# if ((defined __APPLE__ defined F_FULLFSYNC) || \ + (defined __NetBSD__ defined FDISKSYNC)) +if (full_fsync != 0) { +int res, fd = PyObject_AsFileDescriptor(fdobj); +if (fd 0) +return NULL; +if (!_PyVerify_fd(fd)) +return posix_error(); + +Py_BEGIN_ALLOW_THREADS +# if defined __APPLE__ +res = fcntl(fd, F_FULLFSYNC); +# elif defined __NetBSD__ +res = fsync_range(fd, FFILESYNC|FDISKSYNC, 0, 0); +# endif +Py_END_ALLOW_THREADS + +if (res 0) +return posix_error(); +Py_INCREF(Py_None); +return Py_None; +} else +# endif +return posix_fildes(fdobj, fsync); } #endif /* HAVE_FSYNC */ @@ -9472,7 +9505,8 @@ {fchdir, posix_fchdir, METH_O, posix_fchdir__doc__}, #endif #ifdef HAVE_FSYNC -{fsync, posix_fsync, METH_O, posix_fsync__doc__}, +{fsync, (PyCFunction)posix_fsync, METH_VARARGS|METH_KEYWORDS, +posix_fsync__doc__}, #endif #ifdef HAVE_SYNC {sync,posix_sync, METH_NOARGS, posix_sync__doc__}, ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Jonathan Halcrow jonathan.halc...@gmail.com added the comment: I'm having a problem using the current version (0.1.20110504) with python 2.5 on OSX 10.5. When I try to import regex I get the following import error: dlopen(snipped/python2.5/site-packages/_regex.so, 2): Symbol not found: _re_is_same_char_ign Referenced from: snipped/python2.5/site-packages/_regex.so Expected in: dynamic lookup -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1046092] HTMLParser fix to accept malformed tag attributes
Ezio Melotti ezio.melo...@gmail.com added the comment: For the record, the new issue is #12008. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1046092 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12039] test_logging: bad file descriptor on FreeBSD bot
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: @Senthil - are you planning to make the documentation change, or should I? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12039 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Jonathan Halcrow jonathan.halc...@gmail.com added the comment: It seems that _regex_unicode.c is missing from setup.py, adding it to ext_modules fixes my previous issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Brian Curtin br...@python.org added the comment: Issues with Regexp should probably be handled on the Regexp tracker. -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11979] Minor improvements to the Sockets readme: typos, wording and sphinx features usage
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11979 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12039] test_logging: bad file descriptor on FreeBSD bot
Senthil Kumaran sent...@uthcode.com added the comment: On Tue, May 10, 2011 at 02:06:48PM +, Vinay Sajip wrote: @Senthil - are you planning to make the documentation change, or should I? I shall do it, Vinay. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12039 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError
Antoine Pitrou pit...@free.fr added the comment: Patch: signal.signal() and signal.siginterrupt() raise an OSError, instead of a RuntimeError: OSError has an errno attribute. -- keywords: +patch Added file: http://bugs.python.org/file21939/signal_oserror.patch Looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12011 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1028] Tkinter binding involving Control-spacebar raises unicode error
Kurt B. Kaiser k...@shore.net added the comment: Tcl/Tk uses modified utf-8 internally. This includes using 0xC080, a multibyte Unicode null character, for embedded nulls that work with C's null terminated strings. Java does the same. Note that typing Ctrl-space and Ctrl-2 are conventional ways to enter a null from the keyboard. That's the reason a null char is associated with those key combinations. When Tcl exports Unicode, it is supposed to be strict utf-8. Until Tcl8.5, the %A (Unicode character corresponding to an event) was incorrectly leaking the modified Unicode null. _tkinter.c.2.patch is narrowly focused: if PythonCmd raises a UnicodeDecodeError and if the string passed in an arg is 0xC080, it is replaced with the Unicode null 0x00. -- assignee: ned.deily - kbk components: +Unicode nosy: +kbk resolution: - accepted Added file: http://bugs.python.org/file21954/tkinter.c.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1028 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4709] Mingw-w64 and python on windows x64
Ruben Van Boxem vanboxem.ru...@gmail.com added the comment: Has anyone looked at this? I'm trying to build gdb with Python enabled with mingw-w64 (Python 2.7.1 with manually created import libraries), but have to manually define MS_WIN64 in the CFLAGS. The patch only does what's right (i.e. define a macro that should be defined). David has nicely explained what needs to be done to reproduce the issue. Thanks! -- nosy: +rubenvb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11959] smtpd cannot be used without affecting global state
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: The overridden create_socket() method will have the same behaviour for the case when a socket map is *not* passed in to smtpd.__init__(). Users using the existing signature for the constructor will cause the sockmap instance attribute to be set to None, and this will get passed in to set_socket just as was happening before. So the only time the overridden create_socket will behave differently is if a non-None value is passed into smtpd.__init__(), and that's by design. Of course there is a slightly increased maintenance burden, in that other functional changes to asyncore.dispatcher.create_socket will need to be duplicated in smtpd.create_socket. However, such changes would be fairly infrequent, methinks. A comment could be added to asyncore.dispatcher.create_socket if necessary, to remind maintainers about this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError
Roundup Robot devnull@devnull added the comment: New changeset b86b39211ef1 by Victor Stinner in branch 'default': Issue #12011: signal.signal() and signal.siginterrupt() raise an OSError, http://hg.python.org/cpython/rev/b86b39211ef1 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12011 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12011 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Waldemar Kornewald wkornew...@gmail.com added the comment: Symlinked packages used to work on Windows until recently, but a few days ago Microsoft published a few security patches and things stopped working. On my local machine I uninstalled all Visual C++ Runtime library patches (they were installed automatically on May 5th) and symlinks started working on my machine, again. On my friend's computer symlinked packages suddenly stopped working today, but he doesn't seem to have the Visual C++ Runtime libs, so we don't know how to work around this issue on his computer. Could someone please fix support for symlinked packages? It's an essential feature during development. -- nosy: +wkornewald ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Brian Curtin br...@python.org added the comment: Are you able to narrow it down to which security update(s) caused the breakage? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Waldemar Kornewald wkornew...@gmail.com added the comment: I uninstalled these three security patches: * KB2467173: http://support.microsoft.com/kb/2467173 * KB2467174: http://support.microsoft.com/kb/2467174 * KB2467175: http://support.microsoft.com/kb/2467175 Without those patches symlinked packages work for me. I didn't try to narrow it down to the exact patch. Instead I uninstalled all Visual C++ Redistributable packages in order to prevent those patches from ever being installed again. Should I risk breaking symlink support again to find the source of the problem? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Brian Curtin br...@python.org added the comment: Don't do anything you're not comfortable with. If you can get your system to whatever state it was in the past where things worked properly, feel free to dig into it. I will try to look into this situation and see if there's anything in these security updates that looks related. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12044] subprocess.Popen.__exit__ doesn't wait for process end
Charles-François Natali neolo...@free.fr added the comment: There's just one thing I'm concerned with. People using context managers tend to expect the __exit__ method to perform cleanup actions and release corresponding resources if necessary, for example closing the underlying file or socket. So my guess is that most people won't explicitly wait for the process termination. You can already find such examples inside test_subprocess.py, Lib/ctypes/util.py (to parse ldconfig's output), and even in subprocess' documentation: with Popen([ifconfig], stdout=PIPE) as proc: log.write(proc.stdout.read()) The problem is that until a child process is wait()ed on or its parent process terminates (so that the child gets re-parented to init), the child remains a zombie/defunct process. So if you have long-running process spawning many subprocesses, you could end up having many zombie processes, potentially filling up your process table at some point. And this really sucks. So I think it could be worth mentioning this somewhere in the documentation (I mean, if we can find find such leaks inside CPython code base, then it's definitely something that should be documented). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12044 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12051] Segfault in JSONEncoder subclasses with check_circular=False
New submission from Ezio Melotti ezio.melo...@gmail.com: Subclasses of JSONEncoder that use check_circular=False can segfault json: import json class EndlessJSONEncoder(json.JSONEncoder): ... def default(self, o): ... return [o] ... EndlessJSONEncoder(check_circular=False).encode(5j) Segmentation fault The attached patch fixes it raising a RuntimeError: maximum recursion depth exceeded. There might be other ways to get a segfault, because there are other recursive calls involving more functions (i.e. a calls b, and b calls a) that are not covered by the patch. -- assignee: ezio.melotti components: Extension Modules files: issue12051.diff keywords: needs review, patch messages: 135716 nosy: ezio.melotti priority: normal severity: normal stage: commit review status: open title: Segfault in JSONEncoder subclasses with check_circular=False type: crash versions: Python 2.7 Added file: http://bugs.python.org/file21955/issue12051.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12051 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Jason R. Coombs jar...@jaraco.com added the comment: That's interesting. You're saying that you've been using symlinked packages for some time and that it works for you. I filed this bug because it's never worked for me. Can you describe a little bit about the environment in which you've encountered this? Specifically, which Python version, how were the symlinks created, and what is the sys.path like? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Jason R. Coombs jar...@jaraco.com added the comment: And since you seem to have some systems that honor symlinked packages, can you run the attached test_import_symlink_package.py and report the results? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Brian Curtin br...@python.org added the comment: Out of the patches listed, http://www.microsoft.com/technet/security/advisory/2269637.mspx is the only part that appears to be related in any way, although it doesn't specify a whole lot on the surface. The title is Insecure Library Loading Could Allow Remote Code Execution, so I'm guessing they could have made some changes under the hood that could affect us. Before we go down that road, running the script Jason suggested would be helpful in proving what works and doesn't work depending on what patches are installed and what version is running. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Waldemar Kornewald wkornew...@gmail.com added the comment: I'm using Python 2.6.6 on Windows 7 Professional with the latest service pack. My system is pretty bare bones. Do you have Visual Studio or the Visual Studio Redistributables? Here's the output of your script (the last exception seems to be caused by the .pyc file, but apart from that it seems to work): C:\Users\wkornewald\Downloads\atest_import_symlink_package.py Problem does not exist here. Traceback (most recent call last): File C:\Users\wkornewald\Downloads\a\test_import_symlink_package.py, line 66, in module os.rmdir(tagged) WindowsError: [Error 145] The directory is not empty: 'sample-tagged' C:\Users\wkornewald\Downloads\adir sample-tagged Volume in drive C has no label. Volume Serial Number is 50C8-BE90 Directory of C:\Users\wkornewald\Downloads\a\sample-tagged 10.05.2011 19:04DIR . 10.05.2011 19:04DIR .. 10.05.2011 19:04 107 __init__.pyc 1 File(s)107 bytes 2 Dir(s) 66.517.442.560 bytes free -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8498] Cannot use backlog = 0 for sockets
Roundup Robot devnull@devnull added the comment: New changeset 48743ad2d2ef by Antoine Pitrou in branch '2.7': Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in http://hg.python.org/cpython/rev/48743ad2d2ef New changeset 713006ecee0c by Antoine Pitrou in branch '3.2': Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in http://hg.python.org/cpython/rev/713006ecee0c New changeset 5e1ed84883c5 by Antoine Pitrou in branch 'default': Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in http://hg.python.org/cpython/rev/5e1ed84883c5 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8498] Cannot use backlog = 0 for sockets
Antoine Pitrou pit...@free.fr added the comment: Committed, thanks for the patch and review! -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12050] unconsumed_tail of zlib.Decompress is not always cleared on decompress() call
Nadeem Vawda nadeem.va...@gmail.com added the comment: Thanks for the bug report. It seems that the code needs fixing. I'll look into it this weekend. -- assignee: - nadeem.vawda nosy: +nadeem.vawda stage: - needs patch versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12050 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12052] round() erroneous for some large arguments
New submission from Neil na...@raytheon.com: round() returns incorrect results for certain large real-integer arguments. Demonstration via interpreter session: x = 2.0**52+1 # Huge, odd double integer near limits of what IEEE format can fully represent in its mantissa part round(x) - x # Difference should be zero 1.0 x = 2.0**53+1 # Even larger odd argument ... round(x) - x # ... returns correct result! 0.0 x = 2.0**51+1 # And a smaller argument ... round(x) - x # ... also returns correct result! 0.0 Discussion: It is not sufficient to implement round(x) as ceil(x - .5) for negative x and floor(x + .5) otherwise, since large integers near the representation limits will be changed incorrectly by these operations, apparently due to internal FPU semantics. One must test the argument first to see if it is a floating-point integer (e.g., math.floor(x) == x), and only bias truncate towards zero if it is not. C math libraries that implement round(), such as on Linux MacOS, do this correctly. -- components: None messages: 135724 nosy: nasix priority: normal severity: normal status: open title: round() erroneous for some large arguments type: behavior versions: Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12052] round() erroneous for some large arguments
Mark Dickinson dicki...@gmail.com added the comment: Please upgrade: this issue is already fixed in current versions of Python. -- nosy: +mark.dickinson resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12052] round() erroneous for some large arguments
Mark Dickinson dicki...@gmail.com added the comment: (Duplicate of issue 7070.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12052 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9971] Optimize BufferedReader.readinto
John O'Connor tehj...@gmail.com added the comment: Victor: AFAIK its not actually downcasting. The safe downcast just uses an assertion when debugging is enabled. I chose to use it because it seems to be a convention in the file. Antoine: You say quirky, I say elegant :) Though I have no problem changing it. Also, I did think about leaving the fast-path the way it was. I thought what I have now might be more simple/readable. On second thought I will put that specific code in front of the lock. I do feel, for some fundamental reason, that readinto() *should* always be faster than read(). I may look into the buffer argument overhead you mention. Also, while we're at it, would it be worthwhile for me to make a patch for the prefech() method you proposed? Should a separate issue be created for that? I know there was no definitive answer in the email thread but it may be fun to experiment with as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9971 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12051] Segfaults in _json while encoding objects
Ezio Melotti ezio.melo...@gmail.com added the comment: New patch fixes two more segfaults while encoding highly-nested objects. Updated the issue title accordingly. -- title: Segfault in JSONEncoder subclasses with check_circular=False - Segfaults in _json while encoding objects Added file: http://bugs.python.org/file21956/issue12051-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12051 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9971] Optimize BufferedReader.readinto
Antoine Pitrou pit...@free.fr added the comment: Also, while we're at it, would it be worthwhile for me to make a patch for the prefech() method you proposed? Should a separate issue be created for that? I know there was no definitive answer in the email thread but it may be fun to experiment with as well. It would be worthwhile and I am certainly in favour it it, although I can't guarantee that it can go in in the end. (yes, a separate issue should definitely be created) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9971 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8824] Improve documentation of exec
Jordan Stadler jordan.stad...@gmail.com added the comment: I'm going to update the documentation to include the scope information. Should be done within a day. -- nosy: +jstadler ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8824 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12053] Add prefetch() for Buffered IO (experiment)
New submission from John O'Connor tehj...@gmail.com: A prefetch() method for Buffered IO may greatly assist 3rd party buffering among other gains. If nothing else, it is worth experimenting with. Discussion on the topic is here: http://mail.python.org/pipermail/python-ideas/2010-September/008180.html A summary of the method proposed (by Antoine Pitrou): prefetch(self, buffer, skip, minread) Skip `skip` bytes from the stream. Then, try to read at least `minread` bytes and write them into `buffer`. The file pointer is advanced by at most `skip + minread`, or less if the end of file was reached. The total number of bytes written in `buffer` is returned, which can be more than `minread` if additional bytes could be prefetched (but, of course, cannot be more than `len(buffer)`). Arguments: - `buffer`: a writable buffer (e.g. bytearray) - `skip`: number of bytes to skip (must be = 0) - `minread`: number of bytes to read (must be = 0 and = len(buffer)) -- components: IO messages: 135731 nosy: benjamin.peterson, haypo, jcon, pitrou, stutzbach priority: normal severity: normal status: open title: Add prefetch() for Buffered IO (experiment) type: feature request versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12053 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9971] Optimize BufferedReader.readinto
John O'Connor tehj...@gmail.com added the comment: No problem for me either way. I created issue12053 to track that. - John O'Connor On Tue, May 10, 2011 at 3:19 PM, Antoine Pitrou rep...@bugs.python.orgwrote: Antoine Pitrou pit...@free.fr added the comment: Also, while we're at it, would it be worthwhile for me to make a patch for the prefech() method you proposed? Should a separate issue be created for that? I know there was no definitive answer in the email thread but it may be fun to experiment with as well. It would be worthwhile and I am certainly in favour it it, although I can't guarantee that it can go in in the end. (yes, a separate issue should definitely be created) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9971 ___ -- Added file: http://bugs.python.org/file21957/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9971 ___No problem for me either way.divbr/divdivI created issue12053 to track that.brdivbr clear=all- John O#39;Connor br brbrdiv class=gmail_quoteOn Tue, May 10, 2011 at 3:19 PM, Antoine Pitrou span dir=ltrlt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span wrote:brblockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex; div class=imbr Antoine Pitrou lt;a href=mailto:pit...@free.fr;pit...@free.fr/agt; added the comment:br br /divdiv class=imgt; Also, while we#39;re at it, would it be worthwhile for me to make a patchbr gt; for the prefech() method you proposed? Should a separate issue bebr gt; created for that? I know there was no definitive answer in the emailbr gt; thread but it may be fun to experiment with as well.br br /divIt would be worthwhile and I am certainly in favour it it, although Ibr can#39;t guarantee that it can go in in the end.br (yes, a separate issue should definitely be created)br divdiv/divdiv class=h5br --br br ___br Python tracker lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br lt;a href=http://bugs.python.org/issue9971; target=_blankhttp://bugs.python.org/issue9971/agt;br ___br /div/div/blockquote/divbr/div/div ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12049] expose RAND_bytes() function of OpenSSL
Changes by John O'Connor tehj...@gmail.com: -- nosy: +jcon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12049 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11888] Add C99's log2() function to the math library
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Why configure script check two times for log2 function ? -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12053] Add prefetch() for Buffered IO (experiment)
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12053 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11888] Add C99's log2() function to the math library
Roundup Robot devnull@devnull added the comment: New changeset d3f9895e2e19 by Mark Dickinson in branch 'default': Issue #11888: remove duplicate check for log2 in configure.in. http://hg.python.org/cpython/rev/d3f9895e2e19 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11888] Add C99's log2() function to the math library
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Roumen. Fixed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1350] IDLE - CallTips enhancement - show full doc-string in new window
Kurt B. Kaiser k...@shore.net added the comment: Rejecting for now, out of date, doesn't apply, not single topic. -- resolution: out of date - rejected stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11888] Add C99's log2() function to the math library
Mark Dickinson dicki...@gmail.com added the comment: Victor, what do you think about simply #undefining HAVE_LOG2 on Tiger (e.g. in pyport.h), so that the fallback log2 version is used there instead of the system version? Does anyone know the appropriate preprocessor check for OS X = 10.4? I can get as far as #ifdef __APPLE__, but don't know how to check for specific versions of OS X. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12054] test_socket: replace custom _get_unused_port() by support.find_unused_port()
New submission from Charles-François Natali neolo...@free.fr: Lib/test/test_socket.py uses custom _get_unused_port to return a port which will be likely available for binding in some tests. The same functionality is already provided by support.find_unuse_port, let's make use of it. Patch attached. -- components: Tests files: test_socket_unused_port.diff keywords: patch messages: 135738 nosy: neologix priority: low severity: normal status: open title: test_socket: replace custom _get_unused_port() by support.find_unused_port() type: feature request Added file: http://bugs.python.org/file21958/test_socket_unused_port.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9971] Optimize BufferedReader.readinto
Changes by John O'Connor tehj...@gmail.com: Removed file: http://bugs.python.org/file21957/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9971 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12054] test_socket: replace custom _get_unused_port() by support.find_unused_port()
Roundup Robot devnull@devnull added the comment: New changeset 695a7acae392 by Antoine Pitrou in branch '3.2': Issue #12054: use support.find_unused_port() instead of reinventing the wheel http://hg.python.org/cpython/rev/695a7acae392 New changeset 1b9d6226a3dd by Antoine Pitrou in branch 'default': Issue #12054: use support.find_unused_port() instead of reinventing the wheel http://hg.python.org/cpython/rev/1b9d6226a3dd -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12054] test_socket: replace custom _get_unused_port() by support.find_unused_port()
Antoine Pitrou pit...@free.fr added the comment: An obvious one indeed, thank you :) -- nosy: +pitrou resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Jason R. Coombs jar...@jaraco.com added the comment: Thanks for that. The output is very telling. First, it shows there's a bug in the test script where an exception occurs when it succeeds because a .pyc file is created and not properly cleaned up. Second, it demonstrates that the bug as I reported it is not occurring in your environment. This latter result tells me that I may be experiencing the same issue as you, but encountered it almost two years ago. This finding leads me to believe that the issue is less about the latest hotfix and more related to the VS redistributables. I almost certainly have some form of these redistributables installed as I usually have some form of Visual Studio installed. The fact that it works in one environment and not another means I should be able to find the regression. I'll install a barebones Windows box and see how it behaves there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11888] Add C99's log2() function to the math library
Roundup Robot devnull@devnull added the comment: New changeset 34871c3072c9 by Victor Stinner in branch 'default': Issue #11888: skip some log2 tests on Mac OS X Tiger http://hg.python.org/cpython/rev/34871c3072c9 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file14741/test_import_symlink_package.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Jason R. Coombs jar...@jaraco.com added the comment: I updated the test script to avoid the error when the .pyc (or __pycache__) is created. -- Added file: http://bugs.python.org/file21959/test_import_symlink_package.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8824] Improve documentation of exec
Changes by Jordan Stadler jordan.stad...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file21960/exec_doc_touchup_2_x.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8824 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8824] Improve documentation of exec
Changes by Jordan Stadler jordan.stad...@gmail.com: Added file: http://bugs.python.org/file21961/exec_doc_touchup_3_x.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8824 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Jason R. Coombs jar...@jaraco.com added the comment: Confirmed the issue exists on Python 2.7 and 3.2 -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file21959/test_import_symlink_package.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6727] ImportError when package is symlinked on Windows
Jason R. Coombs jar...@jaraco.com added the comment: Updated script to run under Python 3.2 as well. -- Added file: http://bugs.python.org/file21962/test_import_symlink_package.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6727 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8824] Improve documentation of exec
Jordan Stadler jordan.stad...@gmail.com added the comment: Patches for 2.x and 3.x documentation related to 'exec'. 2.x Provides more information about scopes when using additional expressions for 'exec'. 2.x documentation for 'exec' is found in reference/simple_stmts. 3.x Provides more information about scopes when using additional expressions for 'exec'. 3.x documentation for 'exec' is found in library/functions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8824 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12014] str.format parses replacement field incorrectly
Ben Wolfson wolf...@gmail.com added the comment: Actually, that's the wrong place in MarkupIterator_next to include that loop. The attached diff has it in the right place. The results of make test here are: 328 tests OK. 1 test failed: test_unicode 25 tests skipped: test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses test_dbm_gnu test_epoll test_gdb test_largefile test_msilib test_ossaudiodev test_readline test_smtpnet test_socketserver test_startfile test_timeout test_tk test_ttk_guionly test_urllib2net test_urllibnet test_winreg test_winsound test_xmlrpc_net test_zipfile64 1 skip unexpected on darwin: test_readline make: [test] Error 1 (ignored) test_unicode fails because it expects {0[}.format() to raise an IndexError; instead, it raises a ValueError (unmatched '{' in format) because it interprets the } as an *index*. This can be avoided by changing the line while (self-str.ptr self-str.end *self-str.ptr != ']') { to while (self-str.ptr self-str.end-1 *self-str.ptr != ']') { In which case the test passes as is, or, obviously, by changing the expected exception in test_unicode.py. -- keywords: +patch versions: +Python 2.6, Python 3.4 Added file: http://bugs.python.org/file21963/strformat.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12014 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11888] Add C99's log2() function to the math library
STINNER Victor victor.stin...@haypocalc.com added the comment: New changeset 34871c3072c9 by Victor Stinner in branch 'default': Issue #11888: skip some log2 tests on Mac OS X Tiger Oh... I realized that the test doesn't fail on Mac OS X Tiger PPC, only on Mac OS X Tiger x86. But I am too lazy to patch the test. Or should I do it? I wait for the following build to close this issue. http://www.python.org/dev/buildbot/all/builders/x86%20Tiger%203.x/builds/2507 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11888 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10419] distutils command build_scripts fails with UnicodeDecodeError
Roundup Robot devnull@devnull added the comment: New changeset 6ad356525381 by Victor Stinner in branch 'default': Close #10419, issue #6011: build_scripts command of distutils handles correctly http://hg.python.org/cpython/rev/6ad356525381 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10419 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6011] python doesn't build if prefix contains non-ascii characters
STINNER Victor victor.stin...@haypocalc.com added the comment: New changeset 6ad356525381 by Victor Stinner in branch 'default': Close #10419, issue #6011: build_scripts command of distutils handles correctly http://hg.python.org/cpython/rev/6ad356525381 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6011 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12051] Segfaults in _json while encoding objects
Roundup Robot devnull@devnull added the comment: New changeset a21f5af476cb by Ezio Melotti in branch '2.7': #12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations. http://hg.python.org/cpython/rev/a21f5af476cb New changeset 9557e4eeb291 by Ezio Melotti in branch '3.1': #12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations. http://hg.python.org/cpython/rev/9557e4eeb291 New changeset 3847b279d665 by Ezio Melotti in branch '3.2': #12051: merge with 3.1. http://hg.python.org/cpython/rev/3847b279d665 New changeset 821d7885c7ec by Ezio Melotti in branch 'default': #12051: merge with 3.2. http://hg.python.org/cpython/rev/821d7885c7ec -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12051 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12051] Segfaults in _json while encoding objects
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12051 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10419] distutils command build_scripts fails with UnicodeDecodeError
Roundup Robot devnull@devnull added the comment: New changeset 47236a0cfb15 by Victor Stinner in branch '3.2': Close #10419, issue #6011: build_scripts command of distutils handles correctly http://hg.python.org/cpython/rev/47236a0cfb15 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10419 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11169] compileall doesn't support PEP 383 (undecodable paths/filenames)
Roundup Robot devnull@devnull added the comment: New changeset 85cfbbc7da60 by Victor Stinner in branch '3.2': Issue #11169: compileall module uses repr() to format filenames and paths to http://hg.python.org/cpython/rev/85cfbbc7da60 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10419] distutils command build_scripts fails with UnicodeDecodeError
Roundup Robot devnull@devnull added the comment: New changeset fd7d4639dae2 by Victor Stinner in branch '3.1': Issue #10419: Fix build_scripts command of distutils to handle correctly http://hg.python.org/cpython/rev/fd7d4639dae2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10419 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6011] python doesn't build if prefix contains non-ascii characters
STINNER Victor victor.stin...@haypocalc.com added the comment: I fixed #10419 in Python 3.2 and 3.3 (I applied my copy_script-2.patch fix). It is now possible to compile and install Python 3.2 and 3.3 with a non-ASCII prefix, so this issue can be done. If you have issues when compiling Python with a non-ASCII prefix (and a locale encoding different than UTF-8), reopen the issue or open a more specific issue. -- I don't want to backport fixes of this issue to Python 3.1, because Python 3.1 requires too much effort to handle correctly non-ASCII paths (not only for this specific issue). I consider that Python 3.1 is a stable release and should not be touched too much and non-ASCII path with a locale encoding different than UTF-8 is a corner case. If you have this issue with Python 3.1, please upgrade to Python 3.2 :-) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6011 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10419] distutils command build_scripts fails with UnicodeDecodeError
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue fixed in Python 3.1, 3.2, 3.3. Thanks to Arfrever, I realized that this issue not only concerns the compilation of Python itself with a non-ASCII prefix (issue #6011), but the installation of any Python script containing a non-ASCII character. So I also fixed it in Python 3.1. I replaced os.fsencode(name) by name.encode(sys.getfilesystemencoding(), 'surrogateescape') in 3.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10419 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2857] add codec for java modified utf-8
Adal Chiriliuc adal.chiril...@gmail.com added the comment: I use the hachoir Python package to parse Java .class files and extract the strings from them and having support for Java modified UTF-8 would have been nice. -- nosy: +adalx ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2857 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8824] Improve documentation of exec
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8824 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12039] test_logging: bad file descriptor on FreeBSD bot
Roundup Robot devnull@devnull added the comment: New changeset d59ec3aa442e by Senthil Kumaran in branch 'default': Issue #12039 - Update the http.server.rst with the requirement to call `end_headers` after calling `send_header`. http://hg.python.org/cpython/rev/d59ec3aa442e -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12039 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com